Class WorkspaceControl
- Namespace
- Macad.Interaction
- Assembly
- Macad.Interaction.dll
public abstract class WorkspaceControl : BaseObject, IMouseEventHandler, IContextMenuItemProvider
- Inheritance
-
WorkspaceControl
- Implements
-
- Derived
-
Constructors
protected WorkspaceControl()
Properties
protected bool CleanedUp { get; }
- Property Value: bool
public WorkspaceController WorkspaceController { get; set; }
- Property Value: WorkspaceController
Methods
protected void Add(HudElement element)
element HudElement
protected void Add(VisualObject visual)
visual VisualObject
protected virtual void Cleanup()
protected void CloseSelectionContext(SelectionContext selectionContext)
selectionContext SelectionContext
protected void CloseSelectionContexts()
protected void CommitChanges()
protected T CreatePanel<T>(BaseObject instance, PropertyPanel insertAfter) where T : PropertyPanel
instance BaseObject
insertAfter PropertyPanel
- Returns: T
T
protected T CreatePanel<T>(BaseObject instance, int sortingKey) where T : PropertyPanel
instance BaseObject
sortingKey int
- Returns: T
T
itemList ContextMenuItems
protected virtual IEnumerable<WorkspaceControl> GetChildren()
- Returns: IEnumerable<WorkspaceControl>
public ISnapHandler GetSnapHandler()
- Returns: ISnapHandler
protected void HidePanels(int firstSortingKey, int lastSortingKey)
firstSortingKey int
lastSortingKey int
public virtual bool OnEntitySelectionChanging(IEnumerable<InteractiveEntity> entitiesToSelect, IEnumerable<InteractiveEntity> entitiesToUnSelect)
entitiesToSelect IEnumerable<InteractiveEntity>
entitiesToUnSelect IEnumerable<InteractiveEntity>
- Returns: bool
key Key
modifierKeys ModifierKeys
- Returns: bool
public virtual bool OnMouseDown(MouseEventData data)
data MouseEventData
- Returns: bool
public virtual bool OnMouseMove(MouseEventData data)
data MouseEventData
- Returns: bool
public virtual bool OnMouseUp(MouseEventData data)
data MouseEventData
- Returns: bool
protected SelectionContext OpenSelectionContext(SelectionContext.Options options = Options.None)
options SelectionContext.Options
- Returns: SelectionContext
protected void Remove(HudElement element)
element HudElement
protected void Remove(VisualObject visual)
visual VisualObject
protected void RemoveCursor()
protected void RemoveHintMessage()
protected void RemoveHudElements()
protected void RemovePanels()
protected void RemoveSnapHandler()
protected void RemoveVisuals()
cursor Cursor
protected void SetHintMessage(string message)
message string
protected T SetSnapHandler<T>(T snapHandler) where T : SnapBase
snapHandler T
- Returns: T
T
protected void UnhidePanels()