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 Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes
makVrf::DtVrfSelectionManager Class Reference

Override to prevent terrain from being in multiple selection if that is the operation to be performed during selection.

Inheritance diagram for makVrf::DtVrfSelectionManager:
Inheritance graph
[legend]

Public Member Functions

 DtVrfSelectionManager (makVrv::DtDe &)
 
virtual ~DtVrfSelectionManager ()
 
virtual void performSelectionOperation (SelectionOperation op, const IdSet &baseIds)
 
virtual bool isTerrain (makVrv::DtUniqueID) const
 
virtual bool setBlockSelectionChange (bool)
 
bool blockSelectionChange () const
 
virtual void setCurrentSelections (const makVrv::DtSelectionManager::IdSet &selections)
 
virtual void clearBackups ()
 
- Public Member Functions inherited from makVrv::DtSelectionManager
virtual ~DtSelectionManager ()
 
virtual void setCurrentHovered (const DtUniqueID &sceneObjId, bool hovered)
 
const DtSelectionManager::IdSetcurrentSelections () const
 
virtual void addToCurrentSelection (const IdSet &adds)
 
virtual void maintainCurrentSelectionIfSelected (const IdSet &maintain)
 
virtual void removeFromCurrentSelection (const IdSet &removes)
 
virtual void toggleFromCurrentSelection (const IdSet &toggles)
 
virtual void removeFromCurrentSelection (const DtElementData::UniqueIdList &removes)
 
SelectionMode selectionMode () const
 
virtual void setSelectionMode (SelectionMode mode)
 
virtual bool isSelectable (DtUniqueID id) const
 
virtual bool isSelectable (const DtElementEntry *entry) const
 
bool isSelected (DtUniqueID id) const
 
virtual SelectionType selectionType () const
 
virtual bool propSelectionHasNonReplacedProp ()
 
virtual bool propSelectionMajorityTransparent ()
 
virtual void slot_onElementsRemoved (const DtElementData::UniqueIdList &elementIds)
 
virtual void backupCurrentSelection ()
 
virtual bool restoreCurrentSelection ()
 
bool selectionIsVertex (const IdSet &selection)
 
bool objectIsVertex (const DtUniqueID &id)
 
DtUniqueID parentId (const DtUniqueID &id)
 
virtual bool allItemsWantVertexSelection (const IdSet &) const
 
virtual void addWantsVertexSelection (DtElementEntry::ElementType)
 
virtual void removeWantsVertexSelection (DtElementEntry::ElementType)
 
virtual bool wantsVertexSelection (DtElementID) const
 
virtual void addSelectableObjectType (DtElementEntry::ElementType type, SelectionMode=SelectionModeAll)
 
virtual void removeSelectableObjectType (DtElementEntry::ElementType type, SelectionMode)
 
virtual void removeSelectableObjectTypeFromAllModes (DtElementEntry::ElementType type)
 
virtual bool objectTypeSelectable (DtElementEntry::ElementType type, SelectionMode mode) const
 
virtual bool objectTypeSelectable (DtElementEntry::ObjectType type) const
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static DtVrfSelectionManagerinstance (makVrv::DtDe &de)
 
- Static Public Member Functions inherited from makVrv::DtSelectionManager
static DtSelectionManagerinstance (DtDe &de)
 
static SelectionOperation selectionOperationForMouseEvent (const DtMouseEvent &mouseEvent)
 
static bool typeSupportsMultipleSelection (DtElementEntry::ObjectType type, bool vertexSelectsParent)
 

Public Attributes

boost::signals2::signal< void(const
IdSet &, const IdSet &)> 
signal_selectionMaintained
 
- Public Attributes inherited from makVrv::DtSelectionManager
boost::signalslib::signal
< void(const DtElementID
&entityId, bool hasMouseCursor)> 
signal_elementHasMouseCursorStateChanged
 
boost::signalslib::signal
< void(const IdSet &selected,
const IdSet &deselected,
SelectionType newType,
SelectionType oldType)> 
signal_currentSelectionChanged
 
boost::signalslib::signal
< void(const DtUniqueID &id,
const DtUniqueID &parentId)> 
signal_vertexSelected
 
boost::signalslib::signal
< void(const DtUniqueID &id,
const DtUniqueID &parentId)> 
signal_vertexDeselected
 
