Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Examples  

QSAxes2D Class Reference

Ordinary XY axes. More...

#include <qsaxes2d.h>

Inheritance diagram for QSAxes2D:

Inheritance graph
[legend]
List of all members.

Public Types

enum  FillElement { RectFill = 0, FrameFill }

Public Methods

 QSAxes2D (QObject *parent=0, const char *name=0)
 ~QSAxes2D ()
virtual void stop ()
void setFrameWidth (int width)
int frameWidth () const
virtual void initMappings (QSDrv *drv)
virtual QSPt3f mixedToCanvas (const QSPt3f &pos, CoordinateSystem in_coords[3], double dpi, QSAxis *xAxis, QSAxis *yAxis, QSAxis *zAxis) const
virtual QSPt3f canvasToMixed (const QSPt3f &pos, CoordinateSystem out_coords[3], double dpi, QSAxis *xAxis, QSAxis *yAxis, QSAxis *zAxis) const
virtual void paintPlot (QPainter *p, double dpi=72.0, bool blocking=true, bool transparent=true)
virtual void drawPlot (QSDrv *drv, bool blocking=true, bool transparent=true)
virtual QString posInfo (QSPt2f &pos)
virtual void loadStateFromStream (QDataStream &stream, QSObjectFactory *factory)
virtual void saveStateToStream (QDataStream &stream, QSObjectFactory *factory)

Protected Methods

void axisRangesCalculated ()
void allocRuntimeData ()
void freeRuntimeData ()
virtual void drawAxis (QSAxis *axis)
virtual void drawGrid (QSAxis *axis, bool major)

Detailed Description

Ordinary XY axes.

Author:
Kamil Dobkowski
Examples:

demo2d.cpp.


Member Enumeration Documentation

enum QSAxes2D::FillElement
 

Fill elements. See QSGraphicalData::setFill()


Constructor & Destructor Documentation

QSAxes2D::QSAxes2D QObject *    parent = 0,
const char *    name = 0
 

Constructor.

QSAxes2D::~QSAxes2D  
 

Destructor.


Member Function Documentation

void QSAxes2D::allocRuntimeData   [protected, virtual]
 

Reimplemented

Reimplemented from QSAxes.

void QSAxes2D::axisRangesCalculated   [protected, virtual]
 

Reimplemented from QSPlot::axisRangesCalculated .

Reimplemented from QSAxes.

virtual QSPt3f QSAxes2D::canvasToMixed const QSPt3f   pos,
CoordinateSystem    out_coords[3],
double    dpi,
QSAxis   xAxis,
QSAxis   yAxis,
QSAxis   zAxis
const [virtual]
 

From canvas to mixed coordinates. Allows freely mixing of coordinate systems, but Z can't be normCoordinate.

Implements QSAxes.

virtual void QSAxes2D::drawAxis QSAxis   axis [protected, virtual]
 

Reimplemented

Reimplemented from QSAxes.

virtual void QSAxes2D::drawGrid QSAxis   axis,
bool    major
[protected, virtual]
 

Reimplemented

Reimplemented from QSAxes.

virtual void QSAxes2D::drawPlot QSDrv   drv,
bool    blocking = true,
bool    transparent = true
[virtual]
 

Reimplemented

Implements QSAxes.

int QSAxes2D::frameWidth   const [inline]
 

Returns a frame width.

void QSAxes2D::freeRuntimeData   [protected, virtual]
 

Reimplemented

Reimplemented from QSAxes.

virtual void QSAxes2D::initMappings QSDrv   drv [virtual]
 

Reimplemented

Reimplemented from QSAxes.

virtual void QSAxes2D::loadStateFromStream QDataStream &    stream,
QSObjectFactory   factory
[virtual]
 

Restores all axes and datasets.

Reimplemented from QSAxes.

virtual QSPt3f QSAxes2D::mixedToCanvas const QSPt3f   pos,
CoordinateSystem    in_coords[3],
double    dpi,
QSAxis   xAxis,
QSAxis   yAxis,
QSAxis   zAxis
const [virtual]
 

From mixed type coordinates to canvas. Allows freely mixing of coordinate systems, but Z can't be normCoordinate

Implements QSAxes.

virtual void QSAxes2D::paintPlot QPainter *    p,
double    dpi = 72.0,
bool    blocking = true,
bool    transparent = true
[virtual]
 

Reimplemented

Implements QSAxes.

virtual QString QSAxes2D::posInfo QSPt2f   pos [virtual]
 

Reimplemented

Reimplemented from QSAxes.

virtual void QSAxes2D::saveStateToStream QDataStream &    stream,
QSObjectFactory   factory
[virtual]
 

Saves all axes and datasets.

Reimplemented from QSAxes.

void QSAxes2D::setFrameWidth int    width
 

Sets a width of the frame.

virtual void QSAxes2D::stop   [virtual]
 

Reimplemented.

Reimplemented from QSAxes.


The documentation for this class was generated from the following file:
Generated on Mon Mar 18 19:16:36 2002 for KMatplot library by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002