OpenSceneGraph  3.0.1
Public Member Functions | Protected Member Functions | Protected Attributes
osgGA::StateSetManipulator Class Reference

Experimental class, not been looked at for a while, but which will be returned to at some point :-\. More...

Inheritance diagram for osgGA::StateSetManipulator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 StateSetManipulator (osg::StateSet *stateset=0)
virtual const char * className () const
 return the name of the object's class type.
virtual void setStateSet (osg::StateSet *)
 attach a StateSet to the manipulator to be used for specifying view.
virtual osg::StateSetgetStateSet ()
 get the attached a StateSet.
virtual const osg::StateSetgetStateSet () const
 get the attached a StateSet.
virtual bool handle (const GUIEventAdapter &ea, GUIActionAdapter &us)
 Handle events, return true if handled, false otherwise.
virtual void getUsage (osg::ApplicationUsage &usage) const
 Get the keyboard and mouse usage of this manipulator.
void setMaximumNumOfTextureUnits (unsigned int i)
unsigned int getMaximumNumOfTextureUnits () const
void setBackfaceEnabled (bool newbackface)
bool getBackfaceEnabled () const
void setLightingEnabled (bool newlighting)
bool getLightingEnabled () const
void setTextureEnabled (bool newtexture)
bool getTextureEnabled () const
void setPolygonMode (osg::PolygonMode::Mode newpolygonmode)
osg::PolygonMode::Mode getPolygonMode () const
void cyclePolygonMode ()
void setKeyEventToggleBackfaceCulling (int key)
int getKeyEventToggleBackfaceCulling () const
void setKeyEventToggleLighting (int key)
int getKeyEventToggleLighting () const
void setKeyEventToggleTexturing (int key)
int getKeyEventToggleTexturing () const
void setKeyEventCyclePolygonMode (int key)
int getKeyEventCyclePolygonMode () const

Protected Member Functions

virtual ~StateSetManipulator ()
void clone ()
osg::PolygonModegetOrCreatePolygonMode ()

Protected Attributes

osg::ref_ptr< osg::StateSet_stateset
bool _initialized
bool _backface
bool _lighting
bool _texture
unsigned int _maxNumOfTextureUnits
int _keyEventToggleBackfaceCulling
int _keyEventToggleLighting
int _keyEventToggleTexturing
int _keyEventCyclePolygonMode

Detailed Description

Experimental class, not been looked at for a while, but which will be returned to at some point :-\.


Constructor & Destructor Documentation

osgGA::StateSetManipulator::StateSetManipulator ( osg::StateSet stateset = 0)
virtual osgGA::StateSetManipulator::~StateSetManipulator ( ) [protected, virtual]

Member Function Documentation

virtual const char* osgGA::StateSetManipulator::className ( ) const [inline, virtual]

return the name of the object's class type.

Must be defined by derived classes.

Implements osg::Object.

void osgGA::StateSetManipulator::clone ( ) [protected]
void osgGA::StateSetManipulator::cyclePolygonMode ( )
bool osgGA::StateSetManipulator::getBackfaceEnabled ( ) const [inline]
int osgGA::StateSetManipulator::getKeyEventCyclePolygonMode ( ) const [inline]
int osgGA::StateSetManipulator::getKeyEventToggleBackfaceCulling ( ) const [inline]
int osgGA::StateSetManipulator::getKeyEventToggleLighting ( ) const [inline]
int osgGA::StateSetManipulator::getKeyEventToggleTexturing ( ) const [inline]
bool osgGA::StateSetManipulator::getLightingEnabled ( ) const [inline]
unsigned int osgGA::StateSetManipulator::getMaximumNumOfTextureUnits ( ) const [inline]
osg::PolygonMode* osgGA::StateSetManipulator::getOrCreatePolygonMode ( ) [protected]
osg::PolygonMode::Mode osgGA::StateSetManipulator::getPolygonMode ( ) const
virtual osg::StateSet* osgGA::StateSetManipulator::getStateSet ( ) [virtual]

get the attached a StateSet.

virtual const osg::StateSet* osgGA::StateSetManipulator::getStateSet ( ) const [virtual]

get the attached a StateSet.

bool osgGA::StateSetManipulator::getTextureEnabled ( ) const [inline]
virtual void osgGA::StateSetManipulator::getUsage ( osg::ApplicationUsage usage) const [virtual]

Get the keyboard and mouse usage of this manipulator.

Reimplemented from osgGA::GUIEventHandler.

virtual bool osgGA::StateSetManipulator::handle ( const GUIEventAdapter ea,
GUIActionAdapter us 
) [virtual]

Handle events, return true if handled, false otherwise.

Reimplemented from osgGA::GUIEventHandler.

void osgGA::StateSetManipulator::setBackfaceEnabled ( bool  newbackface)
void osgGA::StateSetManipulator::setKeyEventCyclePolygonMode ( int  key) [inline]
void osgGA::StateSetManipulator::setKeyEventToggleBackfaceCulling ( int  key) [inline]
void osgGA::StateSetManipulator::setKeyEventToggleLighting ( int  key) [inline]
void osgGA::StateSetManipulator::setKeyEventToggleTexturing ( int  key) [inline]
void osgGA::StateSetManipulator::setLightingEnabled ( bool  newlighting)
void osgGA::StateSetManipulator::setMaximumNumOfTextureUnits ( unsigned int  i) [inline]
void osgGA::StateSetManipulator::setPolygonMode ( osg::PolygonMode::Mode  newpolygonmode)
virtual void osgGA::StateSetManipulator::setStateSet ( osg::StateSet ) [virtual]

attach a StateSet to the manipulator to be used for specifying view.

void osgGA::StateSetManipulator::setTextureEnabled ( bool  newtexture)

Member Data Documentation


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

osg logo
Generated at Mon Oct 3 2011 12:39:47 for the OpenSceneGraph by doxygen 1.7.5.