|
CFx SDK Documentation 2026 SP0
|
#include <GsOverlayDefs.h>
Classes | |
| struct | Allocator |
| struct | ForEach |
| class | Iterator |
| struct | OverlayData |
Public Member Functions | |
| OdGsOverlayDataContainer () | |
| ~OdGsOverlayDataContainer () | |
| void | substituteAllocator (Allocator *pAllocator) |
| void | resetAllocator () |
| bool | activateOverlay (OdGsOverlayId id) |
| bool | deactivateOverlay (OdGsOverlayId id) |
| OdUInt32 | overlayNumRefs (OdGsOverlayId id) const |
| OdUInt32 | activeOverlays () const |
| bool | isOverlayActive (OdGsOverlayId id) const |
| bool | isMultipleOverlays () const |
| OverlayDataType * | getOverlayData (OdGsOverlayId id, bool bActivate=false) |
| const OverlayDataType * | getOverlayData (OdGsOverlayId id, bool bActivate=false) const |
| bool | execForEach (ForEach &impl, OdUInt32 nMask=kGsAllOverlays) const |
| Iterator | newIterator (OdUInt32 nMask=kGsAllOverlays) const |
| OdUInt32 | invalidOverlays () const |
| bool | isOverlayInvalid (OdGsOverlayId id) const |
| void | setOverlayInvalid (OdGsOverlayId id, bool bSet=true) |
| void | setOverlaysInvalid (bool bSet=true) |
| void | setOverlaysInvalid (OdUInt32 nOverlays, bool bSet=true) |
| bool | isAnyOverlayInvalid () const |
| bool | isAllOverlaysIvalid () const |
Protected Types | |
| typedef OdArray< OverlayData > | OverlayDataArray |
Protected Member Functions | |
| void | subAllocator (Allocator *pAllocator) |
| void | activate (OdGsOverlayId id) const |
| void | deactivate (OdGsOverlayId id) |
Protected Attributes | |
| OverlayDataArray | m_overlaysData |
| Allocator | m_defAllocator |
| Allocator * | m_pAllocator |
| OdUInt32 | m_uActiveOverlays |
| OdUInt32 | m_uInvalidOverlays |
This class is a container for overlay data.
<group OdGs_Classes>
Definition at line 225 of file GsOverlayDefs.h.
|
protected |
Definition at line 252 of file GsOverlayDefs.h.
|
inline |
Default constructor for the OdGsOverlayDataContainer class. Sets the allocator and activates main overlay.
Definition at line 312 of file GsOverlayDefs.h.
|
inline |
Destructor for the OdGsOverlayDataContainer class. Frees resources allocated for overlays.
Definition at line 324 of file GsOverlayDefs.h.
|
inlineprotected |
Definition at line 278 of file GsOverlayDefs.h.
|
inline |
Activates the passed overlay.
| id | [in] Overlay index. |
Definition at line 360 of file GsOverlayDefs.h.
|
inline |
Returns a number of active overlays.
Definition at line 401 of file GsOverlayDefs.h.
|
inlineprotected |
Definition at line 288 of file GsOverlayDefs.h.
|
inline |
Deactivates the passed overlay and removes overlay data from the allocator.
| id | [in] Overlay index. |
Definition at line 374 of file GsOverlayDefs.h.
|
inline |
Definition at line 459 of file GsOverlayDefs.h.
|
inline |
Retrieves a pointer to the overlay data.
| id | [in] Overlay index. |
| bActivate | [in] Flag that specifies whether to activate overlay if it is not currently active. |
Definition at line 425 of file GsOverlayDefs.h.
|
inline |
Retrieves a pointer to the overlay data.
| id | [in] Overlay index. |
| bActivate | [in] Flag that specifies whether to activate overlay if it is not currently active. |
Definition at line 443 of file GsOverlayDefs.h.
|
inline |
Returns a number that represents set of invalid overlays.
Definition at line 549 of file GsOverlayDefs.h.
|
inline |
Checks whether all overlay are invalid.
Definition at line 595 of file GsOverlayDefs.h.
|
inline |
Checks whether there is any invalid overlay.
Definition at line 587 of file GsOverlayDefs.h.
|
inline |
Checks whether multiple overlays are used.
Definition at line 417 of file GsOverlayDefs.h.
|
inline |
Checks whether the passed overlay is active.
| id | [in] Overlay index. |
Definition at line 410 of file GsOverlayDefs.h.
|
inline |
Checks whether overlay by the specified index is invalid.
| id | [in] Overlay index. |
Definition at line 556 of file GsOverlayDefs.h.
|
inline |
Creates and returns new overlay iterator.
| nMask | [in] Overlay mask. |
Definition at line 541 of file GsOverlayDefs.h.
|
inline |
Retrives the overlay number of references.
| id | [in] Overlay index. |
Definition at line 388 of file GsOverlayDefs.h.
|
inline |
Replaces current allocator with standard allocator. Current overlay data is not destroyed.
Definition at line 348 of file GsOverlayDefs.h.
|
inline |
Sets overlay by the specified index as invalid or valid.
| id | [in] Overlay index. |
| bSet | [in] Flag that specifies whether overlay should be invalid. |
Definition at line 564 of file GsOverlayDefs.h.
|
inline |
Specifies whether currently active overlays should be invalid.
| bSet | [in] Flag that specifies whether overlays should be invalid. |
Definition at line 571 of file GsOverlayDefs.h.
|
inline |
Specifies whether currently active overlays should be invalid.
| nOverlays | [in] Mask for active overlays. |
| bSet | [in] Flag that specifies whether overlays should be invalid. |
Definition at line 579 of file GsOverlayDefs.h.
|
inlineprotected |
Definition at line 259 of file GsOverlayDefs.h.
|
inline |
Replaces current allocator with the passed allocator. Current overlay data is not destroyed.
| pAllocator | [in] Pointer to a new allocator to set. |
Definition at line 340 of file GsOverlayDefs.h.
|
protected |
Definition at line 254 of file GsOverlayDefs.h.
|
mutableprotected |
Definition at line 253 of file GsOverlayDefs.h.
|
protected |
Definition at line 255 of file GsOverlayDefs.h.
|
mutableprotected |
Definition at line 256 of file GsOverlayDefs.h.
|
protected |
Definition at line 257 of file GsOverlayDefs.h.