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

#include <ColorGenAdapter.h>

Inheritance diagram for APDYNAMICART::GradientColorAdapter:
APDYNAMICART::ColorGenAdapter APDYNAMICART::PoAAdapter< ColorGen >

Public Member Functions

 GradientColorAdapter ()
 
 GradientColorAdapter (const osg::Vec4 &color1, const osg::Vec4 &color2)
 
 META_DAObject (GradientColorAdapter,"Gradient") virtual void createMenu(MenuPtr menu)
 
virtual int load (XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *ParametersNode)
 load data from given XML node More...
 
virtual void save (XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *Document, XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *poaNode)
 save data from adapter to given XML node More...
 
virtual ColorGenPtr getObject ()
 returns adapted object More...
 
virtual void setColor (const osg::Vec4 &color)
 
virtual osg::Vec4 getColor ()
 
- Public Member Functions inherited from APDYNAMICART::ColorGenAdapter
 ColorGenAdapter ()
 
int getColorIndex () const
 
void setColorIndex (int val)
 
- Public Member Functions inherited from APDYNAMICART::PoAAdapter< ColorGen >
virtual void createMenu (osg::ref_ptr< vreckoUtils::Menu > menu)
 creates structure of context menu More...
 
virtual bool itemClicked (const char *itemID)
 
virtual void pointed (bool pointed)
 implement reaction to pointing to object More...
 
virtual bool sliderChanged (const char *sliderID, float sliderPos)
 
virtual void update ()
 
virtual std::string classDescription () const =0
 
virtual std::string className () const =0
 

Protected Attributes

osg::ref_ptr< GradientColorGen_colorGen
 
- Protected Attributes inherited from APDYNAMICART::ColorGenAdapter
int _colorIndex
 

Additional Inherited Members

- Protected Member Functions inherited from APDYNAMICART::PoAAdapter< ColorGen >
virtual ~PoAAdapter ()
 

Detailed Description

Gradient color adapter

Constructor & Destructor Documentation

APDYNAMICART::GradientColorAdapter::GradientColorAdapter ( )
inline
APDYNAMICART::GradientColorAdapter::GradientColorAdapter ( const osg::Vec4 &  color1,
const osg::Vec4 &  color2 
)
inline

Member Function Documentation

virtual osg::Vec4 APDYNAMICART::GradientColorAdapter::getColor ( )
inlinevirtual

Reimplemented from APDYNAMICART::ColorGenAdapter.

virtual ColorGenPtr APDYNAMICART::GradientColorAdapter::getObject ( )
inlinevirtual

returns adapted object

Implements APDYNAMICART::PoAAdapter< ColorGen >.

int APDYNAMICART::GradientColorAdapter::load ( XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *  ParametersNode)
virtual

load data from given XML node

Reimplemented from APDYNAMICART::PoAAdapter< ColorGen >.

APDYNAMICART::GradientColorAdapter::META_DAObject ( GradientColorAdapter  ,
"Gradient"   
)
void GradientColorAdapter::save ( XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *  Document,
XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *  poaNode 
)
virtual

save data from adapter to given XML node

Reimplemented from APDYNAMICART::PoAAdapter< ColorGen >.

void APDYNAMICART::GradientColorAdapter::setColor ( const osg::Vec4 &  color)
virtual

Reimplemented from APDYNAMICART::ColorGenAdapter.

Member Data Documentation

osg::ref_ptr<GradientColorGen> APDYNAMICART::GradientColorAdapter::_colorGen
protected

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