Show / Hide Table of Contents

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
IGeoObjectImpl
Block
Hatch
Implements
IGeoObject
ILayer
IStyle
IOctTreeInsertable
System.IComparable
IFeedBack
System.ICloneable
IColorDef
IGeoObjectOwner
System.Runtime.Serialization.IDeserializationCallback
IExportStep
System.Runtime.Serialization.ISerializable
IHatchStyle
Inherited Members
Block.containedObjects
Block.Child(Int32)
Block.Children
Block.Description
Block.FindSnapPoint(SnapPointFinder)
Block.HasChildren()
Block.RefPoint
Block.Count
Block.Item(Int32)
Block.Add(IGeoObject)
Block.Remove(Int32)
Block.Remove(GeoObjectList)
Block.Set(GeoObjectList)
Block.Add(GeoObjectList)
Block.Insert(Int32, IGeoObject)
Block.IsTmpContainer
Block.PrePaintTo3D(IPaintTo3D)
Block.PrepareDisplayList(Double)
Block.Name
Block.Clear()
Block.ReplaceContent(GeoObjectList)
Block.NumChildren
Block.HitTest(Projection.PickArea, Boolean)
Block.IColorDef.SetTopLevel(ColorDef)
Block.IColorDef.SetTopLevel(ColorDef, Boolean)
Block.OnDeserialization(Object)
Block.IGeoObjectOwner.Remove(IGeoObject)
Block.IExportStep.Export(ExportStep, Boolean)
IGeoObjectImpl.isChanging
IGeoObjectImpl.MakeChange(IGeoObjectImpl, String)
IGeoObjectImpl.SetSerializationValue(String, Object)
IGeoObjectImpl.UniqueId
IGeoObjectImpl.WillChangeEvent
IGeoObjectImpl.DidChangeEvent
IGeoObjectImpl.FeedBackChangedEvent
IGeoObjectImpl.FireWillChange(GeoObjectChange)
IGeoObjectImpl.FireDidChange(GeoObjectChange)
IGeoObjectImpl.ModifyInverse(ModOp)
IGeoObjectImpl.Owner
IGeoObjectImpl.AttributeChanged(INamedAttribute)
IGeoObjectImpl.CopyAttributes(IGeoObject)
IGeoObjectImpl.Attributes
IGeoObjectImpl.CustomAttributeKeys
IGeoObjectImpl.SetNamedAttribute(String, INamedAttribute)
IGeoObjectImpl.GetNamedAttribute(String)
IGeoObjectImpl.UpdateAttributes(IAttributeListContainer)
IGeoObjectImpl.UserData
IGeoObjectImpl.isModifyingWithMouse
IGeoObjectImpl.ModifyWithMouse(Object, String, Boolean)
IGeoObjectImpl.HasValidData()
IGeoObjectImpl.IsVisible
IGeoObjectImpl.PropagateAttributes(Layer, ColorDef)
IGeoObjectImpl.Actuator
IGeoObjectImpl.SetColorDef(ColorDef, ColorDef)
IGeoObjectImpl.StyleIsValid
IGeoObjectImpl.GetExtent(IGeoObject, Projection, Boolean)
IGeoObjectImpl.IsOwnedByBlockRef(IGeoObject)
IGeoObjectImpl.ChangingUserData(IGeoObject, String, Object)
IGeoObjectImpl.ChangingUserData(IGeoObject, String, Object, Boolean)
IGeoObjectImpl.ICloneable.Clone()
IGeoObjectImpl.IComparable.CompareTo(Object)
IGeoObjectImpl.GetAdditionalContextMenueEvent
IGeoObjectImpl.IFeedBack.GetExtent()
IGeoObjectImpl.JsonGetObjectData(IJsonWriteData)
IGeoObjectImpl.JsonSetObjectData(IJsonReadData)
IGeoObjectImpl.JsonSerializationDone()
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()
Namespace: CADability.GeoObject
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
protected Hatch()
| 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
Type Description
Hatch.ConstructionDelegate
| Improve this Doc View Source

OnPaintTo3D

Declaration
public static Hatch.PaintTo3DDelegate OnPaintTo3D
Field Value
Type Description
Hatch.PaintTo3DDelegate
| Improve this Doc View Source

OnRecalc

Declaration
public static Hatch.RecalcDelegate OnRecalc
Field Value
Type Description
Hatch.RecalcDelegate

