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

#include <qwt3d_coordsys.h>

Inheritance diagram for CoordinateSystem:
Drawable

Public Member Functions

 CoordinateSystem (Qwt3D::Triple blb=Qwt3D::Triple(0, 0, 0), Qwt3D::Triple ftr=Qwt3D::Triple(0, 0, 0), Qwt3D::COORDSTYLE=Qwt3D::BOX)
 
void init (Qwt3D::Triple beg=Qwt3D::Triple(0, 0, 0), Qwt3D::Triple end=Qwt3D::Triple(0, 0, 0))
 
void setStyle (Qwt3D::COORDSTYLE s, Qwt3D::AXIS frame_1=Qwt3D::X1, Qwt3D::AXIS frame_2=Qwt3D::Y1, Qwt3D::AXIS frame_3=Qwt3D::Z1)
 
Qwt3D::COORDSTYLE style () const
 
void setPosition (Qwt3D::Triple first, Qwt3D::Triple second)
 
void setAxesColor (Qwt3D::RGBA val)
 
void setNumberFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false)
 
void setNumberFont (QFont const &font)
 
void setNumberColor (Qwt3D::RGBA val)
 
void setStandardScale ()
 
void adjustNumbers (int val)
 
void adjustLabels (int val)
 
void setGridLinesColor (Qwt3D::RGBA val)
 
void setLabelFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false)
 
void setLabelFont (QFont const &font)
 
void setLabelColor (Qwt3D::RGBA val)
 
void setLineWidth (double val, double majfac=0.9, double minfac=0.5)
 
void setTicLength (double major, double minor)
 
void setAutoScale (bool val=true)
 
Qwt3D::Triple first () const
 
Qwt3D::Triple second () const
 
void setAutoDecoration (bool val=true)
 
bool autoDecoration () const
 
void setLineSmooth (bool val=true)
 
bool lineSmooth () const
 
void draw ()
 
void setGridLines (bool majors, bool minors, int sides=Qwt3D::NOSIDEGRID)
 
int grids () const
 
- 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

std::vector< Axisaxes
 

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 setAxesColor ( Qwt3D::RGBA  val)

Set common color for all axes

void setGridLines ( bool  majors,
bool  minors,
int  sides = Qwt3D::NOSIDEGRID 
)

Defines whether a grid between the major and/or minor tics should be drawn.

The axis used for tic calculation is chosen randomly from the respective pair. For most cases an identical tic distribution is therefore recommended.

Parameters
majorsDraw grid between major tics
minorsDraw grid between minor tics
sidesSide(s), where the grid should be drawn

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