public void DrawViewportWires(GH_PreviewWireArgs args) { //ClippingBox //args.Pipeline.DrawBox(ClippingBox, System.Drawing.Color.Black); if (!_cplCond.isValid) { updateECoupling(); } System.Drawing.Color col = args.Color; if (!DrawUtil.CheckSelection(col)) { col = System.Drawing.Color.DarkViolet; } else { _cplCond.DrawInfo(args); } _cplCond.Draw(args.Pipeline, col); /* * if (Value.IsACurve) * args.Pipeline.DrawCurve(Value.CurveA, col, args.Thickness + 1); * else * args.Pipeline.DrawPoint(Value.PointA.Location, Rhino.Display.PointStyle.X, 5, col); * if (Value.IsBCurve) * args.Pipeline.DrawCurve(Value.CurveB, col, args.Thickness + 1); * else * args.Pipeline.DrawPoint(Value.PointB.Location, Rhino.Display.PointStyle.X, 5, col); */ }
public void DrawViewportWires(GH_PreviewWireArgs args) { //ClippingBox //args.Pipeline.DrawBox(ClippingBox, System.Drawing.Color.Black); if (Value != null) { System.Drawing.Color colStr = args.Color; System.Drawing.Color colSup = args.Color; if (!DrawUtil.CheckSelection(colStr)) { colStr = DrawUtil.DrawColorStructuralElements; colSup = System.Drawing.Color.Black; } else { drawLocalFrame(args.Pipeline); if (DrawUtil.DrawInfo && GroupId > 0) { drawGroupId(args); } } args.Pipeline.DrawCurve(Value, colStr, args.Thickness + 1); drawSupportLine(args.Pipeline, colSup, false); } }
public void DrawViewportWires(GH_PreviewWireArgs args) { //ClippingBox //args.Pipeline.DrawBox(ClippingBox, System.Drawing.Color.Black); if (!(Value is null)) //if no point or, force AND moment are zero, nothing to draw { System.Drawing.Color col = args.Color; if (!DrawUtil.CheckSelection(col)) { col = DrawUtil.DrawColorLoads; } else { drawInfoPanel(args.Pipeline, args.Viewport); } args.Pipeline.DrawPoint(Value.Location, Rhino.Display.PointStyle.X, 5, DrawUtil.DrawColorLoads); if (!(Forces.IsTiny() && Moments.IsTiny() && Displacement.IsTiny() && DisplacementRotational.IsTiny()) && DrawUtil.ScaleFactorLoads > 0.0001) { if (!_loadCondition.isValid) { updateLoadTransforms(); } _loadCondition.Draw(args.Pipeline, col); } } }
public void DrawViewportWires(GH_PreviewWireArgs args) { //draw clippingbox //args.Pipeline.DrawBox(ClippingBox, System.Drawing.Color.Black); if (!(Value is null)) { System.Drawing.Color col = args.Color; if (!DrawUtil.CheckSelection(col)) { col = DrawUtil.DrawColorLoads; } else { drawInfoPanel(args.Pipeline, args.Viewport); } args.Pipeline.DrawCurve(Value, DrawUtil.DrawColorLoads, args.Thickness + 1); if (DrawUtil.ScaleFactorLoads > 0.0001 && !(Forces.IsTiny() && Moments.IsTiny())) { if (!_loadCondition.isValid) { updateLoadTransforms(); } _loadCondition.Draw(args.Pipeline, col); } } }
public void DrawViewportMeshes(GH_PreviewMeshArgs args) { if (Value != null) { var col = args.Material.Diffuse; var areaStrcMaterial = args.Material; if (!DrawUtil.CheckSelection(col)) { areaStrcMaterial = DrawUtil.DrawMaterialStructure; } args.Pipeline.DrawBrepShaded(Value, areaStrcMaterial); } }
public void DrawViewportWires(GH_PreviewWireArgs args) { //ClippingBox //args.Pipeline.DrawBox(ClippingBox, System.Drawing.Color.Black); if (Value != null) { System.Drawing.Color col = args.Color; if (!DrawUtil.CheckSelection(col)) { col = DrawUtil.DrawColorStructuralElements; } else { drawLocalFrame(args.Pipeline); } args.Pipeline.DrawBrepWires(Value, col, -1); } }
public void DrawViewportMeshes(GH_PreviewMeshArgs args) { if (Value != null) { System.Drawing.Color col = args.Material.Diffuse; Rhino.Display.DisplayMaterial areaStrcMaterial = new Rhino.Display.DisplayMaterial(args.Material); if (!DrawUtil.CheckSelection(col)) { col = DrawUtil.DrawColorStructuralElements; areaStrcMaterial.Diffuse = col; areaStrcMaterial.Specular = col; areaStrcMaterial.Emission = col; areaStrcMaterial.BackDiffuse = col; areaStrcMaterial.BackSpecular = col; areaStrcMaterial.BackEmission = col; } args.Pipeline.DrawBrepShaded(Value, areaStrcMaterial); } }
public void DrawViewportWires(GH_PreviewWireArgs args) { //ClippingBox //args.Pipeline.DrawBox(ClippingBox, System.Drawing.Color.Black); if (!_cplCond.isValid) { updateECoupling(); } System.Drawing.Color col = args.Color; if (!DrawUtil.CheckSelection(col)) { col = System.Drawing.Color.DarkViolet; } else { drawInfoPanel(args.Pipeline, args.Viewport); } _cplCond.Draw(args.Pipeline, col); }
public void DrawViewportWires(GH_PreviewWireArgs args) { //ClippingBox //args.Pipeline.DrawBox(ClippingBox, System.Drawing.Color.Black); if (!_cplCond.isValid) { updateSpring(); } System.Drawing.Color col = args.Color; if (!DrawUtil.CheckSelection(col)) { col = DrawUtil.DrawColorSupports; } else { _cplCond.DrawInfo(args); } _cplCond.Draw(args.Pipeline, col); }
public void DrawViewportWires(GH_PreviewWireArgs args) { //ClippingBox //args.Pipeline.DrawBox(ClippingBox, System.Drawing.Color.Black); if (Value != null) { System.Drawing.Color colStr = args.Color; System.Drawing.Color colSup = args.Color; if (!DrawUtil.CheckSelection(colStr)) { colStr = DrawUtil.DrawColorStructuralElements; colSup = System.Drawing.Color.Black; } else { drawLocalFrame(args.Pipeline); } args.Pipeline.DrawPoint(Value.Location, Rhino.Display.PointStyle.X, 5, colStr); drawSupportPoint(args.Pipeline, colSup, false); } }