![]() |
VR-Forces 4.0.4 Class Documentation
|
The logic for driving an attach widget. More...

Public Types | |
| enum | AttachState { Unattached, SingleAttached, MultipleAttached } |
| enum | SelectionState { NoSelection, SingleSelection, MultipleSelection } |
Public Member Functions | |
| virtual | ~DtAttachWidgetLogic () |
| virtual DTOR | |
Protected Member Functions | |
| virtual void | detach () |
| Tell the current observer to detach from all attached objects. | |
| virtual void | attachNext () |
| Tell the current observer to attach to the next (allowed) object. | |
| virtual void | attachPrevious () |
| Tell the current observer to attach to the previous (allowed) object. | |
| virtual void | attachToPart (const std::string &partName) |
| Tell the current observer to attach to a part. | |
| virtual void | setHideAttachedModel (bool hide) |
| Update the current observer's hide model state. | |
| virtual void | setAttachFilterType (int filterType) |
| Cache the current attach filter for use in attach methods. | |
| virtual void | setCurrentObserver (const std::string &observerName) |
| Set the observer to use in all other operations. | |
| virtual void | attachToSelected () |
| Tell the current observer to attach to the current selection. | |
| virtual void | attachSelectedByMode (int mode) |
| Tell the current observer to attach to the current selection in the specified attach mode. | |
| virtual void | setAttachMode (int mode) |
| process a change in attach mode | |
| virtual void | observerChanged (const std::string &observerName, const DtUniqueID &id) |
| virtual void | slot_activate (DtDe *subject) |
| virtual void | slot_deactivate (DtDe *subject) |
| DtAttachWidgetLogic (DtDe &de, DtAttachWidgetInterface &iFace) | |
| Constructor (protected - use ::create() ) | |
| void | setCurrentObserver (DtObserver *observer) |
| Called by public setCurrentObserver() | |
| void | onAttachedToChanged (DtObserver *observer) |
| called by signal when an observer's attachments change | |
| void | onHideModelChanged (DtObserver *observer) |
| called by signal when an observer's hide model state changes | |
| void | updateAttachedNames () |
| Updates the names of the attached elements. | |
| virtual void | onObserverAboutToBeDestroyed (DtInputDriver *driver, DtObserver *observer) |
| called by signal when an observer is destroyed | |
| virtual void | onCurrentObserverChanged (DtInputDriver *driver, DtObserver *observer) |
| void | onAttachTypeChanged (DtObserver *observer) |
| called by signal when an observer's attach type changes | |
| void | onCurrentAttachFilterTypeChanged (const DtAttachManager::ElementTypeList &filterType) |
| virtual void | onSelectionChanged (const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &deselected) |
| called by signal when selection state changes | |
| virtual void | onIs2DChanged (int mode) |
| virtual void | onObserverModeChanged (DtObserver *, int mode) |
| virtual void | enableSingleAttachModes () |
| enable all attach modes | |
| virtual void | enableMultipleAttachModes () |
| enable only that attach modes that make sense for multiple attach | |
| void | determineAttachState () |
| Determine the current attach state. | |
| void | updateAttachStateToWidget () |
| Send current attach state to widget. | |
| void | determineSelectionState () |
| Determine the current selection state. | |
| void | updateSelectionStateToWidget () |
| Send current selection state to widget. | |
| const DtAttachManager::ElementTypeList & | indexToAttachFilterType (int index) |
| int | attachFilterTypeToIndex (const DtAttachManager::ElementTypeList &filterType) |
| void | updateAttachableParts () |
Protected Attributes | |
| DtDe & | myDe |
| DtAttachWidgetInterface & | myInterface |
| DtObserver * | myCurrentObserver |
| AttachState | myAttachState |
| SelectionState | mySelectionState |
| DtAttachManager::ElementTypeList | myCurrentAttachFilterType |
Friends | |
| class | DtAttachWidgetLogicCreator |
The logic for driving an attach widget.
| virtual makVrv::DtAttachWidgetLogic::~DtAttachWidgetLogic | ( | ) | [virtual] |
virtual DTOR
| makVrv::DtAttachWidgetLogic::DtAttachWidgetLogic | ( | DtDe & | de, |
| DtAttachWidgetInterface & | iFace | ||
| ) | [protected] |
Constructor (protected - use ::create() )
| virtual void makVrv::DtAttachWidgetLogic::detach | ( | ) | [protected, virtual] |
Tell the current observer to detach from all attached objects.
Reimplemented in makVrf::DtVrfAttachWidgetLogic.
| virtual void makVrv::DtAttachWidgetLogic::attachNext | ( | ) | [protected, virtual] |
Tell the current observer to attach to the next (allowed) object.
Reimplemented in makVrf::DtVrfAttachWidgetLogic.
| virtual void makVrv::DtAttachWidgetLogic::attachPrevious | ( | ) | [protected, virtual] |
Tell the current observer to attach to the previous (allowed) object.
Reimplemented in makVrf::DtVrfAttachWidgetLogic.
| virtual void makVrv::DtAttachWidgetLogic::attachToPart | ( | const std::string & | partName | ) | [protected, virtual] |
Tell the current observer to attach to a part.
| virtual void makVrv::DtAttachWidgetLogic::setHideAttachedModel | ( | bool | hide | ) | [protected, virtual] |
Update the current observer's hide model state.
| virtual void makVrv::DtAttachWidgetLogic::setAttachFilterType | ( | int | filterType | ) | [protected, virtual] |
Cache the current attach filter for use in attach methods.
| virtual void makVrv::DtAttachWidgetLogic::setCurrentObserver | ( | const std::string & | observerName | ) | [protected, virtual] |
Set the observer to use in all other operations.
| virtual void makVrv::DtAttachWidgetLogic::attachToSelected | ( | ) | [protected, virtual] |
Tell the current observer to attach to the current selection.
Reimplemented in makVrf::DtVrfAttachWidgetLogic.
| virtual void makVrv::DtAttachWidgetLogic::attachSelectedByMode | ( | int | mode | ) | [protected, virtual] |
Tell the current observer to attach to the current selection in the specified attach mode.
| virtual void makVrv::DtAttachWidgetLogic::setAttachMode | ( | int | mode | ) | [protected, virtual] |
process a change in attach mode
Reimplemented in makVrf::DtVrfAttachWidgetLogic.
| virtual void makVrv::DtAttachWidgetLogic::observerChanged | ( | const std::string & | observerName, |
| const DtUniqueID & | id | ||
| ) | [protected, virtual] |
| virtual void makVrv::DtAttachWidgetLogic::slot_activate | ( | DtDe * | subject | ) | [protected, virtual] |
| virtual void makVrv::DtAttachWidgetLogic::slot_deactivate | ( | DtDe * | subject | ) | [protected, virtual] |
| void makVrv::DtAttachWidgetLogic::setCurrentObserver | ( | DtObserver * | observer | ) | [protected] |
Called by public setCurrentObserver()
| void makVrv::DtAttachWidgetLogic::onAttachedToChanged | ( | DtObserver * | observer | ) | [protected] |
called by signal when an observer's attachments change
| void makVrv::DtAttachWidgetLogic::onHideModelChanged | ( | DtObserver * | observer | ) | [protected] |
called by signal when an observer's hide model state changes
| void makVrv::DtAttachWidgetLogic::updateAttachedNames | ( | ) | [protected] |
Updates the names of the attached elements.
| virtual void makVrv::DtAttachWidgetLogic::onObserverAboutToBeDestroyed | ( | DtInputDriver * | driver, |
| DtObserver * | observer | ||
| ) | [protected, virtual] |
called by signal when an observer is destroyed
| virtual void makVrv::DtAttachWidgetLogic::onCurrentObserverChanged | ( | DtInputDriver * | driver, |
| DtObserver * | observer | ||
| ) | [protected, virtual] |
| void makVrv::DtAttachWidgetLogic::onAttachTypeChanged | ( | DtObserver * | observer | ) | [protected] |
called by signal when an observer's attach type changes
| void makVrv::DtAttachWidgetLogic::onCurrentAttachFilterTypeChanged | ( | const DtAttachManager::ElementTypeList & | filterType | ) | [protected] |
| virtual void makVrv::DtAttachWidgetLogic::onSelectionChanged | ( | const DtSelectionManager::IdSet & | selected, |
| const DtSelectionManager::IdSet & | deselected | ||
| ) | [protected, virtual] |
called by signal when selection state changes
| virtual void makVrv::DtAttachWidgetLogic::onIs2DChanged | ( | int | mode | ) | [protected, virtual] |
| virtual void makVrv::DtAttachWidgetLogic::onObserverModeChanged | ( | DtObserver * | , |
| int | mode | ||
| ) | [protected, virtual] |
| virtual void makVrv::DtAttachWidgetLogic::enableSingleAttachModes | ( | ) | [protected, virtual] |
enable all attach modes
| virtual void makVrv::DtAttachWidgetLogic::enableMultipleAttachModes | ( | ) | [protected, virtual] |
enable only that attach modes that make sense for multiple attach
| void makVrv::DtAttachWidgetLogic::determineAttachState | ( | ) | [protected] |
Determine the current attach state.
Reimplemented in makVrf::DtVrfAttachWidgetLogic.
| void makVrv::DtAttachWidgetLogic::updateAttachStateToWidget | ( | ) | [protected] |
Send current attach state to widget.
| void makVrv::DtAttachWidgetLogic::determineSelectionState | ( | ) | [protected] |
Determine the current selection state.
| void makVrv::DtAttachWidgetLogic::updateSelectionStateToWidget | ( | ) | [protected] |
Send current selection state to widget.
| const DtAttachManager::ElementTypeList& makVrv::DtAttachWidgetLogic::indexToAttachFilterType | ( | int | index | ) | [protected] |
| int makVrv::DtAttachWidgetLogic::attachFilterTypeToIndex | ( | const DtAttachManager::ElementTypeList & | filterType | ) | [protected] |
| void makVrv::DtAttachWidgetLogic::updateAttachableParts | ( | ) | [protected] |
friend class DtAttachWidgetLogicCreator [friend] |
DtDe& makVrv::DtAttachWidgetLogic::myDe [protected] |
DtObserver* makVrv::DtAttachWidgetLogic::myCurrentObserver [protected] |