VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtCameraNode Class Reference

VR-Vantage specific subclass of OSG camera.

Inheritance diagram for makVrv::DtCameraNode:
Inheritance graph
[legend]

Classes

struct  CallbackMatch
 
struct  PriorityDrawCallback
 
struct  PriorityDrawCallbackComparator
 
class  VrvPostDrawCallback
 

Public Types

enum  CallbackPriority { PriorityHighest = 0, PriorityNormal = 5, PriorityLowest = 10 }
 
typedef std::list
< PriorityDrawCallback
CallbackQueue
 

Public Member Functions

 DtCameraNode (DtDe &de)
 
 DtCameraNode (const DtCameraNode &camera, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
 DtCameraNode (DtDe &de, const osg::Camera &camera, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
 DtCameraNode ()=delete
 
DtCameraNodeoperator= (const DtCameraNode &rhs)=delete
 
virtual osg::Object * cloneType () const override
 
virtual osg::Object * clone (const osg::CopyOp &copyop) const override
 
virtual bool isSameKindAs (const osg::Object *obj) const override
 
virtual const charclassName () const override
 
virtual const charlibraryName () const override
 
virtual void accept (osg::NodeVisitor &nv) override
 
virtual void addPostDrawCallback (osg::Camera::DrawCallback *callback, unsigned int priority=PriorityNormal)
 
virtual void removePostDrawCallback (osg::Camera::DrawCallback *callback)
 
virtual bool containsPostDrawCallback (osg::Camera::DrawCallback *callback)
 
virtual void setPostDrawCallback (osg::Camera::DrawCallback *cb)
 
virtual void releaseGLObjects (osg::State *state=0) const
 
virtual CallbackQueue getCallbackQueue ()
 
virtual void setCallbackQueue (const CallbackQueue &cbq)
 

Protected Member Functions

virtual ~DtCameraNode ()
 
void setupCallbacks ()
 

Protected Attributes

CallbackQueue myCallbackQueue
 
bool myEnableDebugging
 
DtGlDebuggermyGLDebugger
 
DtDemyDe
 

Friends

class VrvPostDrawCallback
 
struct PriorityDrawCallbackComparator
 
struct CallbackMatch
 

Member Typedef Documentation

Member Enumeration Documentation

Post draw callback default priority levels.

Enumerator
PriorityHighest 
PriorityNormal 
PriorityLowest 

Constructor & Destructor Documentation

makVrv::DtCameraNode::DtCameraNode ( DtDe de)

CTOR.

makVrv::DtCameraNode::DtCameraNode ( const DtCameraNode camera,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY 
)

Copy constructor with optional deep or shallow copy.

makVrv::DtCameraNode::DtCameraNode ( DtDe de,
const osg::Camera &  camera,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY 
)

Copy constructor with optional deep or shallow copy.

makVrv::DtCameraNode::DtCameraNode ( )
delete

not allowed

virtual makVrv::DtCameraNode::~DtCameraNode ( )
protectedvirtual

DTOR.

Member Function Documentation

DtCameraNode& makVrv::DtCameraNode::operator= ( const DtCameraNode rhs)
delete

not allowed

virtual osg::Object* makVrv::DtCameraNode::cloneType ( ) const
overridevirtual

Define standard OSG node functions.

virtual osg::Object* makVrv::DtCameraNode::clone ( const osg::CopyOp &  copyop) const
overridevirtual
virtual bool makVrv::DtCameraNode::isSameKindAs ( const osg::Object *  obj) const
overridevirtual
virtual const char* makVrv::DtCameraNode::className ( ) const
overridevirtual
virtual const char* makVrv::DtCameraNode::libraryName ( ) const
overridevirtual
virtual void makVrv::DtCameraNode::accept ( osg::NodeVisitor &  nv)
overridevirtual
virtual void makVrv::DtCameraNode::addPostDrawCallback ( osg::Camera::DrawCallback callback,
unsigned int  priority = PriorityNormal 
)
virtual

Add a post-draw callback at the specified priority level.

Callbacks are executed in increasing order of priority (for example, a callback at level 1 runs before a callback at level 5).

virtual void makVrv::DtCameraNode::removePostDrawCallback ( osg::Camera::DrawCallback callback)
virtual

Remove a callback from the post draw queue.

virtual bool makVrv::DtCameraNode::containsPostDrawCallback ( osg::Camera::DrawCallback callback)
virtual

check to see if a callback is in the list of post draw callbacks.

virtual void makVrv::DtCameraNode::setPostDrawCallback ( osg::Camera::DrawCallback cb)
virtual

Throw an exception warning that this method should not be used.

virtual void makVrv::DtCameraNode::releaseGLObjects ( osg::State *  state = 0) const
virtual

Release OpenGL resources for specified graphics context, or all contexts of argument is 0.

virtual CallbackQueue makVrv::DtCameraNode::getCallbackQueue ( )
virtual

Getter for callback queue so the rtt camera can get it from the scene camera.

virtual void makVrv::DtCameraNode::setCallbackQueue ( const CallbackQueue cbq)
virtual

Setter for callback queue so the rtt camera can get it from the scene camera.

void makVrv::DtCameraNode::setupCallbacks ( )
protected

not virtual. called from constructor

Friends And Related Function Documentation

friend class VrvPostDrawCallback
friend
friend struct PriorityDrawCallbackComparator
friend
friend struct CallbackMatch
friend

Member Data Documentation

CallbackQueue makVrv::DtCameraNode::myCallbackQueue
protected
bool makVrv::DtCameraNode::myEnableDebugging
protected
DtGlDebugger* makVrv::DtCameraNode::myGLDebugger
protected
DtDe& makVrv::DtCameraNode::myDe
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)