DisplayPen
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
DisplayPen
Initializes a new instance of the DisplayPen class
Properties
Name
Description
Public Property
CapStyle
How caps are drawn at the ends of open curves
Public Property
Color
Color applied to stroke
Public Property
HaloColor
Halos are blended colors drawn around a curve for purposes like selection
Public Property
HaloThickness
Halos are blended colors drawn around a curve for purposes like selection
Public Property
JoinStyle
How corners of curves are joined
Public Property
PatternBySegment
Restart patterns at corners in a curve
Public Property
PatternLengthInWorldUnits
If true, lengths in pattern definition are interpreted to be in world units. If false, screen pixel distances are used.
Public Property
PatternOffset
Offset to apply to pattern. If RhinoMath.UnsetSingle, then pattern is centered to keep even dash lengths at ends
Public Property
Thickness
Thickness for stroke
Public Property
ThicknessSpace
Coordinate system for the pen’s thickness
Methods
Name
Description
Public Method
Duplicate
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
FromLinetype
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
PatternAsArray
Get the pattern for this pen as an array of dash,gap,dash,gap… values
Public Method
SetPattern
Set pattern to apply for a stroke.
Public Method
SetTaper
Positions and thickness at those positions along a curve that define a taper.
Public Method
TaperAsArray
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.)