#include <GiTransientManager.h>
|
| ODRX_DECLARE_MEMBERS (OdGiTransientManager) |
|
virtual bool | addTransient (OdGiDrawable *pDrawable, OdGiTransientDrawingMode mode, OdInt32 subMode, const OdUInt32Array &viewportIds)=0 |
|
virtual bool | eraseTransient (OdGiDrawable *pDrawable, const OdUInt32Array &viewportIds)=0 |
|
virtual bool | eraseTransients (OdGiTransientDrawingMode mode, OdInt32 subMode, const OdUInt32Array &viewportIds)=0 |
|
virtual void | updateTransient (OdGiDrawable *pDrawable, const OdUInt32Array &viewportIds) const =0 |
|
virtual bool | addChildTransient (OdGiDrawable *pDrawable, OdGiDrawable *pParent)=0 |
|
virtual bool | eraseChildTransient (OdGiDrawable *pDrawable, OdGiDrawable *pParent)=0 |
|
virtual void | updateChildTransient (OdGiDrawable *pDrawable, OdGiDrawable *pParent) const =0 |
|
virtual OdInt32 | getFreeSubDrawingMode (OdGiTransientDrawingMode mode, OdInt32 &subMode, const OdUInt32Array &viewportIds) const =0 |
|
| ODRX_HEAP_OPERATORS () |
|
| OdRxObject () |
|
virtual | ~OdRxObject () |
|
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
|
virtual OdRxObject * | x (const OdRxClass *pClass) const |
|
virtual OdRxClass * | isA () const |
|
virtual void | addRef ()=0 |
|
virtual void | release ()=0 |
|
virtual long | numRefs () const |
|
bool | isKindOf (const OdRxClass *pClass) const |
|
virtual OdRxObjectPtr | clone () const |
|
virtual void | copyFrom (const OdRxObject *pSource) |
|
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
|
virtual bool | isEqualTo (const OdRxObject *pOther) const |
|
This class provides transient drawables manager functionality.
<group OdGi_Classes>
Definition at line 40 of file GiTransientManager.h.
◆ OdGiTransientDrawingMode
Represents a drawing mode of a transient. Drawing modes can be used to specify the draw order. For 2D graphics system the topmost level is kOdGiContrast while the bottom-most level is kAcGiMain. For 3D graphics system kOdGiDirectShortTerm, kOdGiHighlight and kOdGiContrast members also indicate the draw order, the kOdGiDirectShortTerm mode is the bottom-most level.
Enumerator |
---|
kOdGiMain | Main drawing mode (for internal use). For a 3D graphics system, this mode uses the main Z-Buffer.
|
kOdGiSprite | Sprite drawing mode (for internal use). For a 3D graphics system, this mode uses a separate Z-Buffer for sprites.
|
kOdGiDirectShortTerm | ShortTerm drawing mode. For a 3D graphics system, renders directly to the device.
|
kOdGiHighlight | Highlight drawing mode. For 2D and 3D graphics systems, renders transient directly to the device highlight effects.
|
kOdGiDirectTopmost | Renders transient above all other render modes except the contrast mode.
|
kOdGiContrast | For 2D and 3D graphics systems renders transient directly to the device in contrast style.
|
kOdGiDrawingModeCount | Count of drawing modes.
|
Definition at line 50 of file GiTransientManager.h.
◆ addChildTransient()
Appends child drawable to parent drawable in the transient drawables manager.
- Parameters
-
pDrawable | [in] Drawable pointer. |
pParent | [in] Parent drawable pointer. |
- Returns
- true in current implementation, after the transient is updated.
◆ addTransient()
Adds new drawable into transient drawables manager.
- Parameters
-
pDrawable | [in] Drawable pointer. |
mode | [in] Transient drawable mode. |
subMode | [in] Draw order index. |
viewportIds | [in] List of viewport indices. |
- Returns
- true if the drawable is successfully added or false in one of the following cases: The passed pointer does not point to a drawable; The passed mode is greater or equals to the kOdGiDrawingModeCount; The specified draw order index exceeds the maximum value of the signed integer;
◆ eraseChildTransient()
Erases child drawable from parent drawable in the transient drawables manager.
- Parameters
-
pDrawable | [in] Drawable pointer. |
pParent | [in] Parent drawable pointer. |
- Returns
- true in current implementation, after the transient is updated.
◆ eraseTransient()
Erases drawable from transient drawables manager.
- Parameters
-
pDrawable | [in] Drawable pointer. |
viewportIds | [in] List of viewport indices. |
- Returns
- true if the drawable is erased or false in one of the following cases: The passed pointer does not point to a drawable; The drawable could not be erased by a registered path;
◆ eraseTransients()
Erases all drawables from specified drawable mode and order.
- Parameters
-
mode | [in] Transient drawable mode. |
subMode | [in] Draw order index. |
viewportIds | [in] List of viewport indices. |
- Returns
- true if the drawables are erased or false in one of the following cases: The passed mode is greater or equals to the kOdGiDrawingModeCount; The specified draw order index exceeds the maximum value of the signed integer;
◆ getFreeSubDrawingMode()
Finds free order for specified drawable mode.
- Parameters
-
mode | [in] Transient drawable mode. |
subMode | [out] Draw order index. |
viewportIds | [in] List of viewport indices. |
- Returns
- Returns 0 if specified input draw order isn't free and transient manager couldn't find free draw order. Returns 1 if specified input draw order is free. Returns 2 if specified input draw order isn't free but transient manager found free draw order.
◆ ODRX_DECLARE_MEMBERS()
◆ updateChildTransient()
Updates child drawable of parent drawable in the transient drawables manager.
- Parameters
-
pDrawable | [in] Drawable pointer. |
pParent | [in] Parent drawable pointer. |
◆ updateTransient()
Updates drawable in the transient drawables manager.
- Parameters
-
pDrawable | [in] Drawable pointer. |
viewportIds | [in] List of viewport indices. |
The documentation for this class was generated from the following file: