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 the dash.
 
uint NumberOfDashes ()
 Returns the number of dashes.
 
double Dash (uint theIndex)
 Returns the dash.
 
- 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.

Member Function Documentation

◆ AddDash()

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

Adds the dash.

Adds a dash with a specified length (positive) or gap (negative). Order is determined by the sequence of additions.

◆ Dash()

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

Returns the dash.

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

◆ Dispose()

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

Reimplemented from cadex.BaseObject.