Table of Contents

Class ConstrHatchInside

Namespace
CADability.Actions
Assembly
CADability.dll

Construction of a Hatch from the curves that surround a clicked point. The user clicks a point inside a region bounded by curves of the model (as seen in the current projection); the action collects the curves around that point, builds a CADability.Shapes.CurveGraph from them and makes the enclosing shape the compound shape of a hatch with the current hatch style. The ConstrHatchInside.HatchMode given to the constructor decides whether holes are left out, whether the smallest or the largest enclosing outline is used. The action does not auto-repeat. Started from the menu commands "MenuId.Constr.Hatch.Inside", "MenuId.Constr.Hatch.WithHoles" and "MenuId.Constr.Hatch.Hull"; GetID() returns "Constr.Hatch.InnerPoint".

public class ConstrHatchInside : ConstructAction, ICommandHandler, IPropertyEntry
Inheritance
ConstrHatchInside
Implements
Inherited Members

Constructors

ConstrHatchInside(HatchMode)

public ConstrHatchInside(ConstrHatchInside.HatchMode mode)

Parameters

mode ConstrHatchInside.HatchMode

Methods

AutoRepeat()

Detremins whether this action supports autorepeat. Autorepeat is enabled in the GlobalSettings.

public override bool AutoRepeat()

Returns

bool

GetID()

Must be implemented by derived class. Returns an identification string. All CADability actions return the unique strings like "Draw.Line.TwoPoints" or "Zoom"

public override string GetID()

Returns

string

the identification of the action

OnRemoveAction()

Implements OnRemoveAction(). If you override this method don't forget to call the bas implementation.

public override void OnRemoveAction()

OnSetAction()

Implements OnSetAction(). If you override this method don't forget to call the base implementation.

public override void OnSetAction()