OpenSceneGraph 2.8.3

osg::Hint Class Reference

Inheritance diagram for osg::Hint:

List of all members.

Public Member Functions

 Hint ()
 Hint (GLenum target, GLenum mode)
 Hint (const Hint &hint, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::ObjectcloneType () const
 Clone the type of an attribute, with Object* return type.
virtual osg::Objectclone (const osg::CopyOp &copyop) const
 Clone an attribute, with Object* return type.
virtual bool isSameKindAs (const osg::Object *obj) const
 Return true if this and obj are of the same kind of object.
virtual const char * libraryName () const
 Return the name of the attribute's library.
virtual const char * className () const
 Return the name of the attribute's class type.
virtual Type getType () const
 Return the Type identifier of the attribute's class type.
virtual int compare (const StateAttribute &sa) const
 Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
virtual unsigned int getMember () const
 Return the member identifier within the attribute's class type.
void setTarget (GLenum target)
GLenum getTarget () const
void setMode (GLenum mode)
GLenum getMode () const
virtual void apply (State &state) const
 apply the OpenGL state attributes.

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

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

Return the name of the attribute's class type.

Reimplemented from 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 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 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.

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

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

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.

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

Member Data Documentation

GLenum osg::Hint::_mode [protected]
GLenum osg::Hint::_target [protected]

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

osg logo
Generated at Tue Mar 22 2011 13:20:22 for the OpenSceneGraph by doxygen 1.7.3.