![]() |
VR-Forces 4.10 Class Documentation
|
Override tactical graphic manager to support aggregate/entities on palette. More...

Classes | |
| struct | MemberInfo |
| struct | OrganizedCategory |
Public Types | |
| enum | OverlayFlags { DisableRename = 0x00000001, DisableSelection = 0x00000002, DisableMove = 0x00000004, IsPersistent = 0x00000008, DisplayIcon = 0x00000010, CanUnlockOverlay = 0x00000020 } |
Public Types inherited from makVrv::DtTacticalGraphicOverlayManager | |
| typedef std::list < DtTacticalGraphicOverlay * > | DtTacticalGraphicOverlayList |
| typedef std::vector < DtElementEntry::ElementType > | TacticalGraphicTypeVector |
Public Member Functions | |
| DtVrfTacticalGraphicOverlayManager (makVrv::DtDe &) | |
| CTOR. More... | |
| virtual | ~DtVrfTacticalGraphicOverlayManager () |
| DTOR. More... | |
| virtual void | setOrganizedOverlayAvailable (const std::string &layerName, bool b) |
| Make this call to make the layer visible regardless of whether or not something is in that layer. More... | |
| virtual bool | alwaysAvailable (const std::string &layerName) const |
| virtual void | setOverlayLayerVisible (const std::string &name, bool) |
| Sets the check mark to make this layer visibile, but not make all the items visible. More... | |
| virtual void | slot_onElementAttributesChanged (const makVrv::DtElementAttributeManager::EntryAttributesList &attributes) |
| Called by signal whenever element attributes change. More... | |
| virtual int | overlayVisibilityState (const std::string &) |
| Will return the check state of the overlay, either (2) Checked, (0) UnChecked or (1) PartiallyChecked. More... | |
| virtual void | setTacticalGraphicVisible (const makVrv::DtUniqueID &id, bool flag) |
| Updates the visibility status of a tactical graphic inside the manager – except if this is a stealth object. More... | |
| virtual void | setCanRenameOverlay (const std::string &, bool) |
| Set various flags that can define attributes of an overlay. More... | |
| virtual bool | canRenameOverlay (const std::string &) |
| virtual void | setCanSelectOverlay (const std::string &, bool) |
| virtual bool | canSelectOverlay (const std::string &) |
| virtual void | setCanMoveFromOverlay (const std::string &, bool) |
| virtual bool | canMoveFromOverlay (const std::string &) |
| virtual void | setDisplayIcon (const std::string &, bool) |
| virtual bool | displayIcon (const std::string &) |
| virtual void | setIsPersistentOverlay (const std::string &, bool) |
| virtual bool | isPersistentOverlay (const std::string &) |
| virtual void | setCanUnlockOverlay (const std::string &, bool) |
| virtual bool | canUnlockOverlay (const std::string &) |
| virtual DtFilename | iconFilename (const std::string &) const |
| virtual void | deleteOverlay (const std::string &name) |
| Removes the overlay with the given name from the manager. More... | |
| virtual bool | allObjectOnOverlayAreVrfSimulated (const std::string &) const |
| virtual void | renameVrfOverlay (const std::string &oldName, const std::string &newName) |
| Renames overlay on the network from the old to the new name. More... | |
| virtual void | renameOverlay (const std::string &oldName, const std::string &newName) |
| Renames the overlay with the oldName to newName emits signal_overlayRenamed if overlay is successfully renamed. More... | |
| virtual void | hideOverlay (const std::string &overlay) |
| Create this overlay but hide it on the overlay tab and overlay list widget. Will still be available on the edit dialogs. More... | |
| virtual bool | overlayHidden (const std::string &) const |
| virtual void | showOverlay (const std::string &overlay) |
| Show the overlay again. More... | |
| virtual void | setOverlayLocked (const std::string &overlayName, bool flag) |
| virtual void | setOverlayDefaultHidden (const std::string &layer, bool) |
| virtual bool | overlayDefaultHidden (const std::string &) const |
| virtual std::vector< std::string > | overlaysForObject (makVrv::DtUniqueID id) |
| Returns all the overlays this object is on. More... | |
| virtual OrganizedCategory | organizedCategory (const DtString &cat) const |
| virtual void | addOverlay (const std::string &) |
| Creates a new overlay with the given name. More... | |
| virtual void | addOrganizedCategory (const DtString &category, const DtVrfSelectionFilter &, int position, const DtString &icon, const DtString &displayName) |
| Add/remove an organized category to use if any object comes in, regardless of whether or not they are already on another overlay layer. More... | |
| virtual void | setAllowOnMoreThanOneLayer (int type, bool allow) |
| If this type is allowed on more than one layer, set it to be so (default is TDL is allowed on more than one layer) More... | |
| virtual void | setAllowOnMoreThanOneLayer (const std::string &type, bool allow) |
| If this global id is allowed on more than one layer, set it to be so (default is TDL is allowed on more than one layer) More... | |
| virtual void | setOrganizedCategoryIcon (const DtString &category, const DtString &icon) |
| If the categories have not already been added then this is a no-op. More... | |
| virtual void | setOrganizedCategoryDisplayName (const DtString &category, const DtString &title) |
| virtual void | removeOrganizedCategory (const DtString &category) |
| virtual void | clearOrganizedCategories () |
| virtual bool | isOrganizedLayer (const std::string &) const |
| virtual std::string | layerName (const std::string &) const |
| Return the layer name from the given, potentially, organized layer name. More... | |
| virtual void | removeTacticalGraphic (const makVrv::DtUniqueID &id) |
| Removes the tactical graphic with the given id from the manager emits signal_tacticalGraphicRemoved if graphic is found/removed. More... | |
| virtual void | renameTacticalGraphicOverlay (const makVrv::DtUniqueID &id, const std::string &newName) |
| Renames the tactical graphic's overlay to the new name inside the manager emits signal_tacticalGraphicOverlayRenamed if successful (id found and overlay renamed) More... | |
| virtual int | position (const std::string &) const |
| If this should be in a particular order, returns that order, else, -1 to put at the end. More... | |
| virtual std::set< std::string > | organizedLayersFor (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *sv) const |
| virtual std::set< std::string > | organizedLayersFor (const makVrv::DtVrlinkSimulatedBaseState *sv, makVrv::DtElementID id=0) const |
| virtual int | numberOfOrganizedCategories () const |
| Number of organized categories. More... | |
| virtual std::string | displayName (const std::string &layer) const |
| Returns the display name of the organized layer. More... | |
Public Member Functions inherited from makVrv::DtTacticalGraphicOverlayManager | |
| virtual | ~DtTacticalGraphicOverlayManager () |
| Destructor. More... | |
| virtual void | addTacticalGraphic (const DtUniqueID &id, const std::string &name) |
| Adds a tactical graphic with the given id and name. More... | |
| virtual const std::string * | tacticalGraphicName (const DtUniqueID &id) const |
| Returns the name of the tactical graphic associated with the id if no graphic is found, returns 0. More... | |
| virtual void | renameTacticalGraphic (const DtUniqueID &id, const std::string &newName) |
| Renames the tactical graphic with the given id to the new name inside the manager emits signal_tacticalGraphicRenamed if graphic is found/renamed. More... | |
| virtual std::string | newOverlay () |
| Creates a new overlay with a default name. More... | |
| virtual DtTacticalGraphicOverlay * | findOverlay (const std::string &name) const |
| Finds the overlay associated with the given name. More... | |
| virtual DtTacticalGraphicOverlayList | overlays () const |
| Returns the list of overlays currently registered in the manager. More... | |
| virtual bool | overlayVisible (const std::string &overlayName) const |
| Set/Get the visible status of the given overlay. More... | |
| virtual void | setOverlayVisible (const std::string &overlayName, bool flag) |
| virtual bool | overlayFiltered (const std::string &overlayName) const |
| Set/Get the visible status of the given overlay. More... | |
| virtual void | setOverlayFiltered (const std::string &overlayName, bool flag) |
| virtual bool | overlayLocked (const std::string &overlayName) const |
| Set/Get the lock status of the given overlay. More... | |
| virtual const DtTacticalGraphicOverlay * | currentOverlay () const |
| Set/Get the overlay marked as 'current overlay' inside the manager. More... | |
| virtual void | setCurrentOverlay (const std::string &name) |
| virtual void | setTacticalGraphicTypes (const TacticalGraphicTypeVector &) |
| Sets the types valid to be placed on an overlay layer. More... | |
| virtual const TacticalGraphicTypeVector & | tacticalGraphicTypes () const |
| Returns current tactical graphic types. More... | |
| virtual bool | isTacticalGraphic (const DtUniqueID &id) const |
| Returns true if this particular element can be placed on an overlay layer. 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 DtVrfTacticalGraphicOverlayManager & | instance (makVrv::DtDe &) |
| static QString | organizeByCategoryOverlayName () |
Static Public Member Functions inherited from makVrv::DtTacticalGraphicOverlayManager | |
| static DtTacticalGraphicOverlayManager & | instance (DtDe &de) |
| static void | registerInstance (DtDe &de, DtTacticalGraphicOverlayManager *mgr) |
Public Attributes | |
| boost::signals2::signal< void(const std::string &, int)> | signal_flagsChanged |
| boost::signals2::signal< void(const std::string &, bool)> | signal_overlayHidden |
| boost::signals2::signal< void(const std::string &, bool)> | signal_overlayLocked |
| boost::signals2::signal< void(const std::string &, int)> | signal_overlayVisibilityStateChanged |
| boost::signals2::signal< void(const std::string &, bool)> | signal_defaultHiddenChanged |
| boost::signals2::signal< void()> | signal_organizedCategoriesInitialized |
| boost::signals2::signal< void(const makVrv::DtElementID, bool &canBeOnMoreThanOneLayer)> | signal_canBeOnMoreThanOneLayer |
Public Attributes inherited from makVrv::DtTacticalGraphicOverlayManager | |
| boost::signalslib::signal < void(const DtUniqueID &, const std::string &)> | signal_tacticalGraphicAdded |
| boost::signalslib::signal < void(const DtUniqueID &, const std::string &)> | signal_tacticalGraphicRenamed |
| boost::signalslib::signal < void(const DtUniqueID &, const std::string &)> | signal_tacticalGraphicOverlayRenamed |
| boost::signalslib::signal < void(const DtUniqueID &)> | signal_tacticalGraphicRemoved |
| boost::signalslib::signal < void(const DtUniqueID &, bool)> | signal_tacticalGraphicVisibilityChanged |
| boost::signalslib::signal < void(const std::string &)> | signal_overlayAdded |
| boost::signalslib::signal < void(const std::string &)> | signal_overlayDeleted |
| boost::signalslib::signal < void(const std::string &, bool)> | signal_overlayFiltered |
| boost::signalslib::signal < void(const std::string &, bool)> | signal_overlayVisibilityChanged |
| boost::signalslib::signal < void(const std::string &, const std::string &)> | signal_overlayRenamed |
| boost::signalslib::signal < void(const std::string &)> | signal_currentOverlayChanged |
Static Public Attributes | |
| static const int | AllVisible = 2 |
| static const int | SomeVisible = 1 |
| static const int | AllHidden = 0 |
| static DtString | theOrganizedOverlayMarker |
Protected Types | |
| typedef std::map< std::string, int > | OverlayFlagsMap |
| typedef std::map< std::string, DtVrfSelectionFilter * > | VisibilityFilters |
| typedef std::vector < OrganizedCategory > | OrganizedCategories |
| typedef std::map< std::string, MemberInfo > | Members |
Protected Types inherited from makVrv::DtTacticalGraphicOverlayManager | |
| typedef std::map< DtUniqueID, DtTacticalGraphicOverlayMember > | DtTacticalGraphicOverlayObjectMap |
| typedef std::list < DtOverlayFilter * > | DtTacticalGraphicOverlayFilterList |
Protected Member Functions | |
| virtual void | initialize () |
| virtual void | objectAdded (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *p) |
| virtual void | slot_organizeOverlaysByCategoryChanged (bool) |
| virtual void | setFlag (const std::string &s, OverlayFlags, bool) |
| virtual bool | testFlag (const std::string &s, OverlayFlags) const |
| virtual void | updateLayerVisibilityThatHas (makVrv::DtUniqueID, bool b) |
| virtual void | addDefaultOrganizedCategories (const DtSimulationObjectCategoryInformation &) |
| virtual void | notifyLayerVisibilityChanged () |
| virtual bool | onlyOnOneLayer (const makVrv::DtElementID) const |
| Unless so marked as an element type that wants to appear on multiple layers, keep this on one layer. More... | |
| virtual bool | onlyOnOneLayer (const makVrv::DtVrlinkSimulatedBaseState *sv) const |
Protected Member Functions inherited from makVrv::DtTacticalGraphicOverlayManager | |
| virtual void | slot_onElementsAdded (const DtElementData::ElementList &elements) |
| Called by signal whenever elements are added. More... | |
| virtual void | slot_onElementsRemoved (const DtElementData::UniqueIdList &elementIds) |
| Called by signal whenever elements are removed. More... | |
| virtual void | addFilter (const std::string &name, DtOverlayFilter *filter, bool apply=false) |
| DtTacticalGraphicOverlayManager (DtDe &de) | |
| Constructor. More... | |
Protected Attributes | |
| std::set< int > | myAllowOnMoreThanOneLayer |
| std::set< std::string > | myAllowGlobalIdOnMoreThanOneLayer |
| std::string | myStealthType |
| makVrv::DtSharedSettingsManager * | mySettingsManager |
| OverlayFlagsMap | myOverlayFlags |
| std::set< std::string > | myOverlaysHidden |
| VisibilityFilters | myVisibilityFilters |
| OrganizedCategories | myOrganizedCategories |
| Members | myMembers |
| boost::signalslib::connection | myVisibilityChangedConnection |
| std::map< std::string, int > | myLayerVisibilityChanged |
| bool | myOrganizeOverlaysByCategory |
| std::set< std::string > | myAlwaysAvailable |
Protected Attributes inherited from makVrv::DtTacticalGraphicOverlayManager | |
| DtDe & | myDe |
| DtTacticalGraphicOverlayList | myOverlays |
| DtTacticalGraphicOverlayFilterList | myFilters |
| DtTacticalGraphicOverlayObjectMap | myTacticalGraphicNames |
| DtTacticalGraphicOverlay * | myCurrentOverlay |
| DtSignalConnectionManager | mySignals |
| TacticalGraphicTypeVector | myTacticalGraphicTypes |
Override tactical graphic manager to support aggregate/entities on palette.
|
protected |
|
protected |
|
protected |
|
protected |
| makVrf::DtVrfTacticalGraphicOverlayManager::DtVrfTacticalGraphicOverlayManager | ( | makVrv::DtDe & | ) |
CTOR.
|
virtual |
DTOR.
|
static |
|
virtual |
Make this call to make the layer visible regardless of whether or not something is in that layer.
This will only be valid for organized layers. If flag is false the overlay will be removed when all elements under it are removed
|
virtual |
|
virtual |
Sets the check mark to make this layer visibile, but not make all the items visible.
This is simply because of a child state change in the overlay tree widget that might not make it to the overlay bar
|
virtual |
Called by signal whenever element attributes change.
Reimplemented from makVrv::DtTacticalGraphicOverlayManager.
|
virtual |
Will return the check state of the overlay, either (2) Checked, (0) UnChecked or (1) PartiallyChecked.
|
virtual |
Updates the visibility status of a tactical graphic inside the manager – except if this is a stealth object.
That will be seen as visible only if the flag is true and other stealths are shown
Reimplemented from makVrv::DtTacticalGraphicOverlayManager.
|
virtual |
Set various flags that can define attributes of an overlay.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Removes the overlay with the given name from the manager.
emits signal_overlayDeleted if overlay is successfully removed
Reimplemented from makVrv::DtTacticalGraphicOverlayManager.
|
virtual |
|
virtual |
Renames overlay on the network from the old to the new name.
|
virtual |
Renames the overlay with the oldName to newName emits signal_overlayRenamed if overlay is successfully renamed.
Reimplemented from makVrv::DtTacticalGraphicOverlayManager.
|
virtual |
Create this overlay but hide it on the overlay tab and overlay list widget. Will still be available on the edit dialogs.
|
virtual |
|
virtual |
Show the overlay again.
|
virtual |
Reimplemented from makVrv::DtTacticalGraphicOverlayManager.
|
virtual |
|
virtual |
|
static |
|
virtual |
Returns all the overlays this object is on.
|
virtual |
|
virtual |
Creates a new overlay with the given name.
Name must be not empty. emits signal_overlayAdded if overlay is successfully added inside the manager.
Reimplemented from makVrv::DtTacticalGraphicOverlayManager.
|
virtual |
Add/remove an organized category to use if any object comes in, regardless of whether or not they are already on another overlay layer.
The rank is the order the tab will appear in on the overlay list and tab bar. The category is what will be used to remove or change an existing category. Note that if a category is removed or changed after objects are on that layer, this will not affect those objects. It will only affect newly added objects. Note that if an object does not appear in any category, unless it also has an overlay layer it want to appear on (non-blank) it will appear on the "Default" overlay layer
|
virtual |
If this type is allowed on more than one layer, set it to be so (default is TDL is allowed on more than one layer)
|
virtual |
If this global id is allowed on more than one layer, set it to be so (default is TDL is allowed on more than one layer)
|
virtual |
If the categories have not already been added then this is a no-op.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Return the layer name from the given, potentially, organized layer name.
|
virtual |
Removes the tactical graphic with the given id from the manager emits signal_tacticalGraphicRemoved if graphic is found/removed.
Reimplemented from makVrv::DtTacticalGraphicOverlayManager.
|
virtual |
Renames the tactical graphic's overlay to the new name inside the manager emits signal_tacticalGraphicOverlayRenamed if successful (id found and overlay renamed)
Reimplemented from makVrv::DtTacticalGraphicOverlayManager.
|
virtual |
If this should be in a particular order, returns that order, else, -1 to put at the end.
|
virtual |
|
virtual |
|
virtual |
Number of organized categories.
|
virtual |
Returns the display name of the organized layer.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Unless so marked as an element type that wants to appear on multiple layers, keep this on one layer.
Note this will also send off the boost signal_allowOnMultipleLayers which can set a boolean just to be absolutely sure. This will be sent if the object is not set to be on multiple layers by type
|
protectedvirtual |
|
static |
|
static |
|
static |
| boost::signals2::signal<void (const std::string&, int)> makVrf::DtVrfTacticalGraphicOverlayManager::signal_flagsChanged |
| boost::signals2::signal<void (const std::string&, bool)> makVrf::DtVrfTacticalGraphicOverlayManager::signal_overlayHidden |
| boost::signals2::signal<void (const std::string&, bool)> makVrf::DtVrfTacticalGraphicOverlayManager::signal_overlayLocked |
| boost::signals2::signal<void (const std::string&, int)> makVrf::DtVrfTacticalGraphicOverlayManager::signal_overlayVisibilityStateChanged |
| boost::signals2::signal<void (const std::string&, bool)> makVrf::DtVrfTacticalGraphicOverlayManager::signal_defaultHiddenChanged |
| boost::signals2::signal<void ()> makVrf::DtVrfTacticalGraphicOverlayManager::signal_organizedCategoriesInitialized |
| boost::signals2::signal<void (const makVrv::DtElementID, bool& canBeOnMoreThanOneLayer)> makVrf::DtVrfTacticalGraphicOverlayManager::signal_canBeOnMoreThanOneLayer |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |