VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
makVrf::DtVrfSelectionManager Class Reference

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

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

Public Member Functions

 DtVrfSelectionManager (makVrv::DtDe &)
 
virtual ~DtVrfSelectionManager ()
 
virtual void performSelectionOperation (SelectionOperation op, const IdSet &baseIds)
 Utility function for specify the operation using a variable. More...
 
virtual bool isTerrain (makVrv::DtUniqueID) const
 Returns true if this id is a terrain. More...
 
- Public Member Functions inherited from makVrv::DtSelectionManager
virtual ~DtSelectionManager ()
 DTOR. More...
 
virtual void setCurrentSelections (const IdSet &selections)
 set the current selection set More...
 
virtual void setCurrentHovered (const DtUniqueID &sceneObjId, bool hovered)
 Announce whether a widget associated with some scene object is being hovered over with the mouse cursor. More...
 
const DtSelectionManager::IdSetcurrentSelections () const
 get the current selection set More...
 
virtual void addToCurrentSelection (const IdSet &adds)
 add to the current selection set More...
 
virtual void maintainCurrentSelectionIfSelected (const IdSet &maintain)
 If item is already selected, maintain the current selection, else act as SetSelection. More...
 
virtual void removeFromCurrentSelection (const IdSet &removes)
 add to the current selection set More...
 
virtual void toggleFromCurrentSelection (const IdSet &toggles)
 Each id current not selected will be selected and each id already selected will be deselected. More...
 
virtual void removeFromCurrentSelection (const DtElementData::UniqueIdList &removes)
 add to the current selection set More...
 
SelectionMode selectionMode () const
 Selection Mode. More...
 
virtual void setSelectionMode (SelectionMode mode)
 
virtual bool isSelectable (DtUniqueID id) const
 Determine an element's selectability Determines, based on the element's type and current selection mode, if the object is selectable. More...
 
virtual bool isSelectable (const DtElementEntry *entry) const
 Determine an object's selectability. More...
 
bool isSelected (DtUniqueID id) const
 Check to see if an object is selected. More...
 
virtual SelectionType selectionType () const
 
virtual bool propSelectionHasNonReplacedProp ()
 check to see if any of the selected props are not replaced props More...
 
virtual bool propSelectionMajorityTransparent ()
 Is the majority of selected props transparent or opaque; used by toggle transparency selected. More...
 
virtual void slot_onElementsRemoved (const DtElementData::UniqueIdList &elementIds)
 Called by signal whenever elements are removed. More...
 
virtual void backupCurrentSelection ()
 Puts the current selection onto the backup queue. More...
 
virtual bool restoreCurrentSelection ()
 Restores a previously backed up selection. More...
 
bool selectionIsVertex (const IdSet &selection)
 
bool objectIsVertex (const DtUniqueID &id)
 
DtUniqueID parentId (const DtUniqueID &id)
 
virtual bool allItemsWantVertexSelection (const IdSet &) const
 Returns true if the items in the selection set are vertices and the vertices parents all want vertex selection. More...
 
virtual void addWantsVertexSelection (DtElementEntry::ElementType)
 Adds an item to the wants to have vertex selection list. More...
 
virtual void removeWantsVertexSelection (DtElementEntry::ElementType)
 Removes an item to the wants to have vertex selection list. More...
 
virtual bool wantsVertexSelection (DtElementID) const
 Returns true if the object type wants vertex selection. More...
 
virtual void addSelectableObjectType (DtElementEntry::ElementType type, SelectionMode=SelectionModeAll)
 {@ More...
 
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
 Uses current selection mode to see if object type is selectable. More...
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor. More...
 
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor. More...
 

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
}
 The nature of the current selection. More...
 
enum  SelectionOperation {
  NoOperation = 0, AddToSelection, RemoveFromSelection, MultipleSelection,
  SetSelection, ClearSelection, MaintainSelectionIfSelected
}
 
typedef std::set< DtUniqueIDIdSet
 
- Static Public Member Functions inherited from makVrv::DtSelectionManager
static DtSelectionManagerinstance (DtDe &de)
 Get the selection manager instance. More...
 
static SelectionOperation selectionOperationForMouseEvent (const DtMouseEvent &mouseEvent)
 Choose the appropriate selection operation based on the mouse event. More...
 
static bool typeSupportsMultipleSelection (DtElementEntry::ObjectType type, bool vertexSelectsParent)
 Check to see if an object type supports multiple selection. More...
 
- Public Attributes inherited from makVrv::DtSelectionManager
boost::signalslib::signal
< void(const DtElementID
&entityId, bool hasMouseCursor)> 
signal_elementHasMouseCursorStateChanged
 Emitted when an element's scene object is being hovered over by the mouse cursor. More...
 
boost::signalslib::signal
< void(const IdSet &selected,
const IdSet &deselected,
SelectionType newType,
SelectionType oldType)> 
signal_currentSelectionChanged
 Emited when the current selection changes. More...
 
boost::signalslib::signal
< void(const DtUniqueID &id,
const DtUniqueID &parentId)> 
signal_vertexSelected
 Special case: emitted in addition to of currentSelectionChanged when a vertex is selected. More...
 
boost::signalslib::signal
< void(const DtUniqueID &id,
const DtUniqueID &parentId)> 
signal_vertexDeselected
 Special case: emitted in addition to currentSelectionChanged when a vertex is deselected. More...
 
boost::signalslib::signal
< void(const IdSet &entityIds)> 
signal_entityInfoToggled
 Emitted when the selected entities have their info pin state toggled Perhaps this signal doesn't belong here... More...
 
boost::signalslib::signal
< void(const DtUniqueID
&, const DtColorValue &, bool)> 
signal_entityTrackHistoryColorOverride
 Emitted when the selected entity has its track history color changed. More...
 
boost::signalslib::signal< void()> signal_selectionModeChanged
 Emited when the selection mode changes. More...
 
- 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)
 CTOR. More...
 
void addToCurrentSelection (DtUniqueID id)
 add to the current selection set More...
 
void removeFromCurrentSelection (DtUniqueID id)
 add to the current selection set More...
 
void announceCurrentSelectionChanged (const IdSet &selected, const IdSet &deselected, SelectionType oldType)
 Announce the selection changes by emitting signals. More...
 
void updateSelectionDisplay (const IdSet &selected, const IdSet &deselected)
 
void updateSelectionType ()
 
SelectionType elementSelectionType (DtElementEntry *entry) const
 Get the selection type for an element. More...
 
void convertVertexIdsToParentIds (const IdSet &in, IdSet &out)
 
- Protected Attributes inherited from makVrv::DtSelectionManager
DtDemyDe
 
IdSet myCurrentSelections
 
SelectionMode mySelectionMode
 
bool myIgnoreSelectionChanges
 Set when a signal is raised to avoid loops. More...
 
bool myIgnoreSelectionModeChanges
 
SelectionType mySelectionType
 
IdSetQueue myBackupSelections
 
WantsVertexSelection myWantsVertexSelection
 
SelectionModeMap mySelectionModeMap
 
DtSignalConnectionManager mySignals
 

Detailed Description

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

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.


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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)