Table of Contents

Class HatchStyleSolid

Namespace
CADability.Attribute
Assembly
CADability.dll

A HatchStyle which fills the shape with a solid color. May be used as a base class for different kinds of solid fillings.

public class HatchStyleSolid : HatchStyle, IPropertyEntry, IShowProperty, INamedAttribute, ICommandHandler, ISerializable
Inheritance
HatchStyleSolid
Implements
Inherited Members

Constructors

HatchStyleSolid()

Empty construction

public HatchStyleSolid()

HatchStyleSolid(SerializationInfo, StreamingContext)

Constructor required by deserialization

protected HatchStyleSolid(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

SerializationInfo

context StreamingContext

StreamingContext

Properties

Color

The colour with which the shape is filled: the Faces generated by GenerateContent(CompoundShape, Plane) get this ColorDef. Setting it changes the style without notifying the list; hatches already using the style are not regenerated.

public ColorDef Color { get; set; }

Property Value

ColorDef

SubItems

Must be overridden, when Flags contains PropertyEntryType.HasSubEntries. See SubItems

public override IPropertyEntry[] SubItems { get; }

Property Value

IPropertyEntry[]

Methods

Clone()

Creates a copy of this hatch style of the same type, with the same name and the same settings. The copy refers to the same colour, line width and line pattern objects and is not contained in a list. Used when a HatchStyleList is cloned and when hatch styles are copied between the project and the global settings.

public override HatchStyle Clone()

Returns

HatchStyle

the copy

GenerateContent(CompoundShape, Plane)

Generates the lines or other GeoObjects that fill out the given shape in the given plane. Derived classes must override this method. Default implementation returns null.

public override GeoObjectList GenerateContent(CompoundShape shape, Plane plane)

Parameters

shape CompoundShape

The shape to be filled

plane Plane

The plane of the shape

Returns

GeoObjectList

The resulting GeoObjects or null

GetShowProperty()

Returns an object to display the properties of the HatchStyle

public override IShowProperty GetShowProperty()

Returns

IShowProperty