![]() |
VR-Forces 4.10 Class Documentation
|
The DtSelectionGroupManager class is the interface to be used when creating selection group. More...

Public Types | |
| typedef std::set< DtUUID > | GroupItems |
| typedef std::map< std::string, GroupItems > | SelectionGroups |
Public Member Functions | |
| DtSelectionGroupManager (makVrv::DtDe &de) | |
| CTOR. More... | |
| virtual | ~DtSelectionGroupManager () |
| DTOR. More... | |
| virtual void | createSelectionGroup (const std::string &, bool signal=true) |
| Create a new selection group. If named selection group alread exists will do nothing. More... | |
| virtual void | createSelectionGroupFromCurrentSelection (const std::string &groupName, bool select=false) |
| Creates a selection group from the current selection as found in the DtVrfSelectionHandler selected names. More... | |
| virtual void | clearSelectionGroup (const std::string &) |
| Clears a selection group of all items. More... | |
| virtual void | removeSelectionGroup (const std::string &) |
| Deletes the selection groupd. More... | |
| virtual bool | hasSelectionGroup (const std::string &) const |
| Returns true if there is a named selection group. More... | |
| virtual void | renameSelectionGroup (const std::string &from, const std::string &to) |
| Renames a selection group. More... | |
| virtual void | addItemToSelectionGroup (const std::string &, const DtUUID &, bool signal=true) |
| Adds a new item to a selection group. More... | |
| virtual bool | atLeastOneItemNotInSelectionGroup (const std::string &, const GroupItems &names) const |
| Returns true if at least one of the supplied items is not in the selection group. More... | |
| virtual bool | atLeastOneItemNotInSelectionGroup (const std::string &, const std::vector< DtUUID > &names) const |
| virtual bool | anyItemsInSelectionGroup (const std::string &, const GroupItems &names) const |
| Returns true if any of the items are in the specified group. More... | |
| virtual bool | anyItemsInSelectionGroup (const std::string &, const std::vector< DtUUID > &names) const |
| virtual void | addItemsToSelectionGroup (const std::string &, const GroupItems &names, bool signal=true) |
| Adds new items to a selection group. More... | |
| virtual void | addItemsToSelectionGroup (const std::string &, const std::vector< DtUUID > &names, bool signal=true) |
| virtual bool | itemInAnySelectionGroup (const DtUUID &) const |
| Returns true if the named item is in any selection group. More... | |
| virtual void | removeItemFromSelectionGroup (const std::string &, const DtUUID &) |
| Removes an item vrom a selection group. More... | |
| virtual void | removeItemsFromSelectionGroup (const std::string &, const GroupItems &names) |
| Removes items vrom a selection group. More... | |
| virtual void | removeItemsFromSelectionGroup (const std::string &, const std::vector< DtUUID > &names) |
| virtual const SelectionGroups & | selectionGroups () const |
| Returns the current list of selection groups. More... | |
| virtual bool | load (const std::string &) |
| Loads and replaces the current selection group set. More... | |
| virtual bool | save (const std::string &) |
| Saves out the current selection group set. More... | |
| virtual std::string | toStringBuffer () |
| Saves to a string buffer. More... | |
| virtual bool | fromStringBuffer (const std::string &) |
| Restores from the string buffer. More... | |
| virtual void | removeAll () |
| Removes all selection groups. More... | |
| virtual GroupItems | itemsInSelectionGroup (const std::string &) const |
| Returns all the items in a particular selection group. More... | |
| virtual bool | itemIsInSelectionGroup (const std::string &group, const DtUUID &) const |
| Returns true if the names item is in the supplied selection group. More... | |
| virtual void | selectItemsInSelectionGroup (const std::string &) |
| Selects all the items in the specified selection group that are in the simulation. More... | |
| virtual const std::string & | selectedSelectionGroup () const |
| Returns the currently selected selection group. More... | |
| virtual void | processCreateSelectionGroup (DtSimMessage *) |
| Call back in response receiving creating selection group message. More... | |
| virtual bool | canRenameSelectionGroup (const std::string &) const |
| Returns true if the selection group can be renamed. More... | |
| virtual void | allScenarioObjectsDiscovered () |
| When upgrading, called when all scenario objects are discovered. More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Static Public Member Functions | |
| static DtSelectionGroupManager & | instance (makVrv::DtDe &de) |
| static void | registerInstance (makVrv::DtDe &de, DtSelectionGroupManager *) |
Public Attributes | |
| boost::signals2::signal< void(std::string)> | signal_selectionGroupAdded |
| boost::signals2::signal< void(std::string, std::string)> | signal_selectionGroupRenamed |
| Signal sent when a selection group is renamed. More... | |
| boost::signals2::signal< void(std::string)> | signal_selectionGroupRemoved |
| Signal sent when a selection group is removed. More... | |
| boost::signals2::signal< void(std::string)> | signal_selectionGroupCleared |
| Signal sent when a selection group is cleared of all its items. More... | |
| boost::signals2::signal< void(std::string, GroupItems)> | signal_itemsAddedToSelectionGroup |
| Signal sent when items are added to a selection group. More... | |
| boost::signals2::signal< void(std::string, GroupItems)> | signal_itemsRemovedFromSelectionGroup |
| Signal sent when items are removed from a selection group. More... | |
| boost::signals2::signal< void(DtUUID)> | signal_itemRemovedFromGroups |
| Signal sent when the item is removed from all selection groups. More... | |
| boost::signals2::signal< void()> | signal_loading |
| Signal sent before the selection group manager is loaded. More... | |
| boost::signals2::signal< void()> | signal_loaded |
| Signal sent after the selection group manager is loaded. More... | |
| boost::signals2::signal< void()> | signal_selectionGroupsCleared |
| Signal sent when the selection group manager is cleared. More... | |
| boost::signals2::signal< void(std::string, std::string)> | signal_itemRenamed |
| Signal emitted when an item is renamed in a selection group. More... | |
| boost::signals2::signal< void(std::string)> | signal_selectionGroupSelected |
| Signal emitted when current selection group has changed. More... | |
Protected Member Functions | |
| virtual void | slot_stateRemoved (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *) |
| Called when an item is removed, remove from selection group(s) they are in. More... | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
| When the class Archive corresponds to an output archive, the & operator is defined similar to <<. More... | |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| SelectionGroups | mySelectionGroupsUUID |
| makVrv::DtSignalConnectionManager | myConnectionManager |
| std::string | mySelectedSelectionGroup |
| bool | myWaitingForDiscovery |
Friends | |
| class | boost::serialization::access |
The DtSelectionGroupManager class is the interface to be used when creating selection group.
Selection groups are collection of named objects that can be used to select a group of objects at a single time
| typedef std::set<DtUUID> makVrf::DtSelectionGroupManager::GroupItems |
| typedef std::map<std::string, GroupItems> makVrf::DtSelectionGroupManager::SelectionGroups |
| makVrf::DtSelectionGroupManager::DtSelectionGroupManager | ( | makVrv::DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
static |
|
static |
|
virtual |
Create a new selection group. If named selection group alread exists will do nothing.
|
virtual |
Creates a selection group from the current selection as found in the DtVrfSelectionHandler selected names.
If selection group already exists replaces current contents of selection group If last parameter is true also will select that group
|
virtual |
Clears a selection group of all items.
|
virtual |
Deletes the selection groupd.
|
virtual |
Returns true if there is a named selection group.
|
virtual |
Renames a selection group.
If the selection group to rename to already exists selection group is not renamed
|
virtual |
Adds a new item to a selection group.
|
virtual |
Returns true if at least one of the supplied items is not in the selection group.
|
virtual |
|
virtual |
Returns true if any of the items are in the specified group.
|
virtual |
|
virtual |
Adds new items to a selection group.
|
virtual |
|
virtual |
Returns true if the named item is in any selection group.
|
virtual |
Removes an item vrom a selection group.
|
virtual |
Removes items vrom a selection group.
|
virtual |
|
virtual |
Returns the current list of selection groups.
|
virtual |
Loads and replaces the current selection group set.
|
virtual |
Saves out the current selection group set.
|
virtual |
Saves to a string buffer.
|
virtual |
Restores from the string buffer.
|
virtual |
Removes all selection groups.
|
virtual |
Returns all the items in a particular selection group.
|
virtual |
Returns true if the names item is in the supplied selection group.
|
virtual |
Selects all the items in the specified selection group that are in the simulation.
Emits a signal that this selection group is currently active
|
virtual |
Returns the currently selected selection group.
|
virtual |
Call back in response receiving creating selection group message.
|
virtual |
Returns true if the selection group can be renamed.
By default the "Selection Group <N>" groups cannot be renamed
|
virtual |
When upgrading, called when all scenario objects are discovered.
|
protectedvirtual |
Called when an item is removed, remove from selection group(s) they are in.
If selection group is empty will remove selection group
|
inlineprotected |
When the class Archive corresponds to an output archive, the & operator is defined similar to <<.
Likewise, when the class Archive is a type of input archive the & operator is defined similar to >>.
References DtUUID::nullUUID(), and DtUUID::setStringUUID().
|
friend |
| boost::signals2::signal<void (std::string)> makVrf::DtSelectionGroupManager::signal_selectionGroupAdded |
Signals for selection group manager
Signal sent when a new selection group is added
| boost::signals2::signal<void (std::string, std::string)> makVrf::DtSelectionGroupManager::signal_selectionGroupRenamed |
Signal sent when a selection group is renamed.
| boost::signals2::signal<void (std::string)> makVrf::DtSelectionGroupManager::signal_selectionGroupRemoved |
Signal sent when a selection group is removed.
| boost::signals2::signal<void (std::string)> makVrf::DtSelectionGroupManager::signal_selectionGroupCleared |
Signal sent when a selection group is cleared of all its items.
| boost::signals2::signal<void (std::string, GroupItems)> makVrf::DtSelectionGroupManager::signal_itemsAddedToSelectionGroup |
Signal sent when items are added to a selection group.
| boost::signals2::signal<void (std::string, GroupItems)> makVrf::DtSelectionGroupManager::signal_itemsRemovedFromSelectionGroup |
Signal sent when items are removed from a selection group.
| boost::signals2::signal<void (DtUUID)> makVrf::DtSelectionGroupManager::signal_itemRemovedFromGroups |
Signal sent when the item is removed from all selection groups.
| boost::signals2::signal<void ()> makVrf::DtSelectionGroupManager::signal_loading |
Signal sent before the selection group manager is loaded.
| boost::signals2::signal<void ()> makVrf::DtSelectionGroupManager::signal_loaded |
Signal sent after the selection group manager is loaded.
| boost::signals2::signal<void ()> makVrf::DtSelectionGroupManager::signal_selectionGroupsCleared |
Signal sent when the selection group manager is cleared.
| boost::signals2::signal<void (std::string, std::string)> makVrf::DtSelectionGroupManager::signal_itemRenamed |
Signal emitted when an item is renamed in a selection group.
| boost::signals2::signal<void (std::string)> makVrf::DtSelectionGroupManager::signal_selectionGroupSelected |
Signal emitted when current selection group has changed.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |