QwtPlot3D API  0.2.7
Public Types | Public Member Functions | Public Attributes | List of all members
ColorLegend Class Reference

#include <qwt3d_colorlegend.h>

Inheritance diagram for ColorLegend:
Drawable

Public Types

enum  SCALEPOSITION { Top, Bottom, Left, Right }
 
enum  ORIENTATION { BottomTop, LeftRight }
 

Public Member Functions

 ColorLegend ()
 
void draw ()
 
void setRelPosition (Qwt3D::Tuple relMin, Qwt3D::Tuple relMax)
 
void setOrientation (ORIENTATION, SCALEPOSITION)
 
void setLimits (double start, double stop)
 
void setMajors (int)
 
void setMinors (int)
 
void drawScale (bool val)
 
void drawNumbers (bool val)
 
void setAutoScale (bool val)
 
void setScale (Qwt3D::Scale *scale)
 
void setScale (Qwt3D::SCALETYPE)
 
void setTitleString (QString const &s)
 
void setTitleFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false)
 
- Public Member Functions inherited from Drawable
virtual void saveGLState ()
 
virtual void restoreGLState ()
 
void attach (Drawable *)
 
void detach (Drawable *)
 
void detachAll ()
 
virtual void setColor (double r, double g, double b, double a=1)
 
virtual void setColor (Qwt3D::RGBA rgba)
 
Qwt3D::Triple relativePosition (Qwt3D::Triple rel)
 

Public Attributes

Qwt3D::ColorVector colors
 

Additional Inherited Members

- Protected Member Functions inherited from Drawable
void Enable (GLenum what, GLboolean val)
 
Qwt3D::Triple ViewPort2World (Qwt3D::Triple win, bool *err=0)
 
Qwt3D::Triple World2ViewPort (Qwt3D::Triple obj, bool *err=0)
 
- Protected Attributes inherited from Drawable
Qwt3D::RGBA color
 
GLdouble modelMatrix [16]
 
GLdouble projMatrix [16]
 
GLint viewport [4]
 

Detailed Description

The class visualizes a ColorVector together with a scale (axis) and a caption. ColorLegends are vertical or horizontal

Member Enumeration Documentation

Possible anchor points for caption and axis.

Enumerator
Top 

scale on top

Bottom 

scale on bottom

Left 

scale left

Right 

scale right

Orientation of the legend.

Enumerator
BottomTop 

Positionate the legend vertically, the lowest color index is on the bottom.

LeftRight 

Positionate the legend horizontally, the lowest color index is on left side.

Constructor & Destructor Documentation

Standard constructor.

Contructs a legend object with an axis at the left side. The legend resides in the top-right area and has no caption. Scale numbering is shown.

References ColorLegend::BottomTop, ColorLegend::Left, Label::setFont(), Axis::setNumberAnchor(), Axis::setNumberColor(), Axis::setNumberFont(), Axis::setNumbers(), ColorLegend::setRelPosition(), and Axis::setScaling().


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