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

Encapsulate data and functionality of sweepSurface related factories and adapters. More...

#include <Brush.h>

Inheritance diagram for APDYNAMICART::Brush:

Public Member Functions

 Brush (string colorAdapterName, string diameterAdapterName, string crossSectionAdapterName, string rotationFrameAdapterName)
 
 Brush (const Brush &orig)
 
 ~Brush ()
 
osg::ref_ptr< ColorGenAdaptergetColorGenAdapter ()
 
osg::ref_ptr< DiameterGenAdaptergetDiameterGenAdapter ()
 
osg::ref_ptr< SplineAdaptergetCrossSectionAdapter ()
 
osg::ref_ptr
< RotationFrameAdapter
getRotationFrameAdapter ()
 
string getCrossSectionAdapterName () const
 
string getRotationFrameAdapterName () const
 
double getSmoothness () const
 
ColorGenFactorygetColorGenFactory ()
 
int getCrossSectionInterpolationSteps () const
 
int getInterpolationSteps () const
 
double getDiameter ()
 
bool sliderChanged (const char *sliderID, float sliderPos)
 
bool guiItemClicked (const char *itemID)
 
bool setDiameterAdapter (string name)
 
bool setColorAdapter (string name)
 
bool setCrossSectionAdapter (string name)
 
bool setRotationFrameAdapter (string name)
 
void save (XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *Document, XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *ParametersNode)
 
void createMenu (MenuPtr menu, bool colorMenu=true)
 
void load (DOMNode *ParametersNode)
 
void setDiameter (float sliderPos)
 
void setInterpolationSteps (int steps)
 
void setCrossSectionInterpolationSteps (int steps)
 
void setSmoothness (double val)
 

Protected Attributes

int _interpolationSteps
 
int _crossSectionInterpolationSteps
 
double _smoothness
 
string _colorGenAdapterName
 Object for managing color(s) of sweep surface. More...
 
string _diamGenAdapterName
 Object for managing diameter(s) of sweep surface. More...
 
string _crossSectionAdapterName
 Object for managing cross-section shape of sweep surface. More...
 
string _rotationFrameAdapterName
 object for managing tilting of the brush More...
 
ColorGenFactory _colorGenFactory
 factories - for simple generation and data storage of sweep surface parameters generators More...
 
DiameterGenFactory _diamGenFactory
 
SplineFactory _crossSectionFactory
 
RotationFrameFactory _rotationFrameFactory
 

Detailed Description

Encapsulate data and functionality of sweepSurface related factories and adapters.

Constructor & Destructor Documentation

APDYNAMICART::Brush::Brush ( string  colorAdapterName,
string  diameterAdapterName,
string  crossSectionAdapterName,
string  rotationFrameAdapterName 
)
APDYNAMICART::Brush::Brush ( const Brush orig)
APDYNAMICART::Brush::~Brush ( )
inline

Member Function Documentation

void APDYNAMICART::Brush::createMenu ( MenuPtr  menu,
bool  colorMenu = true 
)
osg::ref_ptr<ColorGenAdapter> APDYNAMICART::Brush::getColorGenAdapter ( )
inline
ColorGenFactory* APDYNAMICART::Brush::getColorGenFactory ( )
inline
osg::ref_ptr<SplineAdapter> APDYNAMICART::Brush::getCrossSectionAdapter ( )
inline
string APDYNAMICART::Brush::getCrossSectionAdapterName ( ) const
inline
int APDYNAMICART::Brush::getCrossSectionInterpolationSteps ( ) const
inline
double APDYNAMICART::Brush::getDiameter ( )
osg::ref_ptr<DiameterGenAdapter> APDYNAMICART::Brush::getDiameterGenAdapter ( )
inline
int APDYNAMICART::Brush::getInterpolationSteps ( ) const
inline
osg::ref_ptr<RotationFrameAdapter> APDYNAMICART::Brush::getRotationFrameAdapter ( )
inline
string APDYNAMICART::Brush::getRotationFrameAdapterName ( ) const
inline
double APDYNAMICART::Brush::getSmoothness ( ) const
inline
bool APDYNAMICART::Brush::guiItemClicked ( const char *  itemID)
void APDYNAMICART::Brush::load ( DOMNode *  ParametersNode)
void APDYNAMICART::Brush::save ( XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *  Document,
XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *  ParametersNode 
)
bool APDYNAMICART::Brush::setColorAdapter ( string  name)
bool APDYNAMICART::Brush::setCrossSectionAdapter ( string  name)
void APDYNAMICART::Brush::setCrossSectionInterpolationSteps ( int  steps)
void APDYNAMICART::Brush::setDiameter ( float  sliderPos)
bool APDYNAMICART::Brush::setDiameterAdapter ( string  name)
void APDYNAMICART::Brush::setInterpolationSteps ( int  steps)
inline
bool APDYNAMICART::Brush::setRotationFrameAdapter ( string  name)
void APDYNAMICART::Brush::setSmoothness ( double  val)
inline
bool APDYNAMICART::Brush::sliderChanged ( const char *  sliderID,
float  sliderPos 
)

Member Data Documentation

string APDYNAMICART::Brush::_colorGenAdapterName
protected

Object for managing color(s) of sweep surface.

ColorGenFactory APDYNAMICART::Brush::_colorGenFactory
protected

factories - for simple generation and data storage of sweep surface parameters generators

string APDYNAMICART::Brush::_crossSectionAdapterName
protected

Object for managing cross-section shape of sweep surface.

SplineFactory APDYNAMICART::Brush::_crossSectionFactory
protected
int APDYNAMICART::Brush::_crossSectionInterpolationSteps
protected
string APDYNAMICART::Brush::_diamGenAdapterName
protected

Object for managing diameter(s) of sweep surface.

DiameterGenFactory APDYNAMICART::Brush::_diamGenFactory
protected
int APDYNAMICART::Brush::_interpolationSteps
protected
string APDYNAMICART::Brush::_rotationFrameAdapterName
protected

object for managing tilting of the brush

RotationFrameFactory APDYNAMICART::Brush::_rotationFrameFactory
protected
double APDYNAMICART::Brush::_smoothness
protected

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