QwtPlot3D API 0.2.7
Public Member Functions

Axis Class Reference

Autoscalable axis with caption. More...

#include <qwt3d_axis.h>

Inheritance diagram for Axis:
Drawable

List of all members.

Public Member Functions

 Axis ()
 Axis (Qwt3D::Triple beg, Qwt3D::Triple end)
virtual void draw ()
void setPosition (const Qwt3D::Triple &beg, const Qwt3D::Triple &end)
void position (Qwt3D::Triple &beg, Qwt3D::Triple &end) const
Qwt3D::Triple begin () const
Qwt3D::Triple end () const
double length () const
void setTicLength (double majorl, double minorl)
void ticLength (double &majorl, double &minorl) const
void setTicOrientation (double tx, double ty, double tz)
void setTicOrientation (const Qwt3D::Triple &val)
Qwt3D::Triple ticOrientation () const
void setSymmetricTics (bool b)
void setLabelFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false)
void setLabelFont (QFont const &font)
QFont const & labelFont () const
void setLabelString (QString const &name)
void setLabelPosition (const Qwt3D::Triple &pos, Qwt3D::ANCHOR)
void setLabelColor (Qwt3D::RGBA col)
void setLabel (bool d)
void adjustLabel (int val)
void setScaling (bool d)
bool scaling () const
void setScale (Qwt3D::SCALETYPE)
void setScale (Scale *item)
void setNumbers (bool d)
bool numbers () const
void setNumberColor (Qwt3D::RGBA col)
Qwt3D::RGBA numberColor () const
void setNumberFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false)
void setNumberFont (QFont const &)
QFont const & numberFont () const
void setNumberAnchor (Qwt3D::ANCHOR a)
void adjustNumbers (int val)
void setAutoScale (bool val=true)
bool autoScale () const
void setMajors (int val)
void setMinors (int val)
int majors () const
int minors () const
Qwt3D::TripleField const & majorPositions () const
Qwt3D::TripleField const & minorPositions () const
void setLineWidth (double val, double majfac=0.9, double minfac=0.5)
double lineWidth () const
double majLineWidth () const
double minLineWidth () const
void setLimits (double start, double stop)
void limits (double &start, double &stop) const
void recalculateTics ()

Detailed Description

Axes are highly customizable especially in terms of labeling and scaling.


Member Function Documentation

void setTicLength ( double  majorl,
double  minorl 
)

Sets tics lengths in world coordinates

void setLabelPosition ( const Qwt3D::Triple pos,
Qwt3D::ANCHOR  an 
)

Sets label position in conjunction with an anchoring strategy

void setScale ( Qwt3D::SCALETYPE  val)

Sets one of the predefined scaling types.

Warning:
Too small intervals in logarithmic scales lead to empty scales (or perhaps a scale only containing an isolated major tic). Better switch to linear scales in such cases.
void setScale ( Scale val)

This variant sets a user-defined scale object. Use with a heap based initialized pointer only. The axis adopts ownership.

Qwt3D::RGBA numberColor ( ) const [inline]

Returns the color for axes numbers

void setMinors ( int  val)

Requests minor intervals.

See also:
LogScale::setMinors().
void setLineWidth ( double  val,
double  majfac = 0.9,
double  minfac = 0.5 
)

Sets line width for axis components.

Parameters:
valthickness for axis base line
majfacrelative thickness for axis major tics (majfac*val)
minfacrelative thickness for axis minor tics (minfac*val)

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