IGH_PreviewObject

References
public interface IGH_PreviewObject
All IGH_DocumentObjects that wish to participate in Viewport redraws must implement this interface.

Properties

ClippingBox

#
BoundingBox ClippingBox { get; }
Gets the clipping box for this object. The clipping box is typically the union of the boundingboxes of all the geometry that is drawn by this object.
The clipping box for this object.

Hidden

#
bool Hidden { get; set; }
Gets or sets a value indicating whether or not this object is currently drawing preview flags.

IsPreviewCapable

#
bool IsPreviewCapable { get; }
Gets a value indicating whether or not this object (in its current state) can draw geometric previews at all.

Methods

DrawViewportMeshes

#
void DrawViewportMeshes(IGH_PreviewArgs args)
Implement this function to draw all shaded meshes. If the viewport does not support shading, this function will not be called.
args (IGH_PreviewArgs)Draw operation arguments.

DrawViewportWires

#
void DrawViewportWires(IGH_PreviewArgs args)
Implement this function to draw all wire and point geometry previews.
args (IGH_PreviewArgs)Draw operation arguments.