Skip to content

DisplayConduit

Public Class

Inheritance Hierarchy

System.Object
Rhino.Display.DisplayConduit

Namespace: Rhino.Display

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public abstract class DisplayConduit

The DisplayConduit type exposes the following members.

Constructors

Name

Description


Protected Method

Initializes a new instance of the DisplayConduit class


Properties

Name

Description


Public Property

Public Property

The geometry filter will ensure that your conduit’s per-object functions will only be called for objects that are of certain geometry type


Public Property

If you want this conduit to only work in a specific space (model or page), then set this filter to that specific space. The default is None meaning no filter is applied


Methods

Name

Description


Protected Method
Code Example

Library developers should override this function to increase the bounding box of scene so it includes the geometry that you plan to draw in the “Draw” virtual functions.

The default implementation does nothing.


Protected Method

If you want to participate in the Zoom Extents command with your display conduit, then you will need to override ZoomExtentsBoundingBox. Typically you could just call your CalculateBoundingBox override, but you may also want to spend a little more time here and compute a tighter bounding box for your conduit geometry if that is needed.

The default implementation does nothing.


Protected Method

Called after all non-highlighted objects have been drawn and PostDrawObjects has been called. Depth writing and testing are turned OFF. If you want to draw with depth writing/testing, see PostDrawObjects.

The default implementation does nothing.


Protected Method

If Rhino is in a feedback mode, the draw overlay call allows for temporary geometry to be drawn on top of everything in the scene. This is similar to the dynamic draw routine that occurs with custom get point.

The default implementation does nothing.


Public Method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)


Protected Method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

(Inherited from Object.)


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

The selection filter will make per-object conduit functions only be called for selected objects (when the filter is turned on)


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Protected Method

MemberwiseClone

Creates a shallow copy of the current Object.

(Inherited from Object.)


Protected Method

The default implementation does nothing.


Protected Method

Called when the enabled state changes for this class instance


Protected Method

Called after all non-highlighted objects have been drawn. Depth writing and testing are still turned on. If you want to draw without depth writing/testing, see DrawForeground.

The default implementation does nothing.


Protected Method

Called before every object in the scene is drawn.


Protected Method
Code Example

Called before objects are been drawn. Depth writing and testing are on.

The default implementation does nothing.


Public Method

Set an object Id that this conduit’s per-object functions will only be called for


Public Method

Set object Ids that this conduit’s per-object functions will only be called for


Public Method

The selection filter will make per-object conduit functions only be called for selected objects (when the filter is turned on)


Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)