|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
Autoscalable axis with caption. More...
#include <qwt3d_axis.h>
Public Member Functions | |
| Axis () | |
| Default constructor. | |
| Axis (Qwt3D::Triple beg, Qwt3D::Triple end) | |
| Constructs an axis with specified start and end positions. | |
| virtual | ~Axis () |
| Destructor . | |
| virtual void | draw () |
| Draws the axis including base line, tics, and label . | |
| void | setPosition (const Qwt3D::Triple &beg, const Qwt3D::Triple &end) |
| Sets the axis position. | |
| 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) |
| Sets tic length. | |
| void | ticLength (double &majorl, double &minorl) const |
| void | setTicOrientation (double tx, double ty, double tz) |
| Sets tic orientation from individual components. | |
| void | setTicOrientation (const Qwt3D::Triple &val) |
| Sets tic orientation from a Triple vector. | |
| Qwt3D::Triple | ticOrientation () const |
| void | setSymmetricTics (bool b) |
| void | setLabelFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false) |
| Sets the font for the axis label. | |
| void | setLabelFont (QFont const &font) |
| Sets the font for the axis label. | |
| QFont const & | labelFont () const |
| void | setLabelString (QString const &name) |
| Sets the axis label string. | |
| void | setLabelPosition (const Qwt3D::Triple &pos, Qwt3D::ANCHOR) |
| Sets label position in conjunction with an anchoring strategy. | |
| void | setLabelColor (Qwt3D::RGBA col) |
| Sets color for the axis label. | |
| void | setLabel (bool d) |
| void | adjustLabel (int val) |
| void | setScaling (bool d) |
| bool | scaling () const |
| void | setScale (Qwt3D::SCALETYPE) |
| Sets one of the predefined scaling types. | |
| void | setScale (Scale *item) |
| Sets a user-defined scale object. | |
| void | setNumbers (bool d) |
| bool | numbers () const |
| void | setNumberColor (Qwt3D::RGBA col) |
| Sets the color for axis numbers. | |
| Qwt3D::RGBA | numberColor () const |
| void | setNumberFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false) |
| Sets the font for axis numbers. | |
| void | setNumberFont (QFont const &) |
| Sets the font for axis numbers. | |
| 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) |
| Sets number of major intervals. | |
| void | setMinors (int val) |
| Sets number of minor intervals. | |
| 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) |
| Sets line width for axis and tics. | |
| double | lineWidth () const |
| double | majLineWidth () const |
| double | minLineWidth () const |
| void | setLimits (double start, double stop) |
| void | limits (double &start, double &stop) const |
| void | recalculateTics () |
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. | |
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] |
Autoscalable axis with caption.
| Axis::Axis | ( | ) |
Default constructor.
| Axis::Axis | ( | Qwt3D::Triple | beg, |
| Qwt3D::Triple | end | ||
| ) |
Constructs an axis with specified start and end positions.
|
virtual |
Destructor .
|
virtual |
Draws the axis including base line, tics, and label .
Reimplemented from Qwt3D::Drawable.
| void Axis::setLabelColor | ( | Qwt3D::RGBA | col | ) |
Sets color for the axis label.
| void Axis::setLabelFont | ( | QFont const & | font | ) |
Sets the font for the axis label.
| void Axis::setLabelFont | ( | QString const & | family, |
| int | pointSize, | ||
| int | weight = QFont::Normal, |
||
| bool | italic = false |
||
| ) |
Sets the font for the axis label.
| void Axis::setLabelPosition | ( | const Qwt3D::Triple & | pos, |
| Qwt3D::ANCHOR | an | ||
| ) |
Sets label position in conjunction with an anchoring strategy.
| void Axis::setLabelString | ( | QString const & | name | ) |
Sets the axis label string.
| void Axis::setLineWidth | ( | double | val, |
| double | majfac = 0.9, |
||
| double | minfac = 0.5 |
||
| ) |
Sets line width for axis and tics.
| void Axis::setMajors | ( | int | val | ) |
Sets number of major intervals.
| void Axis::setMinors | ( | int | val | ) |
Sets number of minor intervals.
| void Axis::setNumberColor | ( | Qwt3D::RGBA | col | ) |
Sets the color for axis numbers.
| void Axis::setNumberFont | ( | QFont const & | font | ) |
Sets the font for axis numbers.
| void Axis::setNumberFont | ( | QString const & | family, |
| int | pointSize, | ||
| int | weight = QFont::Normal, |
||
| bool | italic = false |
||
| ) |
Sets the font for axis numbers.
| void Axis::setPosition | ( | const Qwt3D::Triple & | beg, |
| const Qwt3D::Triple & | end | ||
| ) |
Sets the axis position.
| void Axis::setScale | ( | Qwt3D::SCALETYPE | val | ) |
Sets one of the predefined scaling types.
| void Axis::setScale | ( | Scale * | val | ) |
Sets a user-defined scale object.
| void Axis::setTicLength | ( | double | majorl, |
| double | minorl | ||
| ) |
Sets tic length.
| void Axis::setTicOrientation | ( | const Qwt3D::Triple & | val | ) |
Sets tic orientation from a Triple vector.
| void Axis::setTicOrientation | ( | double | tx, |
| double | ty, | ||
| double | tz | ||
| ) |
Sets tic orientation from individual components.