QwtPlot3D API  0.2.7
Public Member Functions | Static Public Member Functions | List of all members
Label Class Reference

#include <qwt3d_label.h>

Inheritance diagram for Label:
Drawable

Public Member Functions

 Label (const QString &family, int pointSize, int weight=QFont::Normal, bool italic=false)
void setFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false)
void adjust (int gap)
double gap () const
void setPosition (Qwt3D::Triple pos, ANCHOR a=BottomLeft)
void setRelPosition (Tuple rpos, ANCHOR a)
Qwt3D::Triple first () const
Qwt3D::Triple second () const
ANCHOR anchor () const
virtual void setColor (double r, double g, double b, double a=1)
virtual void setColor (Qwt3D::RGBA rgba)
void setString (QString const &s)
void draw ()
- Public Member Functions inherited from Drawable
virtual void saveGLState ()
virtual void restoreGLState ()
void attach (Drawable *)
void detach (Drawable *)
void detachAll ()
Qwt3D::Triple relativePosition (Qwt3D::Triple rel)

Static Public Member Functions

static void useDeviceFonts (bool val)

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]

Member Function Documentation

void adjust ( int  gap)

Fine tunes label;.

Adds an additional shift to the anchor point. This happens in a more or less intelligent manner depending on the nature of the anchor:

anchor type         shift

left aligned         -->
right aligned        <--
top aligned          top-down            
bottom aligned       bottom-up

The unit is user space dependend (one pixel on screen - play around to get satisfying results)

void setPosition ( Qwt3D::Triple  pos,
ANCHOR  a = BottomLeft 
)

Sets the labels position.

example:

   Anchor TopCenter (*)  resp. BottomRight(X) 

   +----*----+
   |  Pixmap |
   +---------X

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