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)
forcebool
- 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)
entitiesToSelectIEnumerable<InteractiveEntity>entitiesToUnSelectIEnumerable<InteractiveEntity>
- Returns: bool
protected virtual bool OnStart()
- Returns: bool
protected virtual void OnStop()
protected void OverrideVisualShape(InteractiveEntity entity, TopoDS_Shape brepShape)
entityInteractiveEntitybrepShapeTopoDS_Shape
public virtual IEnumerable<InteractiveEntity> PasteFromClipboard()
- Returns: IEnumerable<InteractiveEntity>
public virtual bool PrepareUndo()
- Returns: bool
protected void RestoreAllVisualShapes()
protected void RestoreVisualShape(InteractiveEntity entity)
entityInteractiveEntity
public bool Start()
- Returns: bool
protected bool StartAction(ToolAction toolAction, bool exclusive = true)
toolActionToolActionexclusivebool
- Returns: bool
public void Stop()
protected void StopAction(ToolAction toolAction)
toolActionToolAction
protected void StopAllActions()