![]() |
VR-Forces 5.0.3 Developer's Guide
|
Manages the allocation of overlay groups. Overlay groups are used to determine the draw order of sprites on a 2D overlay. This manager configures overlay group sets and allocates group ids within those sets. The separate group sets allow for all overlay widgets of a specific type to be ordered above or below widgets of a different type. The allocation of different group IDs to each widget within a group ensures that the widget's different components don't fight to be on top. When the first call to nextGroupId( const std::string& ) is made, the configured sets are allocated id ranges, and further modifications to the group sets is prohibited.

Classes | |
| class | DtOverlayGroupIdGenerator |
Public Types | |
| enum | OverlayGroupId { HiddenGroup = 0, DefaultGroup = 1, UnusedLowGroup = 2, GroupsGroup = 500000, UnusedHighGroup = 1000000 } |
| typedef std::list< std::string > | GroupRangeList |
Public Member Functions | |
| virtual DtOverlayGroupManager * | clone () |
| virtual | ~DtOverlayGroupManager () |
| void | initializeDefaultGroupSets () |
| virtual void | addOverlayGroupSet (const std::string &name) |
| virtual void | addOverlayGroupSetUnder (const std::string &name, const std::string &beforeName) |
| virtual void | addOverlayGroupSetAbove (const std::string &name, const std::string &afterName) |
| virtual const GroupRangeList & | overlayGroupSets () const |
| virtual GroupRangeList & | overlayGroupSets () |
| virtual unsigned int | nextGroupId (const std::string &groupSetName) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtOverlayGroupManager & | instance (DtDe &de) |
| static DtOverlayGroupManager & | instance (DtBaseConnection &sim) |
| static void | copyInstance (DtBaseConnection &sim, DtDe &de) |
Protected Types | |
| typedef boost::unordered_map < std::string, DtOverlayGroupIdGenerator * > | GroupIdGeneratorList |
Protected Member Functions | |
| DtOverlayGroupManager () | |
| DtOverlayGroupManager (DtDe &de) | |
| DtOverlayGroupManager (const DtOverlayGroupManager ©) | |
| virtual void | initializeGroupIdGenerators () |
Protected Attributes | |
| GroupIdGeneratorList | myGroupIdGenerators |
| GroupRangeList | myOverlayGroupRanges |
| DtDe * | myOptionalDe |
| unsigned int | myNextGroupId |
| bool | myModificationsLockedFlag |
Friends | |
| template<typename ManagerClass > | |
| ManagerClass & | defaultManagerInstanceFunction (DtDe &, bool) |
| template<typename ManagerClass > | |
| void | defaultManagerRegisterInstanceFunction (DtDe &, ManagerClass *) |
| typedef std::list<std::string> makVrv::DtOverlayGroupManager::GroupRangeList |
List type for the names and order of configured overlay group sets.
|
protected |
Map type for mapping overlay group sets to their ID generators.
|
virtual |
Virtual DTOR.
|
protected |
Protected CTOR. (Use ::instance(..)).
|
protected |
Protected CTOR. (Use ::instance(..)).
|
protected |
Protected CTOR. (Use ::instance(..)).
|
static |
Instance method (for use in the main thread).
|
static |
Instance method (for use in the connection thread).
|
virtual |
Clone function so derived classes can be used with copyInstance.
|
static |
Create a copy of the de's overlay group manager for the base connection.
|
inline |
Initialization of the default group sets used by VR-Vantage. This method creates the default overlay group sets used by VR-Vantage. The default groups are (ordered from highest to lowest):
|
virtual |
Adds a new set of overlay groups with the given name. The new set is added under all other configured sets.
|
virtual |
Adds a new set of overlay groups below the specified set. The new set has the given name and is below the specified set but above all other sets below that one.
|
virtual |
Adds a new set of overlay groups above the specified set. The new set has the given name and is above the specified set but below all other sets above that one.
|
virtual |
Accessor for the list of configured overlay group sets (const). Sets towards the beginning of the list are lower on the overlay.
|
virtual |
Accessor for the list of configured overlay group sets. Sets towards the beginning of the list are lower on the overlay.
| DtCorruptedState | if modifications to the manager are locked. |
|
virtual |
Returns the next available group id for the given set. Obtains the group id generator for the set with the given name and returns the group id returned by the generator's nextGroupId() method. If a group set with the given name could not be found, OverlayGroupId::DefaultGroup (1) is returned.
|
protectedvirtual |
Initializes the group id generators for all configured sets. Ranges for the individual group sets are allocated based on the number of sets configured.
|
friend |
default Manager instance function. Manager requirements: 1) Static instance function 2) Protected DtSignalConnectionManager named myConnections. 3) Member functioned called loadDefaults which takes no arguments. and loads the default settings of the manager or factory from disk. 4) define defaultManagerInstanceFunction as friend. 5) define defaultManagerRegisterInstanceFunction as friend (see below). 5) Protected Constructor which only takes a DtDe reference.
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
Then simply in the implementation of instance call defaultManagerInstanceFunction with the de object and return the return value.
|
friend |
Default implementation of how to register a manager, especially necessary when overriding the manager.
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
|
protected |
|
protected |
|
protected |
|
protected |