19 #include <unordered_map>
26 class DtBaseConnection;
58 UnusedHighGroup = 1000000,
102 addOverlayGroupSet(
"hoverGroupSet" );
103 addOverlayGroupSet(
"overlayZoneMouseOver" );
104 setOverlayGroupSetSizeMultiplier(
"overlayZoneMouseOver", 8 );
105 addOverlayGroupSet(
"overlayZoneSelected" );
106 setOverlayGroupSetSizeMultiplier(
"overlayZoneSelected", 8 );
107 addOverlayGroupSet(
"selectedGroupSet" );
108 addOverlayGroupSet(
"overlayZoneNormal" );
109 setOverlayGroupSetSizeMultiplier(
"overlayZoneNormal", 8 );
110 addOverlayGroupSet(
"aboveIconsGroupSet" );
111 addOverlayGroupSet(
"iconsGroupSet" );
112 addOverlayGroupSet(
"rangeInfoGroupSet" );
113 addOverlayGroupSet(
"entityInfoPinnedGroupSet" );
114 addOverlayGroupSet(
"symbolDecorationGroupSet" );
119 virtual void addOverlayGroupSet(
const std::string& name );
124 virtual void addOverlayGroupSetUnder(
const std::string& name,
125 const std::string& beforeName );
130 virtual void addOverlayGroupSetAbove(
const std::string& name,
131 const std::string& afterName );
135 virtual const GroupRangeList& overlayGroupSets()
const;
140 virtual GroupRangeList& overlayGroupSets();
147 virtual unsigned int nextGroupId(
const std::string& groupSetName );
158 virtual unsigned int acquireElementBlock(
const DtElementID& elementId );
165 virtual void releaseElementBlock(
const DtElementID& elementId );
184 virtual unsigned int layersPerBlock()
const;
205 virtual void setOverlayGroupSetSizeMultiplier(
206 const std::string& name,
unsigned int multiplier );
211 virtual unsigned int blocksPerZone()
const;
215 template <
typename ManagerClass>
218 template <
typename ManagerClass>
233 virtual void initializeGroupIdGenerators();
250 unsigned int minId,
unsigned int maxId );
257 unsigned int nextGroupId();
std::string myGroupName
Definition: DtOverlayGroupManager.h:261
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
unsigned int myMaxId
Definition: DtOverlayGroupManager.h:266
std::list< std::string > GroupRangeList
List type for the names and order of configured overlay group sets.
Definition: DtOverlayGroupManager.h:62
DtOverlayZone
State zone for a per-element overlay block.
Definition: DtElementOverlayLayer.h:60
unsigned int myNextGroupId
Definition: DtOverlayGroupManager.h:312
unsigned int mySelectedZoneBase
Base group id of the overlayZoneSelected range.
Definition: DtOverlayGroupManager.h:302
Manages the allocation of overlay groups. Overlay groups are used to determine the draw order of spri...
Definition: DtOverlayGroupManager.h:47
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
Generates group ids for within the given range. The group id generator keeps track of the next availa...
Definition: DtOverlayGroupManager.h:241
unsigned int myNextBlockIndex
Next sequential block index to hand out when free list is empty.
Definition: DtOverlayGroupManager.h:293
void initializeDefaultGroupSets()
Initialization of the default group sets used by VR-Vantage. This method creates the default overlay ...
Definition: DtOverlayGroupManager.h:100
OverlayGroupId
Enumerates the various special valued overlay group ids.
Definition: DtOverlayGroupManager.h:52
unsigned int myNormalZoneBase
Base group id of the overlayZoneNormal range.
Definition: DtOverlayGroupManager.h:299
DtElementOverlayLayer
Per-element overlay layer order within a block, ordered bottom to top.
Definition: DtElementOverlayLayer.h:28
The DtBaseConnection is an abstract class.
Definition: DtBaseConnection.h:35
Contains makVrv::DtVirtualBaseClass class.
bool myBlockExhaustionWarned
True after the one-time block exhaustion warning has been emitted.
Definition: DtOverlayGroupManager.h:296
std::unordered_map< DtElementID, unsigned int > ElementBlockMap
Map type from element id to block allocation record.
Definition: DtOverlayGroupManager.h:272
std::set< unsigned int > myFreeBlockIndices
Recycled block indices awaiting reuse. std::set deduplicates double-releases and yields deterministic...
Definition: DtOverlayGroupManager.h:290
bool myModificationsLockedFlag
Definition: DtOverlayGroupManager.h:314
GroupRangeList myOverlayGroupRanges
Definition: DtOverlayGroupManager.h:279
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Contains the DtElementOverlayLayer enumeration.
ElementBlockMap myElementBlocks
Per-entity block allocations, keyed by DtElementID.
Definition: DtOverlayGroupManager.h:285
void defaultManagerRegisterInstanceFunction(DtDe &de, ManagerClass *mgr)
Default implementation of how to register a manager, especially necessary when overriding the manager...
Definition: DtDe.h:930
unsigned int myBlocksPerZone
Number of entity blocks that fit within one zone.
Definition: DtOverlayGroupManager.h:308
DtDe * myOptionalDe
Definition: DtOverlayGroupManager.h:310
Base class to provide boost signal/slot management.
std::unordered_map< std::string, unsigned int > myGroupSizeMultipliers
Per-set ID-range size multipliers; unregistered sets default to 1.
Definition: DtOverlayGroupManager.h:282
ManagerClass & defaultManagerInstanceFunction(DtDe &de, bool allowedInSlave)
default Manager instance function. Manager requirements: 1) Static instance function 2) Protected DtS...
Definition: DtDe.h:892
unsigned int myMinId
Definition: DtOverlayGroupManager.h:265
Contains makVrv::DtUniqueID type.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
unsigned int myMouseOverZoneBase
Base group id of the overlayZoneMouseOver range.
Definition: DtOverlayGroupManager.h:305
unsigned int myNextId
Definition: DtOverlayGroupManager.h:263
std::unordered_map< std::string, DtOverlayGroupIdGenerator * > GroupIdGeneratorList
Map type for mapping overlay group sets to their ID generators.
Definition: DtOverlayGroupManager.h:275
GroupIdGeneratorList myGroupIdGenerators
Definition: DtOverlayGroupManager.h:277
Contains DLL export macros.