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

a state attribute which should be applied to every camera that needs lighting enabled so that the DtLightManagerStateAttribute can know which camera is the current camera. The member camera pointer should not be used except for being passed to the lighting update code.

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

Public Member Functions

 DtCameraPointerStateAttribute (const osg::Camera *camera)
 
 DtCameraPointerStateAttribute (const DtCameraPointerStateAttribute &att, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
virtual ~DtCameraPointerStateAttribute ()
 
virtual const osg::Camera * camera () const
 
virtual void apply (osg::State &state) const override
 
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 charlibraryName () const override
 
virtual const charclassName () const override
 
virtual Type getType () const override
 
virtual bool getModeUsage (osg::StateAttribute::ModeUsage &usage) const override
 
virtual int compare (const StateAttribute &sa) const override
 

Static Public Member Functions

static Type theStateAttributeType ()
 

Protected Attributes

const osg::Camera * myCamera
 

Constructor & Destructor Documentation

makVrv::DtCameraPointerStateAttribute::DtCameraPointerStateAttribute ( const osg::Camera *  camera)

CTOR.

makVrv::DtCameraPointerStateAttribute::DtCameraPointerStateAttribute ( const DtCameraPointerStateAttribute att,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY 
)

Copy constructor.

virtual makVrv::DtCameraPointerStateAttribute::~DtCameraPointerStateAttribute ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtCameraPointerStateAttribute::apply ( osg::State &  state) const
overridevirtual

Does nothing since this state attribute is just for providing a camera pointer to the DtLightManagerStateAttribute.

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

Does nothing since this state attribute is just for providing a camera pointer to the DtLightManagerStateAttribute.

virtual osg::Object* makVrv::DtCameraPointerStateAttribute::clone ( const osg::CopyOp &  copyop) const
overridevirtual

Does nothing since this state attribute is just for providing a camera pointer to the DtLightManagerStateAttribute.

virtual bool makVrv::DtCameraPointerStateAttribute::isSameKindAs ( const osg::Object *  obj) const
overridevirtual

Does nothing since this state attribute is just for providing a camera pointer to the DtLightManagerStateAttribute.

virtual const char* makVrv::DtCameraPointerStateAttribute::libraryName ( ) const
overridevirtual

Does nothing since this state attribute is just for providing a camera pointer to the DtLightManagerStateAttribute.

virtual const char* makVrv::DtCameraPointerStateAttribute::className ( ) const
overridevirtual

Does nothing since this state attribute is just for providing a camera pointer to the DtLightManagerStateAttribute.

virtual Type makVrv::DtCameraPointerStateAttribute::getType ( ) const
overridevirtual

Does nothing since this state attribute is just for providing a camera pointer to the DtLightManagerStateAttribute.

virtual bool makVrv::DtCameraPointerStateAttribute::getModeUsage ( osg::StateAttribute::ModeUsage &  usage) const
overridevirtual

Does nothing since this state attribute is just for providing a camera pointer to the DtLightManagerStateAttribute.

virtual int makVrv::DtCameraPointerStateAttribute::compare ( const StateAttribute &  sa) const
overridevirtual

Does nothing since this state attribute is just for providing a camera pointer to the DtLightManagerStateAttribute.

virtual const osg::Camera* makVrv::DtCameraPointerStateAttribute::camera ( ) const
virtual

accessor for the camera that has this state attribute on it's state set

static Type makVrv::DtCameraPointerStateAttribute::theStateAttributeType ( )
static

static accessor for the type of this state attribute this state attribute type is used by the type() function and needs to be less than the type for the DtLightManagerStateAttribute since they are applied in Type order

Member Data Documentation

const osg::Camera* makVrv::DtCameraPointerStateAttribute::myCamera
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)