Represents an area filled with a pattern. More...
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 } |
| enum | StyleType { Standard , Mirrored , Double } |
| 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) |
| Adds the hatch contour. | |
| bool | AddContour (cadex.Drawing.PiecewiseContour theContour) |
| uint | NumberOfContours () |
| Returns the number of hatch contours. | |
| cadex.Drawing.PiecewiseContour | Contour (uint theIndex) |
| Returns the contour. | |
| cadex.Drawing.Hatch.ContourType | TypeOfContour (uint theIndex) |
| Returns the type of hatch contour. | |
| 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) |
| Returns the definition line. | |
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) |
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:
Represents pattern for drawing hatch.
Represents style for drawing hatch.
|
inline |
Adds the hatch contour.
The contour must be closed otherwise it will not be added and the function will return false.
|
inline |
Returns the contour.
theIndex must be in the range [0, NumberOfContours()-1]. Otherwise the result is undefined.
|
inline |
Returns the definition line.
theIndex must be in the range [0, NumberOfDefenitionLines()-1]. Otherwise the result is undefined.
|
inlineprotectedvirtual |
Reimplemented from cadex.Drawing.Element.
|
inline |
Returns the type of hatch contour.
theIndex must be in the range [0; NumberOfContours()-1]. Otherwise the behavior is undefined.