Properties

| Improve this Doc View Source

ColorDef

Declaration
public override ColorDef ColorDef { get; set; }
Property Value
Type Description
ColorDef
Overrides
Block.ColorDef
| Improve this Doc View Source

CompoundShape

Declaration
public CompoundShape CompoundShape { get; set; }
Property Value
Type Description
CompoundShape

The shape (CompoundShape, bounding curves and holes) which is handled by this object

| Improve this Doc View Source

HatchStyle

The HatchStyle that defines the interior of this object

Declaration
public HatchStyle HatchStyle { get; set; }
Property Value
Type Description
HatchStyle
| Improve this Doc View Source

Layer

Declaration
public override Layer Layer { get; set; }
Property Value
Type Description
Layer
Overrides
Block.Layer
| Improve this Doc View Source

OwnedItems

Declaration
public override IGeoObject[] OwnedItems { get; }
Property Value
Type Description
IGeoObject[]
Overrides
Block.OwnedItems
| Improve this Doc View Source

Plane

The Plane which defines the 3d position of the CompoundShape.

Declaration
public Plane Plane { get; set; }
Property Value
Type Description
Plane
| Improve this Doc View Source

PreferredStyle

Declaration
public override Style.EDefaultFor PreferredStyle { get; }
Property Value
Type Description
Style.EDefaultFor
Overrides
IGeoObjectImpl.PreferredStyle
| Improve this Doc View Source

Style

Declaration
public override Style Style { get; set; }
Property Value
Type Description
Style
Overrides
Block.Style

Methods

| Improve this Doc View Source

Clone()

Overrides IGeoObjectImpl.Clone() and implements IGeoObject.Clone().

Declaration
public override IGeoObject Clone()
Returns
Type Description
IGeoObject

see Clone()

Overrides
Block.Clone()
| 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
Type Description
Hatch
| Improve this Doc View Source

CopyGeometry(IGeoObject)

Overrides IGeoObjectImpl.CopyGeometry(IGeoObject) and implements IGeoObject.CopyGeometry(IGeoObject).

Declaration
public override void CopyGeometry(IGeoObject ToCopyFrom)
Parameters
Type Name Description
IGeoObject ToCopyFrom

see CopyGeometry(IGeoObject)

Overrides
Block.CopyGeometry(IGeoObject)
| Improve this Doc View Source

Decompose()

Overrides Decompose()

Declaration
public override GeoObjectList Decompose()
Returns
Type Description
GeoObjectList
Overrides
Block.Decompose()
| Improve this Doc View Source

GetAttributeProperties(IFrame)

Overrides IGeoObjectImpl.GetAttributeProperties(IFrame) and implements IGeoObject.GetAttributeProperties(IFrame).

Declaration
public override IShowProperty[] GetAttributeProperties(IFrame Frame)
Parameters
Type Name Description
IFrame Frame

see GetAttributeProperties(IFrame)

Returns
Type Description
IShowProperty[]

see GetAttributeProperties(IFrame)

Overrides
IGeoObjectImpl.GetAttributeProperties(IFrame)
| Improve this Doc View Source

GetBoundingCube()

Overrides GetBoundingCube()

Declaration
public override BoundingCube GetBoundingCube()
Returns
Type Description
BoundingCube
Overrides
Block.GetBoundingCube()
| Improve this Doc View Source

GetExtent(Projection, ExtentPrecision)

Overrides GetExtent(Projection, ExtentPrecision)

Declaration
public override BoundingRect GetExtent(Projection projection, ExtentPrecision extentPrecision)
Parameters
Type Name Description
Projection projection
ExtentPrecision extentPrecision
Returns
Type Description
BoundingRect
Overrides
Block.GetExtent(Projection, ExtentPrecision)
| Improve this Doc View Source

GetExtent(Double)

Overrides GetExtent(Double)

Declaration
public override BoundingCube GetExtent(double precision)
Parameters
Type Name Description
System.Double precision
Returns
Type Description
BoundingCube
Overrides
Block.GetExtent(Double)
| 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
Block.GetObjectData(SerializationInfo, StreamingContext)
| Improve this Doc View Source

GetQuadTreeItem(Projection, ExtentPrecision)

Overrides GetQuadTreeItem(Projection, ExtentPrecision)

