![]() |
VR-Forces 5.0.1 Developer's Guide
|
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.

Public Types | |
| typedef std::set< DtUUID > | GroupItems |
| typedef std::map< std::string, GroupItems > | SelectionGroups |
Public Member Functions | |
| DtSelectionGroupManager (makVrv::DtDe &de) | |
| virtual | ~DtSelectionGroupManager () |
| virtual void | createSelectionGroup (const std::string &, bool signal=true) |
| virtual void | createSelectionGroupFromCurrentSelection (const std::string &groupName, bool select=false) |
| virtual void | clearSelectionGroup (const std::string &) |
| virtual void | removeSelectionGroup (const std::string &) |
| virtual bool | hasSelectionGroup (const std::string &) const |
| virtual void | renameSelectionGroup (const std::string &from, const std::string &to) |
| virtual void | addItemToSelectionGroup (const std::string &, const DtUUID &, bool signal=true) |
| virtual bool | atLeastOneItemNotInSelectionGroup (const std::string &, const GroupItems &names) const |
| virtual bool | atLeastOneItemNotInSelectionGroup (const std::string &, const std::vector< DtUUID > &names) const |
| virtual bool | anyItemsInSelectionGroup (const std::string &, const GroupItems &names) const |
| virtual bool | anyItemsInSelectionGroup (const std::string &, const std::vector< DtUUID > &names) const |
| virtual void | addItemsToSelectionGroup (const std::string &, const GroupItems &names, bool signal=true) |
| virtual void | addItemsToSelectionGroup (const std::string &, const std::vector< DtUUID > &names, bool signal=true) |
| virtual bool | itemInAnySelectionGroup (const DtUUID &) const |
| virtual void | removeItemFromSelectionGroup (const std::string &, const DtUUID &) |
| virtual void | removeItemsFromSelectionGroup (const std::string &, const GroupItems &names) |
| virtual void | removeItemsFromSelectionGroup (const std::string &, const std::vector< DtUUID > &names) |
| virtual const SelectionGroups & | selectionGroups () const |
| virtual bool | load (const std::string &) |
| virtual bool | save (const std::string &) |
| virtual std::string | toStringBuffer () |
| virtual bool | fromStringBuffer (const std::string &) |
| virtual void | removeAll () |
| virtual GroupItems | itemsInSelectionGroup (const std::string &) const |
| virtual bool | itemIsInSelectionGroup (const std::string &group, const DtUUID &) const |
| virtual void | selectItemsInSelectionGroup (const std::string &) |
| virtual const std::string & | selectedSelectionGroup () const |
| virtual void | processCreateSelectionGroup (DtSimMessage *) |
| virtual bool | canRenameSelectionGroup (const std::string &) const |
| virtual void | allScenarioObjectsDiscovered () |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
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 |
| boost::signals2::signal< void(std::string)> | signal_selectionGroupRemoved |
| boost::signals2::signal< void(std::string)> | signal_selectionGroupCleared |
| boost::signals2::signal< void(std::string, GroupItems)> | signal_itemsAddedToSelectionGroup |
| boost::signals2::signal< void(std::string, GroupItems)> | signal_itemsRemovedFromSelectionGroup |
| boost::signals2::signal< void(DtUUID)> | signal_itemRemovedFromGroups |
| boost::signals2::signal< void()> | signal_loading |
| boost::signals2::signal< void()> | signal_loaded |
| boost::signals2::signal< void()> | signal_selectionGroupsCleared |
| boost::signals2::signal< void(std::string, std::string)> | signal_itemRenamed |
| boost::signals2::signal< void(std::string)> | signal_selectionGroupSelected |
Protected Member Functions | |
| virtual void | slot_stateRemoved (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *) |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| SelectionGroups | mySelectionGroupsUUID |
| makVrv::DtSignalConnectionManager | myConnectionManager |
| std::string | mySelectedSelectionGroup |
| bool | myWaitingForDiscovery |
Friends | |
| class | boost::serialization::access |
| 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 |