|
VR-Engage
2.2
|
DtTextureIndexDrawCallback is an OSG draw callback that ensures the correct texture index is used when rendering to an instrument panel display. This is particularly important for GLStudio widgets, which need specific texture indices to properly display rendered content. The callback executes during the rendering process to maintain proper texture synchronization.
#include <instrumentPanelManagerStructs.h>
Public Member Functions | |
| META_Object (osg, DtTextureIndexDrawCallback) | |
| DtTextureIndexDrawCallback () | |
| DtTextureIndexDrawCallback (makVre::DtCameraStruct *cs) | |
| DtTextureIndexDrawCallback (const DrawCallback &cb, const osg::CopyOp &co) | |
| virtual | ~DtTextureIndexDrawCallback () override |
| virtual void | operator() (osg::RenderInfo &renderInfo) const override |
| virtual void | operator() (const osg::Camera &) const override |
Protected Attributes | |
| makVre::DtCameraStruct * | myCameraStruct |
Private Member Functions | |
| DtTextureIndexDrawCallback (const DtTextureIndexDrawCallback &) | |
| DtTextureIndexDrawCallback & | operator= (const DtTextureIndexDrawCallback &orig) |
|
inline |
Default constructor.
Creates a new texture index draw callback with no associated camera structure.
References myCameraStruct.
Referenced by DtTextureIndexDrawCallback(), META_Object(), and operator=().
|
inline |
Constructor with camera structure.
| cs | Pointer to the camera structure this callback is associated with |
Creates a new texture index draw callback associated with the specified camera structure. The callback will use the camera structure's texture index and other properties during rendering.
References myCameraStruct.
|
inline |
Copy constructor.
| cb | Draw callback to copy from |
| co | Copy operation to use |
Creates a new texture index draw callback by copying from an existing draw callback. This constructor is required by the OSG object system for proper cloning and copying of objects.
References myCameraStruct.
|
inlineoverridevirtual |
Destructor.
Cleans up resources used by the texture index draw callback.
|
private |
Copy constructor (deleted)
Copy construction is not supported for this class.
References DtTextureIndexDrawCallback().
| makVre::DtTextureIndexDrawCallback::META_Object | ( | osg | , |
| DtTextureIndexDrawCallback | ) |
OSG meta object declaration for proper type handling.
References DtTextureIndexDrawCallback().
|
inlineoverridevirtual |
Functor method called by the rendering thread.
| renderInfo | Rendering information from OSG |
This method is called by the OSG rendering thread during the rendering process. It delegates to the camera structure's drawCallback method to handle the actual texture index updating and any other rendering operations.
References myCameraStruct.
|
inlineoverridevirtual |
Backwards compatibility functor method.
| camera | Camera being rendered |
This method is provided for backwards compatibility with older OSG versions. It is called by the operator()(osg::RenderInfo&) method in those versions. This implementation is intentionally empty as the actual work is done in the other operator() method.
|
private |
Assignment operator (deleted)
Assignment is not supported for this class.
References DtTextureIndexDrawCallback().
|
protected |
Pointer to the camera structure this callback is associated with.
Referenced by DtTextureIndexDrawCallback(), DtTextureIndexDrawCallback(), DtTextureIndexDrawCallback(), and operator()().