osg::Hint Class Reference

Inheritance diagram for osg::Hint:

osg::StateAttribute osg::Object osg::Referenced

List of all members.

Public Member Functions

 Hint ()
 Hint (GLenum target, GLenum mode)
 Hint (const Hint &hint, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
virtual osg::ObjectcloneType () const
virtual osg::Objectclone (const osg::CopyOp &copyop) const
virtual bool isSameKindAs (const osg::Object *obj) const
virtual const char * libraryName () const
virtual const char * className () const
virtual Type getType () const
virtual int compare (const StateAttribute &sa) const
virtual unsigned int getMember () const
void setTarget (GLenum target)
GLenum getTarget () const
void setMode (GLenum mode)
GLenum getMode () const
virtual void apply (State &state) const

Protected Attributes

GLenum _target
GLenum _mode


Constructor & Destructor Documentation

osg::Hint::Hint (  )  [inline]

osg::Hint::Hint ( GLenum  target,
GLenum  mode 
) [inline]

osg::Hint::Hint ( const Hint hint,
const CopyOp copyop = CopyOp::SHALLOW_COPY 
) [inline]

Copy constructor using CopyOp to manage deep vs shallow copy.


Member Function Documentation

virtual osg::Object* osg::Hint::cloneType (  )  const [inline, virtual]

Clone the type of an attribute, with Object* return type. Must be defined by derived classes.

Implements osg::StateAttribute.

virtual osg::Object* osg::Hint::clone ( const osg::CopyOp  )  const [inline, virtual]

Clone an attribute, with Object* return type. Must be defined by derived classes.

Implements osg::StateAttribute.

virtual bool osg::Hint::isSameKindAs ( const osg::Object obj  )  const [inline, virtual]

Return true if this and obj are of the same kind of object.

Reimplemented from osg::StateAttribute.

References NULL.

virtual const char* osg::Hint::libraryName (  )  const [inline, virtual]

Return the name of the attribute's library.

Reimplemented from osg::StateAttribute.

virtual const char* osg::Hint::className (  )  const [inline, virtual]

Return the name of the attribute's class type.

Reimplemented from osg::StateAttribute.

virtual Type osg::Hint::getType (  )  const [inline, virtual]

Return the Type identifier of the attribute's class type.

Implements osg::StateAttribute.

virtual int osg::Hint::compare ( const StateAttribute sa  )  const [inline, virtual]

Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.

Implements osg::StateAttribute.

References COMPARE_StateAttribute_Parameter, and COMPARE_StateAttribute_Types.

virtual unsigned int osg::Hint::getMember (  )  const [inline, virtual]

Return the member identifier within the attribute's class type. Used for light number/clip plane number etc.

Reimplemented from osg::StateAttribute.

void osg::Hint::setTarget ( GLenum  target  ) 

GLenum osg::Hint::getTarget (  )  const [inline]

void osg::Hint::setMode ( GLenum  mode  )  [inline]

GLenum osg::Hint::getMode (  )  const [inline]

virtual void osg::Hint::apply ( State  )  const [virtual]

apply the OpenGL state attributes. The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.

Reimplemented from osg::StateAttribute.


Member Data Documentation

GLenum osg::Hint::_target [protected]

GLenum osg::Hint::_mode [protected]


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

Generated on Fri Mar 19 19:52:50 2010 for openscenegraph by  doxygen 1.5.6