![]() |
VR-Forces Developer's Guide
|
Override tactical graphic manager to support aggregate/entities on palette.

Classes | |
| struct | MemberInfo |
| struct | OrganizedCategory |
| struct | TGChange |
Public Types | |
| enum | OverlayFlags { DisableRename = 0x00000001, DisableSelection = 0x00000002, DisableMove = 0x00000004, IsPersistent = 0x00000008, DisplayIcon = 0x00000010, CanUnlockOverlay = 0x00000020 } |
| typedef boost::function< void(const makVrv::DtStateView < makVrv::DtVrlinkSimulatedBaseState > *)> | OverlayChecker |
Public Types inherited from makVrv::DtTacticalGraphicOverlayManager | |
| typedef std::list < DtTacticalGraphicOverlay * > | DtTacticalGraphicOverlayList |
| typedef std::vector < DtElementEntry::ElementType > | TacticalGraphicTypeVector |
Public Member Functions | |
| DtVrfTacticalGraphicOverlayManager (makVrv::DtDe &) | |
| virtual | ~DtVrfTacticalGraphicOverlayManager () |
| virtual void | setOrganizedOverlayAvailable (const std::string &layerName, bool b) |
| virtual bool | alwaysAvailable (const std::string &layerName) const |
| virtual void | setOverlayLayerVisible (const std::string &name, bool) |
| virtual void | slot_onElementAttributesChanged (const makVrv::DtElementAttributeManager::EntryAttributesList &attributes) |
| virtual int | overlayVisibilityState (const std::string &) |
| virtual void | setTacticalGraphicVisible (const makVrv::DtUniqueID &id, bool flag) |
| virtual void | setCanRenameOverlay (const std::string &, bool) |
| 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 DtString | organizedCategoryName (int identifier) const |
| virtual void | deleteOverlay (const std::string &name) |
| virtual bool | allObjectOnOverlayAreVrfSimulated (const std::string &) const |
| virtual void | renameVrfOverlay (const std::string &oldName, const std::string &newName) |
| virtual void | renameOverlay (const std::string &oldName, const std::string &newName) |
| virtual void | hideOverlay (const std::string &overlay) |
| virtual bool | overlayHidden (const std::string &) const |
| virtual bool | putOnOverlayBar (const std::string &) const |
| virtual void | showOverlay (const std::string &overlay) |
| virtual void | setOverlayLocked (const std::string &overlayName, bool flag) |
| virtual bool | isOnLockedOverlay (makVrv::DtUniqueID) const |
| virtual void | setOverlayDefaultHidden (const std::string &layer, bool) |
| virtual bool | overlayDefaultHidden (const std::string &) const |
| virtual std::vector< std::string > | overlaysForObject (makVrv::DtUniqueID id) const |
| virtual int | organizedCategoryToIdentifier (const DtString &cat) const |
| virtual OrganizedCategory | organizedCategory (const DtString &cat) const |
| virtual OrganizedCategory | organizedCategory (int) const |
| virtual void | addParentLayersIfDoNotExist (int parentIdentifier) |
| virtual void | addOverlay (const std::string &) |
| virtual int | addOrganizedCategory (const DtString &category, const DtVrfSelectionFilter &, int position, const DtString &icon, const DtString &displayName, bool putOnOverlayBar=true, int parentCategory=-1, OverlayChecker=0) |
| virtual void | setAllowOnMoreThanOneLayer (int type, bool allow) |
| virtual void | setAllowOnMoreThanOneLayer (const std::string &type, bool allow) |
| virtual void | setOrganizedCategoryIcon (const DtString &category, const DtString &icon) |
| virtual void | setOrganizedCategoryDisplayName (const DtString &category, const DtString &title) |
| virtual void | setOrganizedCategoryIcon (int identifier, const DtString &icon) |
| virtual void | setOrganizedCategoryDisplayName (int identifier, 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 |
| virtual void | removeTacticalGraphic (const makVrv::DtUniqueID &id) |
| virtual void | renameTacticalGraphicOverlay (const makVrv::DtUniqueID &id, const std::string &newName) |
| virtual int | position (const std::string &) const |
| 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 | findBetterOrganizedChildOf (int parentIdentifier, const makVrv::DtVrlinkSimulatedBaseState *sv, makVrv::DtElementID id=0) const |
| virtual int | numberOfOrganizedCategories () const |
| virtual std::string | displayName (const std::string &layer) const |
| virtual bool | isOnDefaultHiddenLayer (makVrv::DtUniqueID id) const |
| virtual void | setOverlayVisible (const std::string &overlayName, bool flag) override |
Public Member Functions inherited from makVrv::DtTacticalGraphicOverlayManager | |
| virtual | ~DtTacticalGraphicOverlayManager () |
| virtual void | addTacticalGraphic (const DtUniqueID &id, const std::string &name) |
| virtual const std::string * | tacticalGraphicName (const DtUniqueID &id) const |
| virtual void | renameTacticalGraphic (const DtUniqueID &id, const std::string &newName) |
| virtual std::string | newOverlay () |
| virtual DtTacticalGraphicOverlay * | findOverlay (const std::string &name) const |
| virtual DtTacticalGraphicOverlayList | overlays () const |
| virtual bool | overlayVisible (const std::string &overlayName) const |
| virtual bool | overlayFiltered (const std::string &overlayName) const |
| virtual void | setOverlayFiltered (const std::string &overlayName, bool flag) |
| virtual bool | overlayLocked (const std::string &overlayName) const |
| virtual const DtTacticalGraphicOverlay * | currentOverlay () const |
| virtual void | setCurrentOverlay (const std::string &name) |
| virtual void | setTacticalGraphicTypes (const TacticalGraphicTypeVector &) |
| virtual const TacticalGraphicTypeVector & | tacticalGraphicTypes () const |
| virtual bool | isTacticalGraphic (const DtUniqueID &id) const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
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::map< int, OrganizedCategory > | OrganizedCategories |
| typedef std::map< std::string, MemberInfo > | Members |
| typedef std::map< std::string, std::map< makVrv::DtUniqueID, boost::signals2::scoped_connection > > | CheckConnections |
| typedef std::pair< TGChange, TGChange > | TGPair |
Protected Types inherited from makVrv::DtTacticalGraphicOverlayManager | |
| typedef std::map< DtUniqueID, DtTacticalGraphicOverlayMember > | DtTacticalGraphicOverlayObjectMap |
| typedef std::list < DtOverlayFilter * > | DtTacticalGraphicOverlayFilterList |
| typedef boost::function<void (const makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*)> makVrf::DtVrfTacticalGraphicOverlayManager::OverlayChecker |
|
protected |
|
protected |
|
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 |
|
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 |
|
virtual |
Show the overlay again.
|
virtual |
Reimplemented from makVrv::DtTacticalGraphicOverlayManager.
|
virtual |
|
virtual |
|
virtual |
|
static |
|
virtual |
Returns all the overlays this object is on.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Ifd the parent layers do not exist add them too.
|
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. If items on this layer want to be checked to see if they need to be removed from this layer if something changes, specify the check function. A connection will be made to the state view of this object for update to run though the filter again, and, if something changes, will remove it from the layer and then see what other organized layers might take this object.
If putOnOverlayBar is false, this category will not be put onto the overlay bar If parentCategory is not empty, then, when creating this folder, all parent folders will also be created.
If parentCategory doesn't exist, this item will not be added and -1 will be returned. Check the return value for >= 0 to make sure this is correctly added
|
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 |
|
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 |
If there is a child that matches the information, use that child instead. The preferred method is to have something added to the lowest leaf node.
|
virtual |
Number of organized categories.
|
virtual |
Returns the display name of the organized layer.
|
virtual |
Returns true if this object is on a default hidden overlay.
|
overridevirtual |
Reimplemented from makVrv::DtTacticalGraphicOverlayManager.
|
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 |
|
protectedvirtual |
Called by signal whenever elements are added.
Reimplemented from makVrv::DtTacticalGraphicOverlayManager.
|
protectedvirtual |
|
protectedvirtual |
If this object is on the given organized layer, remove it.
|
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 |
|
protected |
|
protected |
|
protected |