Hide menu
Loading...
Searching...
No Matches

Represents an area filled with a pattern. More...

Inheritance diagram for cadex.Drawing.Hatch:
cadex.Drawing.Element cadex.BaseObject

Public Types

enum  PatternType {
  Solid , ANSI_31 , ANSI_32 , ANSI_33 ,
  ANSI_34 , ANSI_35 , ANSI_36 , ANSI_37 ,
  ANSI_38 , ISO_02 , ISO_03 , ISO_04 ,
  ISO_05 , ISO_06 , ISO_07 , ISO_08 ,
  ISO_09 , ISO_10 , ISO_11 , ISO_12 ,
  ISO_13 , ISO_14 , ISO_15 , Custom = 1000
}
 Represents pattern for drawing hatch. More...
 
enum  StyleType { Standard , Mirrored , Double }
 Represents style for drawing hatch. More...
 
enum  ContourType { Inner , Outer }
 

Public Member Functions

 Hatch (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 Hatch ()
 Constructor.
 
bool AddContour (cadex.Drawing.PiecewiseContour theContour, cadex.Drawing.Hatch.ContourType theType)
 The contour must be closed otherwise it will not be added and the function will return false.
 
bool AddContour (cadex.Drawing.PiecewiseContour theContour)
 
uint NumberOfContours ()
 Returns the number of hatch contours.
 
cadex.Drawing.PiecewiseContour Contour (uint theIndex)
 theIndex must be in the range [0, NumberOfContours()-1].
 
cadex.Drawing.Hatch.ContourType TypeOfContour (uint theIndex)
 theIndex must be in the range [0; NumberOfContours()-1].
 
void SetStyle (cadex.Drawing.Hatch.StyleType theStyle)
 Sets the style for the hatch pattern.
 
cadex.Drawing.Hatch.StyleType Style ()
 Returns the style for the hatch pattern.
 
void SetPattern (cadex.Drawing.Hatch.PatternType thePattern)
 Set the hatch pattern.
 
cadex.Drawing.Hatch.PatternType Pattern ()
 Returns the pattern of the hatch.
 
void SetScale (double theScale)
 Set the scale of the hatch.
 
double Scale ()
 Returns the scale of the hatch.
 
void SetAngle (double theAngle)
 Set the angle of the hatch.
 
double Angle ()
 Returns the angle of the hatch.
 
void AddDefinitionLine (cadex.Drawing.HatchDefinitionLine theDefinitionLine)
 Adds the definition line to the hatch.
 
uint NumberOfDefenitionLines ()
 Returns the number of definition lines.
 
cadex.Drawing.HatchDefinitionLine DefinitionLine (uint theIndex)
 theIndex must be in the range [0, NumberOfDefenitionLines()-1].
 
- Public Member Functions inherited from cadex.Drawing.Element
 Element (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void SetUuid (System.Guid theUuid)
 
System.Guid Uuid ()
 
void Accept (cadex.Drawing.ElementVisitor theVisitor)
 
- 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 new bool CompareType (cadex.BaseObject theObject)
 
static cadex.Drawing.Hatch Cast (cadex.Drawing.Element theBase)
 
- Static Public Member Functions inherited from cadex.Drawing.Element
static bool CompareType (cadex.BaseObject theObject)
 Returns true if theObject has the Element type.
 
static cadex.Drawing.Element Cast (cadex.BaseObject theBase)
 

Protected Member Functions

override void Dispose (bool disposing)
 

Detailed Description

Represents an area filled with a pattern.

The hatch pattern can be composed of solid, dashed or dash-doted lines. The pattern can be mirrored or composed with its mirror image to create double hatch. It follows the scheme used by AutoCAD to represent the set of ANSI-standard hatch patterns.

Three types of pattern styles are supported:

  • Standard
    Example of standard hatch pattern style
  • Mirrored
    Example of mirrored hatch pattern style
  • Double
    Example of double hatch pattern style
Examples
exploring/drawings/Program.cs, and exploring/drawings/main.cxx.

Member Enumeration Documentation

◆ PatternType

Represents pattern for drawing hatch.

Examples
exploring/drawings/Program.cs.

◆ StyleType

Represents style for drawing hatch.

Constructor & Destructor Documentation

◆ Hatch()

cadex.Drawing.Hatch.Hatch ( )
inline

Constructor.

Member Function Documentation

◆ AddContour()

bool cadex.Drawing.Hatch.AddContour ( cadex.Drawing.PiecewiseContour theContour,
cadex.Drawing.Hatch.ContourType theType )
inline

The contour must be closed otherwise it will not be added and the function will return false.

Adds the hatch contour.

◆ AddDefinitionLine()

void cadex.Drawing.Hatch.AddDefinitionLine ( cadex.Drawing.HatchDefinitionLine theDefinitionLine)
inline

Adds the definition line to the hatch.

◆ Angle()

double cadex.Drawing.Hatch.Angle ( )
inline

Returns the angle of the hatch.

Examples
exploring/drawings/Program.cs, and exploring/drawings/main.cxx.

◆ Contour()

cadex.Drawing.PiecewiseContour cadex.Drawing.Hatch.Contour ( uint theIndex)
inline

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

Otherwise the result is undefined. Returns the contour.

Examples
exploring/drawings/Program.cs, and exploring/drawings/main.cxx.

◆ DefinitionLine()

cadex.Drawing.HatchDefinitionLine cadex.Drawing.Hatch.DefinitionLine ( uint theIndex)
inline

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

Otherwise the result is undefined. Returns the definition line.

◆ Dispose()

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

Reimplemented from cadex.Drawing.Element.

◆ NumberOfContours()

uint cadex.Drawing.Hatch.NumberOfContours ( )
inline

Returns the number of hatch contours.

Examples
exploring/drawings/Program.cs, and exploring/drawings/main.cxx.

◆ NumberOfDefenitionLines()

uint cadex.Drawing.Hatch.NumberOfDefenitionLines ( )
inline

Returns the number of definition lines.

◆ Pattern()

cadex.Drawing.Hatch.PatternType cadex.Drawing.Hatch.Pattern ( )
inline

Returns the pattern of the hatch.

Examples
exploring/drawings/Program.cs, and exploring/drawings/main.cxx.

◆ Scale()

double cadex.Drawing.Hatch.Scale ( )
inline

Returns the scale of the hatch.

Examples
exploring/drawings/Program.cs, and exploring/drawings/main.cxx.

◆ SetAngle()

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

Set the angle of the hatch.

◆ SetPattern()

void cadex.Drawing.Hatch.SetPattern ( cadex.Drawing.Hatch.PatternType thePattern)
inline

Set the hatch pattern.

◆ SetScale()

void cadex.Drawing.Hatch.SetScale ( double theScale)
inline

Set the scale of the hatch.

◆ SetStyle()

void cadex.Drawing.Hatch.SetStyle ( cadex.Drawing.Hatch.StyleType theStyle)
inline

Sets the style for the hatch pattern.

◆ Style()

cadex.Drawing.Hatch.StyleType cadex.Drawing.Hatch.Style ( )
inline

Returns the style for the hatch pattern.

◆ TypeOfContour()

cadex.Drawing.Hatch.ContourType cadex.Drawing.Hatch.TypeOfContour ( uint theIndex)
inline

theIndex must be in the range [0; NumberOfContours()-1].

Otherwise the behavior is undefined. Returns the type of hatch contour.