vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vreckoUtils::HighlightCallback Class Reference

#include <HighlightCallback.h>

Inheritance diagram for vreckoUtils::HighlightCallback:

Public Member Functions

 HighlightCallback (double increment)
 
virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)
 
double getIncrementValue () const
 
void setIncrementValue (double val)
 
bool getHighlighted () const
 
void setHighlighting (bool val)
 
void switchHighlighting ()
 

Protected Attributes

bool _highlighted
 
bool _dirty
 
double _increment
 
osg::Vec4 _incrementVec
 
osg::ref_ptr< osg::Vec4Array > _origColors
 

Detailed Description

Highlights any kind of node

Constructor & Destructor Documentation

vreckoUtils::HighlightCallback::HighlightCallback ( double  increment)
inline

Member Function Documentation

bool vreckoUtils::HighlightCallback::getHighlighted ( ) const
inline
double vreckoUtils::HighlightCallback::getIncrementValue ( ) const
inline

Getters and setters

void vreckoUtils::HighlightCallback::operator() ( osg::Node *  node,
osg::NodeVisitor *  nv 
)
virtual
void vreckoUtils::HighlightCallback::setHighlighting ( bool  val)
inline
void vreckoUtils::HighlightCallback::setIncrementValue ( double  val)
inline
void vreckoUtils::HighlightCallback::switchHighlighting ( )
inline

Member Data Documentation

bool vreckoUtils::HighlightCallback::_dirty
protected
bool vreckoUtils::HighlightCallback::_highlighted
protected
double vreckoUtils::HighlightCallback::_increment
protected
osg::Vec4 vreckoUtils::HighlightCallback::_incrementVec
protected
osg::ref_ptr<osg::Vec4Array> vreckoUtils::HighlightCallback::_origColors
protected

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