Class HatchStyleContour
An implementation of a HatchStyle, that defines a style consisting of contours inside the shape.
Implements
Inherited Members
Namespace: CADability.Attribute
Assembly: CADability.dll
Syntax
[Serializable]
public class HatchStyleContour : HatchStyle, IShowProperty, IPropertyEntry, INamedAttribute, ICommandHandler, ISerializable
Constructors
| Improve this Doc View SourceHatchStyleContour()
Declaration
public HatchStyleContour()
HatchStyleContour(SerializationInfo, StreamingContext)
Constructor required by deserialization
Declaration
protected HatchStyleContour(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | SerializationInfo |
| System.Runtime.Serialization.StreamingContext | context | StreamingContext |
Properties
| Improve this Doc View SourceColorDef
Gets or sets the color of the lines of this hatch style
Declaration
public ColorDef ColorDef { get; set; }
Property Value
| Type | Description |
|---|---|
| ColorDef |
CounterClock
Gets or sets the direction of the curves
Declaration
public bool CounterClock { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
FirstDistance
Gets or sets the distance to the out bounds of the area to be filled.
Declaration
public double FirstDistance { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
HoleMode
Gets or sets the mode how to proceed with holes inside the area to be filled
Declaration
public HatchStyleContour.EHoleMode HoleMode { get; set; }
Property Value
| Type | Description |
|---|---|
| HatchStyleContour.EHoleMode |
Inbound
Gets or sets the order of the curves: true from the outside to the inside, false from inside to outside
Declaration
public bool Inbound { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
LineDistance
Gets or stes the line distance. This is the distance between adjacent contours.
Declaration
public double LineDistance { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
SpiralMode
Declaration
public HatchStyleContour.ESpiralMode SpiralMode { get; set; }
Property Value
| Type | Description |
|---|---|
| HatchStyleContour.ESpiralMode |
SubEntries
Overrides SubEntries, returns the subentries in this property view.
Declaration
public override IShowProperty[] SubEntries { get; }
Property Value
| Type | Description |
|---|---|
| IShowProperty[] |
Overrides
| Improve this Doc View SourceSubEntriesCount
Overrides SubEntriesCount, returns the number of subentries in this property view.
Declaration
public override int SubEntriesCount { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Overrides
Methods
| Improve this Doc View SourceClone()
Declaration
public override HatchStyle Clone()
Returns
| Type | Description |
|---|---|
| HatchStyle |
Overrides
| Improve this Doc View SourceGenerateContent(CompoundShape, Plane)
This method is used by a Hatch object to calculate its contents. It generates a
set of parallel lines according to LineDistance and
Declaration
public override GeoObjectList GenerateContent(CompoundShape shape, Plane plane)
Parameters
| Type | Name | Description |
|---|---|---|
| CompoundShape | shape | shape of the hatch object |
| Plane | plane | local plane of the hatch object |
Returns
| Type | Description |
|---|---|
| GeoObjectList |
Overrides
| Improve this Doc View SourceGetShowProperty()
Declaration
public override IShowProperty GetShowProperty()
Returns
| Type | Description |
|---|---|
| IShowProperty |
Overrides
| Improve this Doc View SourceRemoved(IPropertyTreeView)
Overrides Removed(IPropertyTreeView)
Declaration
public override void Removed(IPropertyTreeView propertyTreeView)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyTreeView | propertyTreeView | the IPropertyTreeView from which it was removed |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceISerializable.GetObjectData(SerializationInfo, StreamingContext)
Declaration
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | |
| System.Runtime.Serialization.StreamingContext | context |