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

#include <GradientColorGen.h>

Inheritance diagram for GradientColorGen:

Public Member Functions

 GradientColorGen ()
 
 GradientColorGen (const osg::Vec4 &colorStart, const osg::Vec4 &colorEnd)
 
 META_DAObject (GradientColorGen,"Gradient Brush") virtual Vec4ArrayPtr getColors(unsigned int leadSplineSize
 
result reserve (arraySize)
 
 for (unsigned int i=0;i< leadSplineSize;i++)
 
osg::Vec4 getColorEnd () const
 
void setColorEnd (osg::Vec4 val)
 
osg::Vec4 getColorStart () const
 
void setColorStart (osg::Vec4 val)
 

Public Attributes

unsigned int crossSectionSize
 
Vec4ArrayPtr result = new osg::Vec4Array
 
unsigned int arraySize = leadSplineSize * crossSectionSize
 
osg::Vec4 gradientStep = (_colorEnd - _colorStart) / (double)leadSplineSize
 
osg::Vec4 actualColor
 
return result
 

Protected Attributes

osg::Vec4 _colorStart
 
osg::Vec4 _colorEnd
 

Constructor & Destructor Documentation

GradientColorGen::GradientColorGen ( )
inline
GradientColorGen::GradientColorGen ( const osg::Vec4 &  colorStart,
const osg::Vec4 &  colorEnd 
)
inline

Member Function Documentation

GradientColorGen::for ( )
inline
osg::Vec4 GradientColorGen::getColorEnd ( ) const
inline
osg::Vec4 GradientColorGen::getColorStart ( ) const
inline
GradientColorGen::META_DAObject ( GradientColorGen  ,
"Gradient Brush"   
)

Inherited methods

result GradientColorGen::reserve ( arraySize  )
void GradientColorGen::setColorEnd ( osg::Vec4  val)
inline
void GradientColorGen::setColorStart ( osg::Vec4  val)
inline

Member Data Documentation

osg::Vec4 GradientColorGen::_colorEnd
protected
osg::Vec4 GradientColorGen::_colorStart
protected
osg::Vec4 GradientColorGen::actualColor
unsigned int GradientColorGen::arraySize = leadSplineSize * crossSectionSize
unsigned int GradientColorGen::crossSectionSize
Initial value:
{
_dirty = false
osg::Vec4 GradientColorGen::gradientStep = (_colorEnd - _colorStart) / (double)leadSplineSize
Vec4ArrayPtr GradientColorGen::result = new osg::Vec4Array
return GradientColorGen::result

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