Moby
Public Member Functions | List of all members
Moby::CcolorVisitor Class Reference

This OSG NodeVisitor colors all Geometry & ShapeDrawable of a single node. More...

#include <Color.h>

Inheritance diagram for Moby::CcolorVisitor:

Public Member Functions

 CcolorVisitor (const osg::Vec4 &color)
 
virtual void apply (osg::Node &node)
 
virtual void apply (osg::Geode &geode)
 
void setColor (const float r, const float g, const float b, const float a=1.0f)
 
void setColor (const osg::Vec4 &color)
 

Detailed Description

This OSG NodeVisitor colors all Geometry & ShapeDrawable of a single node.

usage example: CcolorVisitor newColor; newColor.setColor( r , g , b , a=1.0 ); node->accept( newColor );


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