![]() |
VR-Forces 4.10 Class Documentation
|
This class will maintain a list of all available task and sets for a particular object in the scenario. More...

Public Types | |
| typedef std::map< int, std::vector < DtSimTaskMessageType > > | DtTaskMap |
| typedef std::map< int, std::vector< DtSetMessageType > > | DtSetMap |
| typedef std::vector < makVrv::DtSimEntry * > | SimEntries |
Public Member Functions | |
| DtVrfTaskSetManager (makVrv::DtDe &) | |
| virtual | ~DtVrfTaskSetManager () |
| virtual int | menuIdForTaskType (DtSimTaskMessageType) const |
| Returns the menu id for the give task type. More... | |
| virtual int | menuIdForSetType (DtSetMessageType) const |
| Returns the menu id for the give set type. More... | |
| virtual void | requestInformationFor (const DtUUID &, makVrv::DtUniqueID id) |
| Requests information for tasks and sets and possibly DI-Guy. More... | |
| virtual void | requestInformationFor (const std::vector< std::pair< DtUUID, makVrv::DtUniqueID > > &names) |
| virtual void | requestInformationFor (makVrv::DtUniqueID id) |
| virtual void | updateAvailableTaskSetInformation (const makVrv::DtSimEntry *type) |
| Calls down to specific managers to request information for current selection. More... | |
| virtual void | updateAvailableTaskSetInformation (const SimEntries &) |
| virtual void | updateAvailableTaskSetInformation (const DtUUID &) |
| virtual void | updateAvailableTaskSetInformation (makVrv::DtElementID id) |
| virtual void | clearInformationFor (makVrv::DtUniqueID id, bool request=false) |
| Clears information for the given entity and, if the flag is true, requests new information for that object. More... | |
| virtual void | clearInformationFor (const std::vector< makVrv::DtUniqueID > &ids, bool request=false) |
| virtual bool | hasTaskSetInformationFor (const makVrv::DtUniqueID &) const |
| Returns true if there is task/set information for this object. More... | |
| virtual bool | hasTaskSetInformationFor (const DtUUID &) const |
| Returns true if there is task/set information for this named object. More... | |
| virtual std::string | diGuyAnimationForKeyword (const std::string &kw) const |
| For the given keyword for animation return the display name. If not known returns keyword. More... | |
| virtual DtSetMessageType | setMessageType (int) const |
| Get the set type for the given action. More... | |
| virtual DtSimTaskMessageType | taskMessageType (int) const |
| Get the task type for the given action. More... | |
| virtual std::vector< DtString > | taskGroupsForTask (const DtEntityType &et, const DtSimTaskMessageType &taskType) const |
| Given the task type, return the task groups this task is part of. More... | |
| virtual void | setSupportedTasks (const makVrv::DtUniqueID &, const std::vector< DtSimTaskMessageType > &, bool signal=true) |
| virtual void | setSupportedSets (const makVrv::DtUniqueID &, const std::vector< DtSetMessageType > &, bool signal=true) |
| virtual void | setSupportingTasks (const makVrv::DtUniqueID &, const std::map< int, std::vector< DtSimTaskMessageType > > &, bool signal=true) |
| virtual std::vector < DtSimTaskMessageType > | availableTasks (const makVrv::DtUniqueID &) const |
| virtual std::vector < DtSetMessageType > | availableSets (const makVrv::DtUniqueID &) const |
| virtual std::vector < DtSimTaskMessageType > | availableSupportingTasks (const makVrv::DtUniqueID &, int type) const |
| virtual DtTasksAndSets::AvailableSupportingTasks | availableSupportingTasks (const makVrv::DtUniqueID &) const |
| virtual void | availableTasks (const makVrv::DtSelectionManager::IdSet &, std::set< int > &available, bool noTaskSetValueMeansAll=true) |
| virtual void | availableTasks (const makVrv::DtSelectionManager::IdSet &, std::vector< int > &available, bool noTaskSetValueMeansAll=true) |
| virtual void | availableSets (const makVrv::DtSelectionManager::IdSet &, std::set< int > &available, bool noTaskSetValueMeansAll=true) |
| virtual void | availableSets (const makVrv::DtSelectionManager::IdSet &, std::vector< int > &available, bool noTaskSetValueMeansAll=true) |
| virtual void | available (const makVrv::DtSelectionManager::IdSet &, std::set< int > &available, bool noTaskSetValueMeansAll=true) |
| virtual void | available (const makVrv::DtSelectionManager::IdSet &, std::vector< int > &available, bool noTaskSetValueMeansAll=true) |
| virtual std::vector< int > | supportedMenuTasks () const |
| virtual std::vector< int > | supportedMenuSets () const |
| virtual int | lookupTask (const DtSimTaskMessageType &type) const |
| Find the task type in myTaskMenuMap and return the key to which it is mapped or -1 if it's not found. More... | |
| virtual int | lookupSet (const DtSetMessageType &type) const |
| Find the set type in mySetMenuMap and return the key to which it is mapped or -1 if it's not found. More... | |
| virtual bool | hasPendingRequests () const |
| Returns true if there are some pending requests left. More... | |
| virtual bool | hasPendingRequest (makVrv::DtUniqueID) const |
| Returns true if there is a pending request for the given ID. More... | |
| virtual void | clearInformationForForce (int) |
| Clears out all information for any entity of the particular force. More... | |
| virtual bool | isAvailableTaskMenuItem (int) const |
| Returns true if the VRF task item or menu item is supported by the manager. More... | |
| virtual bool | isAvailableVrfTaskItem (const DtSimTaskMessageType &) const |
| virtual bool | isAvailableSetMenuItem (int) const |
| Returns true if the VRF set item or menu item is supported by the manager. More... | |
| virtual bool | isAvailableVrfSetItem (const DtSetMessageType &) const |
| virtual bool | hasDIGuyInformationFor (const makVrv::DtUniqueID &) const |
| virtual DtDIGuyAppearancesAndAnimations * | diGuyInformationFor (const makVrv::DtUniqueID &) |
| virtual void | setDIGuyAppearances (const makVrv::DtUniqueID &, const std::vector< DtString > &, bool signal=true) |
| virtual void | setDIGuyAnimations (const makVrv::DtUniqueID &, const AlternateNamesList &, bool signal=true) |
| virtual void | setDIGuyHandItems (const makVrv::DtUniqueID &, const std::vector< DtString > &, bool signal=true) |
| virtual void | setDIGuyGestures (const makVrv::DtUniqueID &, const std::vector< DtString > &, bool signal=true) |
| virtual void | setDIGuyHeads (const makVrv::DtUniqueID &, const DtString &appearance, const std::vector< DtString > &, bool signal=true) |
| virtual void | clearAllInformation () |
| Clears out all information about tasks, sets and di guy information stored. More... | |
| virtual DtTasksAndSets * | informationFor (const makVrv::DtUniqueID &) |
| virtual void | addAvailableSet (int menuItem, const DtSetMessageType &setType) |
| Add a new set/task that is available for validation. More... | |
| virtual void | addAvailableTask (int menuItem, const DtSimTaskMessageType &taskType) |
| virtual void | addAvailableSetForSingleSelection (int menuItem, const DtSetMessageType &setType) |
| This will add a set that is only valid if a single object is selected. More... | |
| virtual void | addAvailableTaskForSingleSelection (int menuItem, const DtSimTaskMessageType &taskType) |
| This will add a task that is only valid if a single object is selected. More... | |
| virtual void | setSetIsSingleSelection (int, bool) |
| Sets the particular set to be/not be single selection. More... | |
| virtual bool | setIsSingleSelection (int) const |
| virtual void | setTaskIsSingleSelection (int, bool) |
| Sets the particular task to be/not single selection. More... | |
| virtual bool | taskIsSingleSelection (int) const |
| virtual void | removeAvailableSet (int menuItem, const DtSetMessageType &setType) |
| Removes available task/set from the menu item. More... | |
| virtual void | removeAvailableTask (int menuItem, const DtSimTaskMessageType &taskType) |
| virtual void | requestDIGuyAppearancesAndAnimations (const DtUUID &) |
| virtual void | requestDIGuyAppearancesAndAnimations (const std::vector< DtUUID > &) |
| virtual int | nextAvailableId () const |
| Returns the next available user task/set id. More... | |
| virtual bool | isAvailableTask (makVrv::DtUniqueID id, DtSimTaskMessageType) const |
| Returns true if the given entity supports the given task. More... | |
| virtual bool | isAvailableSet (makVrv::DtUniqueID id, DtSetMessageType) const |
| Returns true if the given entity supports the given set. 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 DtVrfTaskSetManager & | instance (makVrv::DtDe &de) |
| Returns instance of the DtVrfEntityCreateHandler. More... | |
Public Attributes | |
| boost::signals2::signal< void()> | signal_allPendingRequestsResolved |
| Signal sent when all pending task/set requests are resolved. More... | |
| boost::signals2::signal< void(makVrv::DtUniqueID)> | signal_supportedTaskInformationChanged |
| boost::signals2::signal< void(makVrv::DtUniqueID)> | signal_supportingTaskInformationChanged |
| boost::signals2::signal< void(makVrv::DtUniqueID)> | signal_supportedSetInformationChanged |
| boost::signals2::signal< void(makVrv::DtUniqueID)> | signal_supportedDiGuyAnimationsInformationChanged |
| boost::signals2::signal< void(makVrv::DtUniqueID)> | signal_supportedDiGuyAppearanceInformationChanged |
| boost::signals2::signal< void(makVrv::DtUniqueID)> | signal_supportedDiGuyHandItemInformationChanged |
| boost::signals2::signal< void(makVrv::DtUniqueID)> | signal_supportedDiGuyGestureInformationChanged |
| boost::signals2::signal< void(makVrv::DtUniqueID)> | signal_supportedDiGuyHeadInformationChanged |
| boost::signals2::signal< void()> | signal_taskSetInformationCleared |
Protected Types | |
| typedef std::map< int, bool > | SingleSelectionMap |
| typedef std::map< int, std::set< DtUUID > > | PendingNameGroupRequests |
| typedef std::map< DtUUID, std::pair< makVrv::DtUniqueID, int > > | PendingRequests |
| typedef std::map< DtUUID, bool > | RequestingNames |
Protected Member Functions | |
| virtual void | requestTaskSetInformationFor (const DtUUID &) |
| Calls to DtGuiThreadVrfRemoteController to request task/set information for the given object. More... | |
| virtual void | requestTaskSetInformationFor (const std::vector< DtUUID > &) |
| virtual void | requestTaskSetInformationFor (const std::vector< DtString > &) |
| virtual void | processTaskAndSetResponse (DtSimMessage *) |
| virtual void | processDIGuyResponse (DtSimMessage *) |
| Calls DtGuiThreadVrfRemoteController to request DI Guy information. More... | |
| virtual void | initMenuMappings () |
| Initializes mappings between VRF tasks/sets and menu items. More... | |
| virtual bool | needsUpdateForForce (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *sv) |
| virtual bool | isAvailableMenuItem (int menu, const DtTaskMap &) const |
| virtual bool | isAvailableMenuItem (int menu, const DtSetMap &m) const |
| virtual bool | isAvailableVrfItem (const DtSimTaskMessageType &item, const DtTaskMap &) const |
| virtual bool | isAvailableVrfItem (const DtSetMessageType &item, const DtSetMap &) const |
| virtual void | mergeMenuItems (const std::vector< DtSimTaskMessageType > &entityItems, const DtTaskMap &menuMap, std::vector< int > &results) |
| Merges in the menu items from the resultant list with the list of that available for the entity. More... | |
| virtual void | mergeMenuItems (const std::vector< DtSetMessageType > &entityItems, const DtSetMap &menuMap, std::vector< int > &results) |
| virtual void | slot_postInitialize (makVrv::DtDe &de) |
| virtual void | slot_objectRemoved (makVrv::DtSimObjectEntry &) |
| virtual void | requestNextSetOfNames () |
Protected Attributes | |
| std::map< makVrv::DtUniqueID, int > | myForceMap |
| std::map< makVrv::DtUniqueID, DtTasksAndSets > | myTaskSetInformation |
| std::map< makVrv::DtUniqueID, DtDIGuyAppearancesAndAnimations * > | myDIGuyTaskSetCharacterInfo |
| PendingNameGroupRequests | myPendingNameGroupRequests |
| int | myPendingGroupRequest |
| PendingRequests | myPendingRequests |
| PendingRequests | myPendingDIGuyRequests |
| RequestingNames | myRequestingNames |
| DtSetMap | mySetMenuMap |
| Stores menu items mapped to their corresponding task/set ID. More... | |
| DtTaskMap | myTaskMenuMap |
| SingleSelectionMap | mySingleSelectionSetMap |
| SingleSelectionMap | mySingleSelectionTaskMap |
| makVrv::DtDe & | myDe |
| std::map< DtString, DtString > | myDiGuyAnimations |
This class will maintain a list of all available task and sets for a particular object in the scenario.
Use this class to register new types of tasks/set available to the system (see the addSet example) or for discovering which tasks/sets are currently available to an object in the simulation
| typedef std::map<int, std::vector<DtSimTaskMessageType> > makVrf::DtVrfTaskSetManager::DtTaskMap |
| typedef std::map<int, std::vector<DtSetMessageType> > makVrf::DtVrfTaskSetManager::DtSetMap |
| typedef std::vector<makVrv::DtSimEntry*> makVrf::DtVrfTaskSetManager::SimEntries |
|
protected |
|
protected |
|
protected |
|
protected |
| makVrf::DtVrfTaskSetManager::DtVrfTaskSetManager | ( | makVrv::DtDe & | ) |
|
virtual |
|
static |
Returns instance of the DtVrfEntityCreateHandler.
|
virtual |
Returns the menu id for the give task type.
This menu id can be used to bring up the task dialog for this task. Returns -1 if no id available
|
virtual |
Returns the menu id for the give set type.
This menu id can be used to bring up the set dialog for this task. Returns -1 if no id available
|
virtual |
Requests information for tasks and sets and possibly DI-Guy.
|
virtual |
|
virtual |
|
virtual |
Calls down to specific managers to request information for current selection.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Clears information for the given entity and, if the flag is true, requests new information for that object.
|
virtual |
|
virtual |
Returns true if there is task/set information for this object.
Returns true if there is task/set information for this named object.
Finds id for name and then calls id version of this method
|
virtual |
For the given keyword for animation return the display name. If not known returns keyword.
|
virtual |
Get the set type for the given action.
|
virtual |
Get the task type for the given action.
|
virtual |
Given the task type, return the task groups this task is part of.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Find the task type in myTaskMenuMap and return the key to which it is mapped or -1 if it's not found.
|
virtual |
Find the set type in mySetMenuMap and return the key to which it is mapped or -1 if it's not found.
|
virtual |
Returns true if there are some pending requests left.
|
virtual |
Returns true if there is a pending request for the given ID.
|
virtual |
Clears out all information for any entity of the particular force.
Returns true if the VRF task item or menu item is supported by the manager.
|
virtual |
Returns true if the VRF set item or menu item is supported by the manager.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Clears out all information about tasks, sets and di guy information stored.
|
virtual |
|
virtual |
Add a new set/task that is available for validation.
|
virtual |
|
virtual |
This will add a set that is only valid if a single object is selected.
|
virtual |
This will add a task that is only valid if a single object is selected.
Sets the particular set to be/not be single selection.
Sets the particular task to be/not single selection.
|
virtual |
Removes available task/set from the menu item.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Returns the next available user task/set id.
|
virtual |
Returns true if the given entity supports the given task.
|
virtual |
Returns true if the given entity supports the given set.
|
protectedvirtual |
Calls to DtGuiThreadVrfRemoteController to request task/set information for the given object.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Calls DtGuiThreadVrfRemoteController to request DI Guy information.
|
protectedvirtual |
Initializes mappings between VRF tasks/sets and menu items.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Merges in the menu items from the resultant list with the list of that available for the entity.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
| boost::signals2::signal<void (makVrv::DtUniqueID)> makVrf::DtVrfTaskSetManager::signal_supportedTaskInformationChanged |
Signals sent when task/set information about a particular object has been received/changed
| boost::signals2::signal<void (makVrv::DtUniqueID)> makVrf::DtVrfTaskSetManager::signal_supportingTaskInformationChanged |
| boost::signals2::signal<void (makVrv::DtUniqueID)> makVrf::DtVrfTaskSetManager::signal_supportedSetInformationChanged |
| boost::signals2::signal<void (makVrv::DtUniqueID)> makVrf::DtVrfTaskSetManager::signal_supportedDiGuyAnimationsInformationChanged |
| boost::signals2::signal<void (makVrv::DtUniqueID)> makVrf::DtVrfTaskSetManager::signal_supportedDiGuyAppearanceInformationChanged |
| boost::signals2::signal<void (makVrv::DtUniqueID)> makVrf::DtVrfTaskSetManager::signal_supportedDiGuyHandItemInformationChanged |
| boost::signals2::signal<void (makVrv::DtUniqueID)> makVrf::DtVrfTaskSetManager::signal_supportedDiGuyGestureInformationChanged |
| boost::signals2::signal<void (makVrv::DtUniqueID)> makVrf::DtVrfTaskSetManager::signal_supportedDiGuyHeadInformationChanged |
| boost::signals2::signal<void ()> makVrf::DtVrfTaskSetManager::signal_taskSetInformationCleared |
| boost::signals2::signal<void ()> makVrf::DtVrfTaskSetManager::signal_allPendingRequestsResolved |
Signal sent when all pending task/set requests are resolved.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Stores menu items mapped to their corresponding task/set ID.
|
protected |
|
protected |
|
protected |
|
protected |