Table of Contents

Class Tool

Namespace
Macad.Interaction
Assembly
Macad.Interaction.dll
public abstract class Tool : WorkspaceControl, IMouseEventHandler, IContextMenuItemProvider
Inheritance
Tool
Implements

Constructors

protected Tool()

Properties

public ToolAction CurrentAction { get; }
Property Value: ToolAction

public string Id { get; protected set; }
Property Value: string

public bool IsActive { get; }
Property Value: bool

Methods

public virtual bool CanCopyToClipboard()
Returns: bool

public virtual bool CanDelete()
Returns: bool

public virtual bool CanDuplicate()
Returns: bool

public virtual bool CanPasteFromClipboard()
Returns: bool

public bool Cancel(bool force)
force bool
Returns: bool

protected override void Cleanup()

public virtual void CopyToClipboard()

public virtual void Delete()

public virtual void Duplicate()

protected override IEnumerable<WorkspaceControl> GetChildren()
Returns: IEnumerable<WorkspaceControl>

protected virtual bool OnCancel()
Returns: bool

public override bool OnEntitySelectionChanging(IEnumerable<InteractiveEntity> entitiesToSelect, IEnumerable<InteractiveEntity> entitiesToUnSelect)
entitiesToSelect IEnumerable<InteractiveEntity>
entitiesToUnSelect IEnumerable<InteractiveEntity>
Returns: bool

protected virtual bool OnStart()
Returns: bool

protected virtual void OnStop()

protected void OverrideVisualShape(InteractiveEntity entity, TopoDS_Shape brepShape)
entity InteractiveEntity
brepShape TopoDS_Shape

public virtual IEnumerable<InteractiveEntity> PasteFromClipboard()
Returns: IEnumerable<InteractiveEntity>

public virtual bool PrepareUndo()
Returns: bool

protected void RestoreAllVisualShapes()

protected void RestoreVisualShape(InteractiveEntity entity)
entity InteractiveEntity

public bool Start()
Returns: bool

protected bool StartAction(ToolAction toolAction, bool exclusive = true)
toolAction ToolAction
exclusive bool
Returns: bool

public void Stop()

protected void StopAction(ToolAction toolAction)
toolAction ToolAction

protected void StopAllActions()