Skip to content

DisplayPen

Public Class

Pen used to define stroke applied to several DisplayPipeline draw functions

Inheritance Hierarchy

System.Object
Rhino.Display.DisplayPen

Namespace: Rhino.Display

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public class DisplayPen

The DisplayPen type exposes the following members.

Constructors

Name

Description


Public Method

Initializes a new instance of the DisplayPen class


Properties

Name

Description


Public Property

How caps are drawn at the ends of open curves


Public Property

Color applied to stroke


Public Property

Halos are blended colors drawn around a curve for purposes like selection


Public Property

Halos are blended colors drawn around a curve for purposes like selection


Public Property

How corners of curves are joined


Public Property

Restart patterns at corners in a curve


Public Property

If true, lengths in pattern definition are interpreted to be in world units. If false, screen pixel distances are used.


Public Property

Offset to apply to pattern. If RhinoMath.UnsetSingle, then pattern is centered to keep even dash lengths at ends


Public Property

Thickness for stroke


Public Property

Coordinate system for the pen’s thickness


Methods

Name

Description


Public Method

Create a duplicate of this display pen.


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
Static Member

Create a display pen that matches a linetype definition


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


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.)


Public Method

Get the pattern for this pen as an array of dash,gap,dash,gap… values


Public Method

Set pattern to apply for a stroke.


Public Method

Positions and thickness at those positions along a curve that define a taper.


Public Method

Collection of positions and thicknesses at those positions to define a taper Rhino currently only supports either no taper or a single taper. An array is used here in case Rhino supports multiple taper values in the future.


Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)