Declaration
public override IQuadTreeInsertableZ GetQuadTreeItem(Projection projection, ExtentPrecision extentPrecision)
Parameters
Type Name Description
Projection projection
ExtentPrecision extentPrecision
Returns
Type Description
IQuadTreeInsertableZ
Overrides
Block.GetQuadTreeItem(Projection, ExtentPrecision)
| Improve this Doc View Source

GetShowProperties(IFrame)

Overrides IGeoObjectImpl.GetShowProperties(IFrame) and implements IGeoObject.GetShowProperties(IFrame).

Declaration
public override IShowProperty GetShowProperties(IFrame Frame)
Parameters
Type Name Description
IFrame Frame

see GetShowProperties(IFrame)

Returns
Type Description
IShowProperty

see GetShowProperties(IFrame)

Overrides
Block.GetShowProperties(IFrame)
| Improve this Doc View Source

HitTest(ref BoundingCube, Double)

Overrides 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
Block.HitTest(ref BoundingCube, Double)
| Improve this Doc View Source

HitTest(Projection, BoundingRect, Boolean)

Overrides HitTest(Projection, BoundingRect, Boolean)

Declaration
public override bool HitTest(Projection projection, BoundingRect rect, bool onlyInside)
Parameters
Type Name Description
Projection projection
BoundingRect rect
System.Boolean onlyInside
Returns
Type Description
System.Boolean
Overrides
Block.HitTest(Projection, BoundingRect, Boolean)
| Improve this Doc View Source

IsAttributeUsed(Object)

Overrides IGeoObjectImpl.IsAttributeUsed(Object) and implements IGeoObject.IsAttributeUsed(Object).

Declaration
public override bool IsAttributeUsed(object Attribute)
Parameters
Type Name Description
System.Object Attribute

see IsAttributeUsed(Object)

Returns
Type Description
System.Boolean

see IsAttributeUsed(Object)

Overrides
IGeoObjectImpl.IsAttributeUsed(Object)
| Improve this Doc View Source

Modify(ModOp)

Overrides IGeoObjectImpl.Modify(ModOp) and implements IGeoObject.Modify(ModOp).

Declaration
public override void Modify(ModOp m)
Parameters
Type Name Description
ModOp m

see Modify(ModOp)

Overrides
Block.Modify(ModOp)
| Improve this Doc View Source

PaintTo3D(IPaintTo3D)

Overrides PaintTo3D(IPaintTo3D)

Declaration
public override void PaintTo3D(IPaintTo3D paintTo3D)
Parameters
Type Name Description
IPaintTo3D paintTo3D
Overrides
Block.PaintTo3D(IPaintTo3D)
| Improve this Doc View Source

PaintTo3DList(IPaintTo3D, ICategorizedDislayLists)

Overrides PaintTo3DList(IPaintTo3D, ICategorizedDislayLists)

Declaration
public override void PaintTo3DList(IPaintTo3D paintTo3D, ICategorizedDislayLists lists)
Parameters
Type Name Description
IPaintTo3D paintTo3D
ICategorizedDislayLists lists
Overrides
Block.PaintTo3DList(IPaintTo3D, ICategorizedDislayLists)
| Improve this Doc View Source

Position(GeoPoint, GeoVector, Double)

Overrides Position(GeoPoint, GeoVector, Double)

Declaration
public override double Position(GeoPoint fromHere, GeoVector direction, double precision)
Parameters
Type Name Description
GeoPoint fromHere
GeoVector direction
System.Double precision
Returns
Type Description
System.Double
Overrides
Block.Position(GeoPoint, GeoVector, Double)
| Improve this Doc View Source

Recalc()

After the HatchStyle, the CompoundShape or the HatchStyle has been modified this method must be called to calculate the new contents.

Declaration
public void Recalc()

Events

| Improve this Doc View Source

Constructed

Declaration
public static event Hatch.ConstructedDelegate Constructed
Event Type
Type Description
Hatch.ConstructedDelegate

Explicit Interface Implementations

| Improve this Doc View Source

IHatchStyle.HatchStyle

Declaration
HatchStyle IHatchStyle.HatchStyle { get; set; }
Returns
Type Description
HatchStyle

Implements

IGeoObject
ILayer
IStyle
IOctTreeInsertable
System.IComparable
IFeedBack
System.ICloneable
IColorDef
IGeoObjectOwner
System.Runtime.Serialization.IDeserializationCallback
IExportStep
System.Runtime.Serialization.ISerializable
IHatchStyle
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX