Hide menu
Loading...
Searching...
No Matches
cadex.Drawing.HatchDefinitionLine Class Reference

Represents a line definition used in creating a hatch pattern. More...

Inheritance diagram for cadex.Drawing.HatchDefinitionLine:
cadex.BaseObject

Public Member Functions

 HatchDefinitionLine (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 HatchDefinitionLine ()
 Constructor.
 
void SetAngle (double theAngle)
 Sets the angle for the hatch definition line.
 
double Angle ()
 Returns the angle of the hatch definition line.
 
void SetBasePoint (cadex.Geom.Point2d thePoint)
 Sets the base point for the hatch definition line.
 
cadex.Geom.Point2d BasePoint ()
 Returns the base point of the hatch definition line.
 
void SetOffset (cadex.Geom.Vector2d theOffset)
 Sets the offset for the hatch definition line.
 
cadex.Geom.Vector2d Offset ()
 Returns the offset of the hatch definition line.
 
void AddDash (double theDash)
 Adds a dash with a specified length (positive) or gap (negative).
 
uint NumberOfDashes ()
 Returns the number of dashes.
 
double Dash (uint theIndex)
 theIndex must be in the range [0, NumberOfDashes()-1].
 
- Public Member Functions inherited from cadex.BaseObject
 BaseObject (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
bool IsNull ()
 
ulong Id ()
 Return unique identifier of public object.
 
bool IsEqual (cadex.BaseObject theObj)
 
override int GetHashCode ()
 
override bool Equals (System.Object o)
 

Static Public Member Functions

static cadex.Drawing.HatchDefinitionLine Cast (cadex.BaseObject theBase)
 

Protected Member Functions

override void Dispose (bool disposing)
 

Detailed Description

Represents a line definition used in creating a hatch pattern.

This class defines parameters such as angle, base point, offset, and dashes for the definition lines in hatch patterns. It follows the scheme used by AutoCAD.

Constructor & Destructor Documentation

◆ HatchDefinitionLine()

cadex.Drawing.HatchDefinitionLine.HatchDefinitionLine ( )
inline

Constructor.

Member Function Documentation

◆ AddDash()

void cadex.Drawing.HatchDefinitionLine.AddDash ( double theDash)
inline

Adds a dash with a specified length (positive) or gap (negative).

Order is determined by the sequence of additions. Adds the dash.

◆ Angle()

double cadex.Drawing.HatchDefinitionLine.Angle ( )
inline

Returns the angle of the hatch definition line.

◆ BasePoint()

cadex.Geom.Point2d cadex.Drawing.HatchDefinitionLine.BasePoint ( )
inline

Returns the base point of the hatch definition line.

◆ Dash()

double cadex.Drawing.HatchDefinitionLine.Dash ( uint theIndex)
inline

theIndex must be in the range [0, NumberOfDashes()-1].

Otherwise the result is undefined. Returns the dash.

◆ Dispose()

override void cadex.Drawing.HatchDefinitionLine.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from cadex.BaseObject.

◆ NumberOfDashes()

uint cadex.Drawing.HatchDefinitionLine.NumberOfDashes ( )
inline

Returns the number of dashes.

◆ Offset()

cadex.Geom.Vector2d cadex.Drawing.HatchDefinitionLine.Offset ( )
inline

Returns the offset of the hatch definition line.

◆ SetAngle()

void cadex.Drawing.HatchDefinitionLine.SetAngle ( double theAngle)
inline

Sets the angle for the hatch definition line.

◆ SetBasePoint()

void cadex.Drawing.HatchDefinitionLine.SetBasePoint ( cadex.Geom.Point2d thePoint)
inline

Sets the base point for the hatch definition line.

◆ SetOffset()

void cadex.Drawing.HatchDefinitionLine.SetOffset ( cadex.Geom.Vector2d theOffset)
inline

Sets the offset for the hatch definition line.