Class Hatch
A GeoObject that represents a flat (2d) shape filled by a HatchStyle.
It also acts as a Block presenting e.g. the hatch lines as its
containing child objects.
To fully define a Hatch object you have to set these three properties: Plane,
CompoundShape and HatchStyle. If you omit one of these properties
you wont see the Hatch object as it is not fully defined. No defaults are assumed.
Inheritance
System.Object
Hatch
Implements
System.IComparable
System.ICloneable
System.Runtime.Serialization.IDeserializationCallback
System.Runtime.Serialization.ISerializable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: CADability.dll
Syntax
[Serializable]
public class Hatch : Block, IGeoObject, ILayer, IStyle, IOctTreeInsertable, IComparable, IFeedBack, ICloneable, IColorDef, IGeoObjectOwner, IDeserializationCallback, IExportStep, ISerializable, IHatchStyle
Constructors
|
Improve this Doc
View Source
Hatch()
Empty constructor, must be called when a derived object is constructed.
Declaration
|
Improve this Doc
View Source
Hatch(SerializationInfo, StreamingContext)
Constructor required by deserialization
Declaration
protected Hatch(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
SerializationInfo
|
| System.Runtime.Serialization.StreamingContext |
context |
StreamingContext
|
Fields
|
Improve this Doc
View Source
Constructor
Factory mechanism for constructing Hatch objects
If you have a class derivec from this class (Hatch) and everytime CADability creates a hatch
object your object should be created, you have to register your static construct method here.
Declaration
public static Hatch.ConstructionDelegate Constructor
Field Value
|
Improve this Doc
View Source
OnPaintTo3D
Declaration
public static Hatch.PaintTo3DDelegate OnPaintTo3D
Field Value
|
Improve this Doc
View Source
OnRecalc
Declaration
public static Hatch.RecalcDelegate OnRecalc
Field Value
Properties
|
Improve this Doc
View Source
ColorDef
Declaration
public override ColorDef ColorDef { get; set; }
Property Value
Overrides
|
Improve this Doc
View Source
CompoundShape
Declaration
public CompoundShape CompoundShape { get; set; }
Property Value
|
Improve this Doc
View Source
HatchStyle
The HatchStyle that defines the interior of this object
Declaration
public HatchStyle HatchStyle { get; set; }
Property Value
|
Improve this Doc
View Source
Layer
Declaration
public override Layer Layer { get; set; }
Property Value
Overrides
|
Improve this Doc
View Source
OwnedItems
Declaration
public override IGeoObject[] OwnedItems { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Plane
Declaration
public Plane Plane { get; set; }
Property Value
|
Improve this Doc
View Source
PreferredStyle
Declaration
public override Style.EDefaultFor PreferredStyle { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Style
Declaration
public override Style Style { get; set; }
Property Value
Overrides
Methods
|
Improve this Doc
View Source
Clone()
Declaration
public override IGeoObject Clone()
Returns
Overrides
|
Improve this Doc
View Source
Construct()
The only way to construct a hatch object. If a Constructor is registered,
this constructor will be used, if not a Hatch object is created.
Declaration
public static Hatch Construct()
Returns
|
Improve this Doc
View Source
CopyGeometry(IGeoObject)
Declaration
public override void CopyGeometry(IGeoObject ToCopyFrom)
Parameters
Overrides
|
Improve this Doc
View Source
Decompose()
Declaration
public override GeoObjectList Decompose()
Returns
Overrides
|
Improve this Doc
View Source
GetAttributeProperties(IFrame)
Declaration
public override IShowProperty[] GetAttributeProperties(IFrame Frame)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetBoundingCube()
Declaration
public override BoundingCube GetBoundingCube()
Returns
Overrides
|
Improve this Doc
View Source
GetExtent(Projection, ExtentPrecision)
Declaration
public override BoundingRect GetExtent(Projection projection, ExtentPrecision extentPrecision)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetExtent(Double)
Declaration
public override BoundingCube GetExtent(double precision)
Parameters
| Type |
Name |
Description |
| System.Double |
precision |
|
Returns
Overrides
|
Improve this Doc
View Source
GetObjectData(SerializationInfo, StreamingContext)
Implements ISerializable:GetObjectData
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
|
| System.Runtime.Serialization.StreamingContext |
context |
|
Overrides
|
Improve this Doc
View Source
GetQuadTreeItem(Projection, ExtentPrecision)
Declaration
public override IQuadTreeInsertableZ GetQuadTreeItem(Projection projection, ExtentPrecision extentPrecision)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetShowProperties(IFrame)
Declaration
public override IShowProperty GetShowProperties(IFrame Frame)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
HitTest(ref BoundingCube, Double)
Declaration
public override bool HitTest(ref BoundingCube cube, double precision)
Parameters
| Type |
Name |
Description |
| BoundingCube |
cube |
|
| System.Double |
precision |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
HitTest(Projection, BoundingRect, Boolean)
Declaration
public override bool HitTest(Projection projection, BoundingRect rect, bool onlyInside)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
IsAttributeUsed(Object)
Declaration
public override bool IsAttributeUsed(object Attribute)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
Modify(ModOp)
Declaration
public override void Modify(ModOp m)
Parameters
Overrides
|
Improve this Doc
View Source
PaintTo3D(IPaintTo3D)
Declaration
public override void PaintTo3D(IPaintTo3D paintTo3D)
Parameters
Overrides
|
Improve this Doc
View Source
PaintTo3DList(IPaintTo3D, ICategorizedDislayLists)
Declaration
public override void PaintTo3DList(IPaintTo3D paintTo3D, ICategorizedDislayLists lists)
Parameters
Overrides
|
Improve this Doc
View Source
Position(GeoPoint, GeoVector, Double)
Declaration
public override double Position(GeoPoint fromHere, GeoVector direction, double precision)
Parameters
Returns
| Type |
Description |
| System.Double |
|
Overrides
|
Improve this Doc
View Source
Recalc()
Declaration
Events
|
Improve this Doc
View Source
Constructed
Declaration
public static event Hatch.ConstructedDelegate Constructed
Event Type
Explicit Interface Implementations
|
Improve this Doc
View Source
IHatchStyle.HatchStyle
Declaration
HatchStyle IHatchStyle.HatchStyle { get; set; }
Returns
Implements
System.IComparable
System.ICloneable
System.Runtime.Serialization.IDeserializationCallback
System.Runtime.Serialization.ISerializable