boost::signalslib::signal
< void(const IdSet &entityIds,
bool pinAllLabels)> 
signal_infoLabelsArePinned
 
boost::signalslib::signal
< void(const DtUniqueID
&, const DtColorValue &, bool)> 
signal_entityTrackHistoryColorOverride
 
boost::signalslib::signal< void()> signal_selectionModeChanged
 

Protected Attributes

bool myBlockSelectionChange
 
- Protected Attributes inherited from makVrv::DtSelectionManager
DtDemyDe
 
IdSet myCurrentSelections
 
SelectionMode mySelectionMode
 
bool myIgnoreSelectionChanges
 
bool myIgnoreSelectionModeChanges
 
SelectionType mySelectionType
 
IdSetQueue myBackupSelections
 
WantsVertexSelection myWantsVertexSelection
 
SelectionModeMap mySelectionModeMap
 
DtSignalConnectionManager mySignals
 

Additional Inherited Members

- Public Types inherited from makVrv::DtSelectionManager
enum  SelectionMode { SelectionModeAll = 0, SelectionModeEntities = 1, SelectionModeTerrain = 2 }
 
enum  SelectionType {
  NoValidSelection, Entity, Prop, BuoyOrBeacon,
  Terrain, Aggregate, Observer, ControlObject,
  OverlayObject, Intervisibility, Feature, Mixed
}
 
enum  SelectionOperation {
  NoOperation = 0, AddToSelection, RemoveFromSelection, MultipleSelection,
  SetSelection, ClearSelection, MaintainSelectionIfSelected
}
 
typedef std::set< DtUniqueIDIdSet
 
- Protected Types inherited from makVrv::DtSelectionManager
typedef std::set
< DtElementEntry::ElementType
WantsVertexSelection
 
typedef std::set
< DtElementEntry::ElementType
ElementTypeSet
 
typedef boost::unordered_map
< SelectionMode,
ElementTypeSet
SelectionModeMap
 
typedef std::queue< IdSetIdSetQueue
 
- Protected Member Functions inherited from makVrv::DtSelectionManager
 DtSelectionManager (DtDe &de)
 
void addToCurrentSelection (DtUniqueID id)
 
void removeFromCurrentSelection (DtUniqueID id)
 
void announceCurrentSelectionChanged (const IdSet &selected, const IdSet &deselected, SelectionType oldType)
 
void updateSelectionDisplay (const IdSet &selected, const IdSet &deselected)
 
void updateSelectionType ()
 
SelectionType elementSelectionType (DtElementEntry *entry) const
 
void convertVertexIdsToParentIds (const IdSet &in, IdSet &out)
 

Constructor & Destructor Documentation

makVrf::DtVrfSelectionManager::DtVrfSelectionManager ( makVrv::DtDe )
virtual makVrf::DtVrfSelectionManager::~DtVrfSelectionManager ( )
virtual

Member Function Documentation

virtual void makVrf::DtVrfSelectionManager::performSelectionOperation ( SelectionOperation  op,
const IdSet ids 
)
virtual

Utility function for specify the operation using a variable.

Reimplemented from makVrv::DtSelectionManager.

virtual bool makVrf::DtVrfSelectionManager::isTerrain ( makVrv::DtUniqueID  ) const
virtual

Returns true if this id is a terrain.

virtual bool makVrf::DtVrfSelectionManager::setBlockSelectionChange ( bool  )
virtual
bool makVrf::DtVrfSelectionManager::blockSelectionChange ( ) const
inline
virtual void makVrf::DtVrfSelectionManager::setCurrentSelections ( const makVrv::DtSelectionManager::IdSet selections)
virtual

set the current selection set

Reimplemented from makVrv::DtSelectionManager.

virtual void makVrf::DtVrfSelectionManager::clearBackups ( )
virtual
static DtVrfSelectionManager& makVrf::DtVrfSelectionManager::instance ( makVrv::DtDe de)
static

Get the selection manager instance.

Member Data Documentation

boost::signals2::signal<void (const IdSet&, const IdSet&)> makVrf::DtVrfSelectionManager::signal_selectionMaintained
bool makVrf::DtVrfSelectionManager::myBlockSelectionChange
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)