VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtTextureIndexDrawCallback Class Reference

Detailed Description

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>

Inheritance diagram for makVre::DtTextureIndexDrawCallback:
[legend]

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::DtCameraStructmyCameraStruct
 

Private Member Functions

 DtTextureIndexDrawCallback (const DtTextureIndexDrawCallback &)
 
DtTextureIndexDrawCallbackoperator= (const DtTextureIndexDrawCallback &orig)
 

Constructor & Destructor Documentation

◆ DtTextureIndexDrawCallback() [1/4]

makVre::DtTextureIndexDrawCallback::DtTextureIndexDrawCallback ( )
inline

Default constructor.

Creates a new texture index draw callback with no associated camera structure.

References myCameraStruct.

Referenced by DtTextureIndexDrawCallback(), META_Object(), and operator=().

◆ DtTextureIndexDrawCallback() [2/4]

makVre::DtTextureIndexDrawCallback::DtTextureIndexDrawCallback ( makVre::DtCameraStruct * cs)
inline

Constructor with camera structure.

Parameters
csPointer 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.

◆ DtTextureIndexDrawCallback() [3/4]

makVre::DtTextureIndexDrawCallback::DtTextureIndexDrawCallback ( const DrawCallback & cb,
const osg::CopyOp & co )
inline

Copy constructor.

Parameters
cbDraw callback to copy from
coCopy 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.

◆ ~DtTextureIndexDrawCallback()

virtual makVre::DtTextureIndexDrawCallback::~DtTextureIndexDrawCallback ( )
inlineoverridevirtual

Destructor.

Cleans up resources used by the texture index draw callback.

◆ DtTextureIndexDrawCallback() [4/4]

makVre::DtTextureIndexDrawCallback::DtTextureIndexDrawCallback ( const DtTextureIndexDrawCallback & )
private

Copy constructor (deleted)

Copy construction is not supported for this class.

References DtTextureIndexDrawCallback().

Member Function Documentation

◆ META_Object()

makVre::DtTextureIndexDrawCallback::META_Object ( osg ,
DtTextureIndexDrawCallback  )

OSG meta object declaration for proper type handling.

References DtTextureIndexDrawCallback().

◆ operator()() [1/2]

virtual void makVre::DtTextureIndexDrawCallback::operator() ( osg::RenderInfo & renderInfo) const
inlineoverridevirtual

Functor method called by the rendering thread.

Parameters
renderInfoRendering 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.

◆ operator()() [2/2]

virtual void makVre::DtTextureIndexDrawCallback::operator() ( const osg::Camera & ) const
inlineoverridevirtual

Backwards compatibility functor method.

Parameters
cameraCamera 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.

◆ operator=()

DtTextureIndexDrawCallback & makVre::DtTextureIndexDrawCallback::operator= ( const DtTextureIndexDrawCallback & orig)
private

Assignment operator (deleted)

Assignment is not supported for this class.

References DtTextureIndexDrawCallback().

Member Data Documentation

◆ myCameraStruct

makVre::DtCameraStruct* makVre::DtTextureIndexDrawCallback::myCameraStruct
protected

Pointer to the camera structure this callback is associated with.

Referenced by DtTextureIndexDrawCallback(), DtTextureIndexDrawCallback(), DtTextureIndexDrawCallback(), and operator()().


The documentation for this class was generated from the following file: