QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
Qwt3D::ColorLegend Class Reference

A flat color legend. More...

#include <qwt3d_colorlegend.h>

Inheritance diagram for Qwt3D::ColorLegend:
Qwt3D::Drawable

Public Types

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

Public Member Functions

 ColorLegend ()
 Constructs a legend object with an axis at the left side.
 
void draw ()
 Draws the color legend.
 
void setRelPosition (Qwt3D::Tuple relMin, Qwt3D::Tuple relMax)
 Sets relative position of the legend within the plot area.
 
void setOrientation (ORIENTATION, SCALEPOSITION)
 Sets the legend orientation and axis scale position.
 
void setLimits (double start, double stop)
 Sets axis scale limits.
 
void setMajors (int)
 Sets number of major intervals.
 
void setMinors (int)
 Sets number of minor intervals.
 
void drawScale (bool val)
 
void drawNumbers (bool val)
 
void setAutoScale (bool val)
 Enables or disables auto-scaling.
 
void setScale (Qwt3D::Scale *scale)
 Sets a user-defined scale object.
 
void setScale (Qwt3D::SCALETYPE)
 Sets predefined scale type.
 
void setTitleString (QString const &s)
 Sets the legend title string.
 
void setTitleFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false)
 Sets the legend title font.
 
- Public Member Functions inherited from Qwt3D::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)
 Calculates world coordinates from relative viewport position.
 

Public Attributes

Qwt3D::ColorVector colors
 

Additional Inherited Members

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

Detailed Description

A flat color legend.

Constructor & Destructor Documentation

◆ ColorLegend()

ColorLegend::ColorLegend ( )

Constructs a legend object with an axis at the left side.

Member Function Documentation

◆ draw()

void ColorLegend::draw ( )
virtual

Draws the color legend.

Reimplemented from Qwt3D::Drawable.

◆ setAutoScale()

void ColorLegend::setAutoScale ( bool  val)

Enables or disables auto-scaling.

◆ setLimits()

void ColorLegend::setLimits ( double  start,
double  stop 
)

Sets axis scale limits.

◆ setMajors()

void ColorLegend::setMajors ( int  majors)

Sets number of major intervals.

◆ setMinors()

void ColorLegend::setMinors ( int  minors)

Sets number of minor intervals.

◆ setOrientation()

void ColorLegend::setOrientation ( ORIENTATION  orientation,
SCALEPOSITION  pos 
)

Sets the legend orientation and axis scale position.

◆ setRelPosition()

void ColorLegend::setRelPosition ( Qwt3D::Tuple  relMin,
Qwt3D::Tuple  relMax 
)

Sets relative position of the legend within the plot area.

◆ setScale() [1/2]

void ColorLegend::setScale ( Qwt3D::Scale scale)

Sets a user-defined scale object.

◆ setScale() [2/2]

void ColorLegend::setScale ( Qwt3D::SCALETYPE  val)

Sets predefined scale type.

◆ setTitleFont()

void ColorLegend::setTitleFont ( QString const &  family,
int  pointSize,
int  weight = QFont::Normal,
bool  italic = false 
)

Sets the legend title font.

◆ setTitleString()

void ColorLegend::setTitleString ( QString const &  s)

Sets the legend title string.


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