VR-Forces 4.1 Class Documentation
List of all members | Classes | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
DtObjectFilterManager Class Reference
Inheritance diagram for DtObjectFilterManager:
Inheritance graph
[legend]

Classes

struct  FilterContext

Public Member Functions

 DtObjectFilterManager (makVrv::DtDe &de)
virtual ~DtObjectFilterManager ()
virtual void activateFilter (bool, const makVrf::DtVrfSelectionFilter &)
virtual bool filterActive (const makVrf::DtVrfSelectionFilter &) const
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Member Functions

static DtObjectFilterManagerinstance (makVrv::DtDe &)

Protected Types

typedef std::map< std::string,
makVrf::DtVrfSelectionFilter * > 
FilterMap
typedef std::map< std::string,
bool
FilterContextMap
 Map of filters that are currently applied to the particular element ID.
typedef std::map
< makVrv::DtElementID,
FilterContext
ElementContextMap
 Map of element ID to current hide contexts.
typedef std::map< std::string,
int > 
ShowHideContextMap
 Map of IDs to show/hide context.

Protected Member Functions

virtual void slot_simObjectEntryAboutToBeRemoved (makVrv::DtSimObjectEntry &e)
 Remove from internal structures this element.
virtual void slot_simStateAdded (makVrv::DtSimObjectEntry &e)
 Add to internal structures and connect to object for state view being updated.
virtual void slot_tick ()
 Called when items are waiting, see if base state has shown up.
virtual void slot_stateViewUpdated (makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *)
 Called when a state view is updated, see if the visiblity state of any filter has changed for this object.
virtual void deactivateFilter (const makVrf::DtVrfSelectionFilter &)
 Goes through all items, and, any item that is activated by this filter will be deactivated.
virtual void deactivateFilter (const makVrf::DtVrfSelectionFilter &, makVrv::DtElementID)
virtual void activateFilter (const makVrf::DtVrfSelectionFilter &)
 Goes through all items and activates the filter for any item that passes the filter test.
virtual void activateFilter (const makVrf::DtVrfSelectionFilter &, makVrv::DtElementID)
virtual int showHideContext (const std::string &filter)
 Returns a show/hide context for the particular show/hide item.
virtual void show (makVrv::DtElementID, int context, bool makeVisible)
 Will send an element data request to show/hide the particular context.

Protected Attributes

makVrv::DtDemyDe
FilterMap myFilters
makVrv::DtSignalConnectionManager myConnectionManager
 Manages all boost connections made by this object.
ElementContextMap myElementContextMap
std::map< makVrv::DtElementID,
bool
myWaiting
ShowHideContextMap myShowHideContextMap

Member Typedef Documentation

typedef std::map<std::string, makVrf::DtVrfSelectionFilter*> DtObjectFilterManager::FilterMap
protected
typedef std::map<std::string, bool> DtObjectFilterManager::FilterContextMap
protected

Map of filters that are currently applied to the particular element ID.

Kept so that items are not hidden or shown for a particular filter more than the one time they need to be Map of filter contexts activated

Map of element ID to current hide contexts.

typedef std::map<std::string, int> DtObjectFilterManager::ShowHideContextMap
protected

Map of IDs to show/hide context.

Constructor & Destructor Documentation

DtObjectFilterManager::DtObjectFilterManager ( makVrv::DtDe de)
virtual DtObjectFilterManager::~DtObjectFilterManager ( )
virtual

Member Function Documentation

static DtObjectFilterManager& DtObjectFilterManager::instance ( makVrv::DtDe )
static
virtual void DtObjectFilterManager::activateFilter ( bool  ,
const makVrf::DtVrfSelectionFilter  
)
virtual
virtual bool DtObjectFilterManager::filterActive ( const makVrf::DtVrfSelectionFilter ) const
virtual
virtual void DtObjectFilterManager::slot_simObjectEntryAboutToBeRemoved ( makVrv::DtSimObjectEntry e)
protectedvirtual

Remove from internal structures this element.

virtual void DtObjectFilterManager::slot_simStateAdded ( makVrv::DtSimObjectEntry e)
protectedvirtual

Add to internal structures and connect to object for state view being updated.

virtual void DtObjectFilterManager::slot_tick ( )
protectedvirtual

Called when items are waiting, see if base state has shown up.

virtual void DtObjectFilterManager::slot_stateViewUpdated ( makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *  )
protectedvirtual

Called when a state view is updated, see if the visiblity state of any filter has changed for this object.

virtual void DtObjectFilterManager::deactivateFilter ( const makVrf::DtVrfSelectionFilter )
protectedvirtual

Goes through all items, and, any item that is activated by this filter will be deactivated.

virtual void DtObjectFilterManager::deactivateFilter ( const makVrf::DtVrfSelectionFilter ,
makVrv::DtElementID   
)
protectedvirtual
virtual void DtObjectFilterManager::activateFilter ( const makVrf::DtVrfSelectionFilter )
protectedvirtual

Goes through all items and activates the filter for any item that passes the filter test.

virtual void DtObjectFilterManager::activateFilter ( const makVrf::DtVrfSelectionFilter ,
makVrv::DtElementID   
)
protectedvirtual
virtual int DtObjectFilterManager::showHideContext ( const std::string &  filter)
protectedvirtual

Returns a show/hide context for the particular show/hide item.

virtual void DtObjectFilterManager::show ( makVrv::DtElementID  ,
int  context,
bool  makeVisible 
)
protectedvirtual

Will send an element data request to show/hide the particular context.

Member Data Documentation

makVrv::DtDe& DtObjectFilterManager::myDe
protected
FilterMap DtObjectFilterManager::myFilters
protected
makVrv::DtSignalConnectionManager DtObjectFilterManager::myConnectionManager
protected

Manages all boost connections made by this object.

Will disconnect them automatically when this object is destroyed

ElementContextMap DtObjectFilterManager::myElementContextMap
protected
std::map<makVrv::DtElementID, bool> DtObjectFilterManager::myWaiting
protected
ShowHideContextMap DtObjectFilterManager::myShowHideContextMap
protected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)