Overview     Modules     Class Hierarchy     Classes     Members  

#include <GlColorScale.h>

Inheritance diagram for tlp::GlColorScale:
Collaboration diagram for tlp::GlColorScale:

Public Types

enum  Orientation { Horizontal, Vertical }

Public Member Functions

 GlColorScale (ColorScale *colorScale, const Coord &baseCoord, const float length, const float thickness, Orientation orientation)
 ~GlColorScale ()
Color getColorAtPos (Coord pos)
 Compute the color corresponding to the position in the color scale. The orientation of the scale define the coordinate used to compute the color (if the orientation is horizontal use only the X coordinate). If the position is outside of the entity coordinates returns the nearest extremity value.
void draw (float lod, Camera *camera)
void translate (const Coord &move)
void getXML (xmlNodePtr)
void setWithXML (xmlNodePtr)
Coord getBaseCoord () const
float getThickness () const
float getLength () const
GlPolyQuadgetColorScalePolyQuad () const
void setColorScale (ColorScale *scale)
ColorScale * getColorScale ()
- Public Member Functions inherited from tlp::GlSimpleEntity
 GlSimpleEntity ()
virtual ~GlSimpleEntity ()
virtual void acceptVisitor (GlSceneVisitor *visitor)
virtual void setVisible (bool visible)
bool isVisible ()
virtual void setStencil (int stencil)
int getStencil ()
void setCheckByBoundingBoxVisitor (bool check)
bool isCheckByBoundingBoxVisitor ()
virtual BoundingBox getBoundingBox ()
virtual void addLayerParent (GlLayer *)
virtual void removeLayerParent (GlLayer *)
void addParent (GlComposite *composite)
void removeParent (GlComposite *composite)
- Public Member Functions inherited from tlp::GlEntity
virtual ~GlEntity ()

Protected Member Functions

void update (std::set< Observable * >::iterator begin, std::set< Observable * >::iterator end)
void observableDestroyed (Observable *)

Additional Inherited Members

- Protected Attributes inherited from tlp::GlSimpleEntity
bool visible
int stencil
bool checkByBoundingBoxVisitor
BoundingBox boundingBox
std::vector< GlComposite * > parents

Member Enumeration Documentation

Enumerator:
Horizontal 
Vertical 

Constructor & Destructor Documentation

tlp::GlColorScale::GlColorScale ( ColorScale *  colorScale,
const Coord &  baseCoord,
const float  length,
const float  thickness,
Orientation  orientation 
)
tlp::GlColorScale::~GlColorScale ( )

Member Function Documentation

void tlp::GlColorScale::draw ( float  lod,
Camera camera 
)
virtual

Draw function

Implements tlp::GlSimpleEntity.

Coord tlp::GlColorScale::getBaseCoord ( ) const
inline
Color tlp::GlColorScale::getColorAtPos ( Coord  pos)

Compute the color corresponding to the position in the color scale. The orientation of the scale define the coordinate used to compute the color (if the orientation is horizontal use only the X coordinate). If the position is outside of the entity coordinates returns the nearest extremity value.

ColorScale* tlp::GlColorScale::getColorScale ( )
inline
GlPolyQuad* tlp::GlColorScale::getColorScalePolyQuad ( ) const
inline
float tlp::GlColorScale::getLength ( ) const
inline
float tlp::GlColorScale::getThickness ( ) const
inline
void tlp::GlColorScale::getXML ( xmlNodePtr  rootNode)
inlinevirtual

Save the entity in Xml

Implements tlp::GlSimpleEntity.

void tlp::GlColorScale::observableDestroyed ( Observable *  )
inlineprotected
void tlp::GlColorScale::setColorScale ( ColorScale *  scale)
void tlp::GlColorScale::setWithXML ( xmlNodePtr  rootNode)
inlinevirtual

Load entity with Xml

Implements tlp::GlSimpleEntity.

void tlp::GlColorScale::translate ( const Coord &  )
virtual

virtual fucntion : Translate entity of vector translation

Reimplemented from tlp::GlSimpleEntity.

void tlp::GlColorScale::update ( std::set< Observable * >::iterator  begin,
std::set< Observable * >::iterator  end 
)
protected


Tulip Software by LaBRI Visualization Team    2001 - 2012