Logo Search packages:      
Sourcecode: labplot version File versions

Qwt3D::CoordinateSystem Class Reference

#include <qwt3d_coordsys.h>

Inheritance diagram for Qwt3D::CoordinateSystem:

Qwt3D::Drawable

List of all members.


Detailed Description

A coordinate system with different styles (BOX, FRAME).

Definition at line 11 of file qwt3d_coordsys.h.


Public Member Functions

void adjustLabels (int val)
 Fine tunes distance between axis label and axis body.
void adjustNumbers (int val)
 Fine tunes distance between axis numbering and axis body.
void attach (Drawable *)
bool autoDecoration () const
 CoordinateSystem (Qwt3D::Triple blb=Qwt3D::Triple(0, 0, 0), Qwt3D::Triple ftr=Qwt3D::Triple(0, 0, 0), Qwt3D::COORDSTYLE=Qwt3D::BOX)
void detach (Drawable *)
void detachAll ()
void draw ()
Qwt3D::Triple first () const
int grids () const
 Returns grids switched on.
void init (Qwt3D::Triple beg=Qwt3D::Triple(0, 0, 0), Qwt3D::Triple end=Qwt3D::Triple(0, 0, 0))
bool lineSmooth () const
 smooth axes ?
Qwt3D::Triple relativePosition (Qwt3D::Triple rel)
virtual void restoreGLState ()
virtual void saveGLState ()
Qwt3D::Triple second () const
void setAutoDecoration (bool val=true)
void setAutoScale (bool val=true)
 Switch autoscaling of axes.
void setAxesColor (Qwt3D::RGBA val)
virtual void setColor (Qwt3D::RGBA rgba)
virtual void setColor (double r, double g, double b, double a=1)
void setGridLines (bool majors, bool minors, int sides=Qwt3D::NOSIDEGRID)
 Defines whether a grid between the major and/or minor tics should be drawn.
void setGridLinesColor (Qwt3D::RGBA val)
 Sets color for the grid lines.
void setLabelColor (Qwt3D::RGBA val)
 Set common color for all axis labels.
void setLabelFont (QFont const &font)
 Set common font for all axis labels.
void setLabelFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false)
 Set common font for all axis labels.
void setLineSmooth (bool val=true)
 draw smooth axes
void setLineWidth (double val, double majfac=0.9, double minfac=0.5)
 Set line width for tic marks and axes.
void setNumberColor (Qwt3D::RGBA val)
 Set common color for all axis numberings.
void setNumberFont (QFont const &font)
 Set common font for all axis numberings.
void setNumberFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false)
 Set common font for all axis numberings.
void setPosition (Qwt3D::Triple first, Qwt3D::Triple second)
 first == front_left_bottom, second == back_right_top
void setStandardScale ()
 Sets an linear axis with real number items.
void setStyle (Qwt3D::COORDSTYLE s, Qwt3D::AXIS frame_1=Qwt3D::X1, Qwt3D::AXIS frame_2=Qwt3D::Y1, Qwt3D::AXIS frame_3=Qwt3D::Z1)
 Set style for the coordinate system (NOCOORD, FRAME or BOX).
void setTicLength (double major, double minor)
 Set length for tic marks.
Qwt3D::COORDSTYLE style () const
 Return style oft the coordinate system.

Public Attributes

std::vector< Axisaxes
 The vector of all12 axes - use them to set axis properties individually.

Protected Member Functions

void Enable (GLenum what, GLboolean val)
Qwt3D::Triple ViewPort2World (Qwt3D::Triple win, bool *err=0)
 simplified glut routine (glUnProject): windows coordinates_p --> object coordinates_p
Qwt3D::Triple World2ViewPort (Qwt3D::Triple obj, bool *err=0)
 simplified glut routine (glProject): object coordinates_p --> windows coordinates_p

Protected Attributes

Qwt3D::RGBA color
GLdouble modelMatrix [16]
GLdouble projMatrix [16]
GLint viewport [4]

Private Member Functions

void autoDecorateExposedAxis (Axis &ax, bool left)
void chooseAxes ()
 build convex hull (6 axes: 2 x, 2 y, 2 z) and choose one of them at a time for scales, labels etc.
void destroy ()
void drawMajorGridLines (Qwt3D::Axis &, Qwt3D::Axis &)
void drawMajorGridLines ()
 Draws a grid between the major tics on the site.
void drawMinorGridLines (Qwt3D::Axis &, Qwt3D::Axis &)
 Helper.
void drawMinorGridLines ()
 Draws a grid between the minor tics on the site.
void recalculateAxesTics ()
 Helper.

Private Attributes

bool autodecoration_
Qwt3D::Triple first_
Qwt3D::RGBA gridlinecolor_
bool majorgridlines_
bool minorgridlines_
Qwt3D::Triple second_
int sides_
bool smooth_
Qwt3D::COORDSTYLE style_

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

Generated by  Doxygen 1.6.0   Back to index