VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtAttachWidgetLogic Class Reference

The logic for driving an attach widget.

Inheritance diagram for makVrv::DtAttachWidgetLogic:
Inheritance graph
[legend]

Public Types

enum  AttachState { Unattached, SingleAttached, MultipleAttached, ObserverAttached }
 
enum  SelectionState { NoSelection, SingleSelection, MultipleSelection, ObserverSelection }
 

Public Member Functions

virtual ~DtAttachWidgetLogic ()
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Protected Member Functions

virtual void detach ()
 
virtual void attachNext ()
 
virtual void attachPrevious ()
 
virtual void attachToPart (const std::string &partName)
 
virtual void setHideAttachedModel (bool hide)
 
virtual void setAttachFilterType (int filterType)
 
virtual void setCurrentObserver (const std::string &observerName)
 
virtual void attachToSelected ()
 
virtual void attachSelectedByMode (int mode)
 
virtual void setAttachMode (int 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)
 
void setCurrentObserver (DtObserver *observer)
 
void onAttachedToChanged (DtObserver *observer)
 
void onHideModelChanged (DtObserver *observer)
 
void updateAttachedNames ()
 
virtual void onObserverAboutToBeDestroyed (DtInputDriver *driver, DtObserver *observer)
 
virtual void onCurrentObserverChanged (DtInputDriver *driver, DtObserver *observer)
 
void onAttachTypeChanged (DtObserver *observer)
 
void onCurrentAttachFilterTypeChanged (const DtAttachManager::ElementTypeList &filterType)
 
virtual void onSelectionChanged (const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &deselected)
 
virtual void onIs2DChanged (int mode)
 
virtual void onObserverModeChanged (DtObserver *, int mode)
 
virtual void enableSingleAttachModes ()
 
virtual void enableObserverAttachModes ()
 
virtual void enableMultipleAttachModes ()
 
void determineAttachState ()
 
void updateAttachStateToWidget ()
 
void determineSelectionState ()
 
void updateSelectionStateToWidget ()
 
const
DtAttachManager::ElementTypeList
indexToAttachFilterType (int index)
 
int attachFilterTypeToIndex (const DtAttachManager::ElementTypeList &filterType)
 
void updateAttachableParts ()
 

Protected Attributes

DtDemyDe
 
DtAttachWidgetInterfacemyInterface
 
DtObservermyCurrentObserver
 
AttachState myAttachState
 
SelectionState mySelectionState
 
DtAttachManager::ElementTypeList myCurrentAttachFilterType
 
DtObserverObject::AttachType myAttachMode
 
DtSignalConnectionManager myConnections
 

Friends

class DtAttachWidgetLogicCreator
 

Member Enumeration Documentation

Enumerator
Unattached 
SingleAttached 
MultipleAttached 
ObserverAttached 
Enumerator
NoSelection 
SingleSelection 
MultipleSelection 
ObserverSelection 

Constructor & Destructor Documentation

virtual makVrv::DtAttachWidgetLogic::~DtAttachWidgetLogic ( )
virtual

virtual DTOR

makVrv::DtAttachWidgetLogic::DtAttachWidgetLogic ( DtDe de,
DtAttachWidgetInterface iFace 
)
protected

Constructor (protected - use ::create() )

Member Function Documentation

virtual void makVrv::DtAttachWidgetLogic::detach ( )
protectedvirtual

Tell the current observer to detach from all attached objects.

Reimplemented in makVrf::DtVrfAttachWidgetLogic.

virtual void makVrv::DtAttachWidgetLogic::attachNext ( )
protectedvirtual

Tell the current observer to attach to the next (allowed) object.

Reimplemented in makVrf::DtVrfAttachWidgetLogic.

virtual void makVrv::DtAttachWidgetLogic::attachPrevious ( )
protectedvirtual

Tell the current observer to attach to the previous (allowed) object.

Reimplemented in makVrf::DtVrfAttachWidgetLogic.

virtual void makVrv::DtAttachWidgetLogic::attachToPart ( const std::string &  partName)
protectedvirtual

Tell the current observer to attach to a part.

virtual void makVrv::DtAttachWidgetLogic::setHideAttachedModel ( bool  hide)
protectedvirtual

Update the current observer's hide model state.

virtual void makVrv::DtAttachWidgetLogic::setAttachFilterType ( int  filterType)
protectedvirtual

Cache the current attach filter for use in attach methods.

virtual void makVrv::DtAttachWidgetLogic::setCurrentObserver ( const std::string &  observerName)
protectedvirtual

Set the observer to use in all other operations.

virtual void makVrv::DtAttachWidgetLogic::attachToSelected ( )
protectedvirtual

Tell the current observer to attach to the current selection.

Reimplemented in makVrf::DtVrfAttachWidgetLogic.

virtual void makVrv::DtAttachWidgetLogic::attachSelectedByMode ( int  mode)
protectedvirtual

Tell the current observer to attach to the current selection in the specified attach mode.

virtual void makVrv::DtAttachWidgetLogic::setAttachMode ( int  mode)
protectedvirtual

process a change in attach mode

Reimplemented in makVrf::DtVrfAttachWidgetLogic.

virtual void makVrv::DtAttachWidgetLogic::observerChanged ( const std::string &  observerName,
const DtUniqueID id 
)
protectedvirtual
virtual void makVrv::DtAttachWidgetLogic::slot_activate ( DtDe subject)
protectedvirtual
virtual void makVrv::DtAttachWidgetLogic::slot_deactivate ( DtDe subject)
protectedvirtual
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 
)
protectedvirtual

called by signal when an observer is destroyed

virtual void makVrv::DtAttachWidgetLogic::onCurrentObserverChanged ( DtInputDriver driver,
DtObserver observer 
)
protectedvirtual
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 
)
protectedvirtual

called by signal when selection state changes

Reimplemented in makVrf::DtVrfAttachWidgetLogic.

virtual void makVrv::DtAttachWidgetLogic::onIs2DChanged ( int  mode)
protectedvirtual
virtual void makVrv::DtAttachWidgetLogic::onObserverModeChanged ( DtObserver ,
int  mode 
)
protectedvirtual
virtual void makVrv::DtAttachWidgetLogic::enableSingleAttachModes ( )
protectedvirtual

enable all attach modes

virtual void makVrv::DtAttachWidgetLogic::enableObserverAttachModes ( )
protectedvirtual

enable all attach modes

virtual void makVrv::DtAttachWidgetLogic::enableMultipleAttachModes ( )
protectedvirtual

enable only that attach modes that make sense for multiple attach

void makVrv::DtAttachWidgetLogic::determineAttachState ( )
protected

Determine the current attach state.

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

Friends And Related Function Documentation

friend class DtAttachWidgetLogicCreator
friend

Member Data Documentation

DtDe& makVrv::DtAttachWidgetLogic::myDe
protected
DtAttachWidgetInterface& makVrv::DtAttachWidgetLogic::myInterface
protected
DtObserver* makVrv::DtAttachWidgetLogic::myCurrentObserver
protected
AttachState makVrv::DtAttachWidgetLogic::myAttachState
protected
SelectionState makVrv::DtAttachWidgetLogic::mySelectionState
protected
DtAttachManager::ElementTypeList makVrv::DtAttachWidgetLogic::myCurrentAttachFilterType
protected
DtObserverObject::AttachType makVrv::DtAttachWidgetLogic::myAttachMode
protected
DtSignalConnectionManager makVrv::DtAttachWidgetLogic::myConnections
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)