IGH_PreviewObject
All IGH_DocumentObjects that wish to participate in Viewport redraws must implement this interface.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)
Syntax
public interface IGH_PreviewObject
The IGH_PreviewObject type exposes the following members.
Properties
Name
Description
Public Property
ClippingBox
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.
Public Property
Hidden
Gets or sets a value indicating whether or not this object is currently drawing preview flags.
Public Property
IsPreviewCapable
Gets a value indicating whether or not this object (in its current state) can draw geometric previews at all.
Methods
Name
Description
Public Method
DrawViewportMeshes
Implement this function to draw all shaded meshes. If the viewport does not support shading, this function will not be called.
Public Method
DrawViewportWires
Implement this function to draw all wire and point geometry previews.