CustomDisplay
Provides some basic (indeed, very basic) mechanisms for drawing custom geometry in viewports.
Constructors
Properties
Gets the clipping box of this CustomDisplay.
Gets or sets the Enabled state of this CustomDisplay instance. If you wish to terminate this CustomDisplay, place a call to Dispose() instead.
Methods
Adds a new, colored arc to the display list.
Adds a new, colored arc to the display list.
Adds a new, black arc to the display list.
Parameters:
| arc (Arc) | Arc to add. |
Adds a new, colored circle to the display list.
Adds a new, colored arc to the display list.
Adds a new, black circle to the display list.
Parameters:
| circle (Circle) | Circle to add. |
Adds a new, colored curve to the display list. The curve will be duplicated so changes to the original will not affect the display.
Adds a new, colored curve to the display list. The curve will be duplicated so changes to the original will not affect the display.
Adds a new, black curve to the display list. The curve will be duplicated so changes to the original will not affect the display.
Parameters:
| curve (Curve) | Curve to add. |
Adds a new, colored line to the display list.
Adds a new, colored line to the display list.
Adds a new, black line to the display list.
Parameters:
| line (Line) | Line to add. |
Adds a new stylized point to the display list.
Parameters:
| point (Point3d) | Point to add. |
| color (Color) | Color of point. |
| style (PointStyle) | Display style of point. |
| radius (int) | Radius of point widget. |
Adds a new colored point to the display list.
Adds a new, black point to the display list.
Parameters:
| point (Point3d) | Point to add. |
Adds a collection of stylized points to the display list.
Parameters:
| points (IEnumerable<Point3d>) | Points to add. |
| color (Color) | Color of points. |
| style (PointStyle) | Display style of points. |
| radius (int) | Radius of point widgets. |
Adds a collection of colored points to the display list.
Parameters:
| points (IEnumerable<Point3d>) | Points to add. |
| color (Color) | Color of points. |
Adds a collection of black points to the display list.
Parameters:
| points (IEnumerable<Point3d>) | Points to add. |
public void AddPolygon(IEnumerable<Point3d> polygon, Color fillColor, Color edgeColor, bool drawFill, bool drawEdge)
Adds a polygon to the drawing list. Polygons are not like Hatches, when you supply a concave polygon, the shading probably won't work.
Adds a new, colored 3D text object to the display list.
Adds a new, black 3D text object to the display list.
Adds a new 3D text object to the display list.
Adds a new, colored vector to the display list.
Adds a new, colored vector to the display list.
Adds a new, black vector to the display list.
public void Dispose()
Dispose this CustomDisplay instance. You must call this function in order to properly shut down the CustomDisplay.