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

QSAxes3D Class Reference

Ordinary XYZ axes. More...

#include <qsaxes3d.h>

Inheritance diagram for QSAxes3D:

Inheritance graph
[legend]
List of all members.

Public Types

enum  FillElement {
  BWallFill, RWallFill, XYWallFill, XZWallFill,
  YZWallFill
}
enum  LineElement {
  BoxLine = 0, TicsLine, XYWallLine, XZWallLine,
  YZWallLine
}

Public Slots

void setAzimuth (int angle)
void setElevation (int angle)
void setDistance (int d)
void setFocusDistance (int d)
void setLightAzimuth (int azimuth)
void setLightElevation (int elevation)
void setDirectLight (int lightness)
void setAmbientLight (int lightness)

Public Methods

 QSAxes3D (QObject *parent=0, const char *name=0)
virtual ~QSAxes3D ()
void stop ()
void setOpenGL (bool enabled)
bool openGL () const
void glSetTransparency (bool enabled)
void glSetGlobalTransparency (int value)
void glSetShadeWalls (bool enabled)
void glSetMeshAutoStroke (bool enable)
void glSetAutoStrokeLightness (int value)
bool glTransparency () const
bool glShadeWalls () const
int glGlobalTransparency () const
bool glMeshAutoStroke () const
int glAutoStrokeLightness () const
void setEdgeLength (double xEdge, double yEdge, double zEdge)
void setXEdgeLength (double lenght)
void setYEdgeLength (double lenght)
void setZEdgeLength (double lenght)
double xEdgeLength () const
double yEdgeLength () const
double zEdgeLength () const
void setWallThickness (double xy, double xz, double yz)
void setXYWallThickness (double thickness)
void setXZWallThickness (double thickness)
void setYZWallThickness (double thickness)
double xyWallThickness () const
double xzWallThickness () const
double yzWallThickness () const
int azimuth () const
int elevation () const
int distance () const
int focusDistance () const
int lightAzimuth () const
int lightElevation () const
int directLight () const
int ambientLight () const
void setPerspective (bool enabled)
void setAutoscale (bool enabled)
void setLight (bool enabled)
bool light () const
bool perspective () const
bool autoscale () const
void defaultSettings ()
const QSProjection3D * p3D () 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 void paintSkeleton (QPainter *p, double dpi=72.0, bool reallyFast=false)
virtual void loadStateFromStream (QDataStream &stream, QSObjectFactory *factory)
virtual void saveStateToStream (QDataStream &stream, QSObjectFactory *factory)

Protected Methods

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

Detailed Description

Ordinary XYZ axes.

Author:
Kamil Dobkowski
Examples:

demo3d.cpp.


Member Enumeration Documentation

enum QSAxes3D::FillElement
 

Just see QSGraphicalData::setFill() .

enum QSAxes3D::LineElement
 

Just see QSGraphicalData::setLine().


Constructor & Destructor Documentation

QSAxes3D::QSAxes3D (  QObject *    parent = 0,
const char *    name = 0
) 
 

Constructor.

virtual QSAxes3D::~QSAxes3D (    )  [virtual]
 

Destructor.


Member Function Documentation

virtual void QSAxes3D::allocRuntimeData (    )  [protected, virtual]
 

This function is called in 'start()' before drawing starts. Default implementation does nothing.

Reimplemented from QSAxes.

int QSAxes3D::ambientLight (    )  const [inline]
 

Returns the current intensity of the ambient light source .

bool QSAxes3D::autoscale (    )  const [inline]
 

Returns the current autoscale setting.

virtual void QSAxes3D::axisRangesCalculated (    )  [protected, virtual]
 

Called when all ranges are calculated. Default implementation emits 'sigRangesValid'

Reimplemented from QSAxes.

int QSAxes3D::azimuth (    )  const [inline]
 

Returns the current azimuth.

virtual QSPt3f QSAxes3D::canvasToMixed (  const QSPt3f &    pos,
CoordinateSystem    out_coords[3],
double    dpi,
QSAxis *    xAxis,
QSAxis *    yAxis,
QSAxis *    zAxis
)  const [virtual]
 

From canvas to mixed coordinates. You can't mix world, data coordinates with other types ( you can mix world and data of course ). Z can't be normCoordinate.

Implements QSAxes.

void QSAxes3D::defaultSettings (    ) 
 

Sets all fonts, fills and lines to their default values.

int QSAxes3D::directLight (    )  const [inline]
 

Returns the current intensity of the directed light source .

int QSAxes3D::distance (    )  const [inline]
 

Returns the current distance.

virtual void QSAxes3D::drawAxis (  QSAxis *    axis )  [protected, virtual]
 

Draws an axis. It is reimplemented in QSAxes2D and QSAxes3D

Reimplemented from QSAxes.

virtual void QSAxes3D::drawGrid (  QSAxis *    axis,
bool    major
)  [protected, virtual]
 

Draws an axis grid. It is reimplemented in QSAxes2D and QSAxes3D

Reimplemented from QSAxes.

virtual void QSAxes3D::drawPlot (  QSDrv *    drv,
bool    blocking = true,
bool    transparent = true
)  [virtual]
 

Reimplemented

Implements QSAxes.

int QSAxes3D::elevation (    )  const [inline]
 

Returns the current elevation.

int QSAxes3D::focusDistance (    )  const [inline]
 

Returns the current focus distance.

virtual void QSAxes3D::freeRuntimeData (    )  [protected, virtual]
 

This function is called in 'stop()' after drawing stops. Default implementation does nothing.

Reimplemented from QSAxes.

void QSAxes3D::glSetGlobalTransparency (  int    value ) 
 

Range <0,255>

virtual void QSAxes3D::initMappings (  QSDrv *    drv )  [virtual]
 

Reimplemented

Reimplemented from QSAxes.

bool QSAxes3D::light (    )  const [inline]
 

Returns the current light setting.

int QSAxes3D::lightAzimuth (    )  const [inline]
 

Returns the current light source direction

int QSAxes3D::lightElevation (    )  const [inline]
 

Returns the current light source direction.

virtual void QSAxes3D::loadStateFromStream (  QDataStream &    stream,
QSObjectFactory *    factory
)  [virtual]
 

Restores all axes and datasets.

Reimplemented from QSAxes.

virtual QSPt3f QSAxes3D::mixedToCanvas (  const QSPt3f &    pos,
CoordinateSystem    in_coords[3],
double    dpi,
QSAxis *    xAxis,
QSAxis *    yAxis,
QSAxis *    zAxis
)  const [virtual]
 

From mixed type coordinates to canvas. You can't mix world, data coordinates with other types, ( you can mix world and data of course ). Z can't be normCoordinate.

Implements QSAxes.

bool QSAxes3D::openGL (    )  const [inline]
 

OpenGL

const QSProjection3D* QSAxes3D::p3D (    )  const [inline]
 

Returns transformation.

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

Reimplemented

Implements QSAxes.

virtual void QSAxes3D::paintSkeleton (  QPainter *    p,
double    dpi = 72.0,
bool    reallyFast = false
)  [virtual]
 

Reimpemented

Reimplemented from QSAxes.

bool QSAxes3D::perspective (    )  const [inline]
 

Returns the current perspective setting.

virtual void QSAxes3D::saveStateToStream (  QDataStream &    stream,
QSObjectFactory *    factory
)  [virtual]
 

Saves all axes and datasets.

Reimplemented from QSAxes.

void QSAxes3D::setAmbientLight (  int    lightness )  [slot]
 

Sets the intensity of the ambient light source. Value has to be in the range <-50, 50>

void QSAxes3D::setAutoscale (  bool    enabled ) 
 

Enables/disables the autoscale. If the autoscale is turned on, the graph size is fitted to the widget area ( when 'distance' is zero ). The graph size may change, when it is turned in the 3d space, to fit exactly to the widget.

void QSAxes3D::setAzimuth (  int    angle )  [slot]
 

Sets the viewpoint position. Azimuth must be in the range < 0 deg, 359 deg >.

void QSAxes3D::setDirectLight (  int    lightness )  [slot]
 

Sets the intensity of the directed light source. Value must be in the range <-50, 50>

See also:
QSPlot3D::setLight

void QSAxes3D::setDistance (  int    d )  [slot]
 

Sets the distance from the viewpoint to the screen. Value must be in the range < -50, 50 >. This means graph has its size in the range from 0% (-50), to 200 % (50). Zero ( 100% ) is default.

void QSAxes3D::setEdgeLength (  double    xEdge,
double    yEdge,
double    zEdge
) 
 

Sets lenghts of the edges of the axis cube.

void QSAxes3D::setElevation (  int    angle )  [slot]
 

Sets the viewpoint position. Elevation must be in the range <-90 deg, 90 deg>

void QSAxes3D::setFocusDistance (  int    d )  [slot]
 

Sets the distance from the screen to the focus point. Value must be in the range < -50, 50 >. This means almost the same as 'distance()' for -50 and almost INF for (50). Default is 0.

See also:
QSPlot3D::setPerspective

void QSAxes3D::setLight (  bool    enabled ) 
 

Enables/disables the light source.

void QSAxes3D::setLightAzimuth (  int    azimuth )  [slot]
 

Sets the direction of the light source. Value must be in the range <0, 359> deg. Light source is always directed to the center of the axis box.

See also:
QSPlot3D::setLight

void QSAxes3D::setLightElevation (  int    elevation )  [slot]
 

Sets the direction of the light source. Value is in the range < -90, 90 deg >.

See also:
QSPlot3D::setLight

void QSAxes3D::setPerspective (  bool    enabled ) 
 

Enables/disables the perspective projection.

void QSAxes3D::setWallThickness (  double    xy,
double    xz,
double    yz
) 
 

Sets a thickness of the axis walls.

void QSAxes3D::setXEdgeLength (  double    lenght ) 
 

Sets lenght of the x edge.

void QSAxes3D::setXYWallThickness (  double    thickness ) 
 

Sets a thickness of the xy wall.

void QSAxes3D::setXZWallThickness (  double    thickness ) 
 

Sets a thickness of the xz wall.

void QSAxes3D::setYEdgeLength (  double    lenght ) 
 

Sets lenght of the x edge.

void QSAxes3D::setYZWallThickness (  double    thickness ) 
 

Sets a thickness of the yz wall.

void QSAxes3D::setZEdgeLength (  double    lenght ) 
 

Sets lenght of the x edge.

void QSAxes3D::stop (    )  [virtual]
 

Reimplemented from QSPlot::stop .

Reimplemented from QSAxes.

double QSAxes3D::xEdgeLength (    )  const [inline]
 

Returns the lenght of the x edge.

double QSAxes3D::xyWallThickness (    )  const [inline]
 

Returns a thickness of the xy wall.

double QSAxes3D::xzWallThickness (    )  const [inline]
 

Returns a thickness of the xz wall.

double QSAxes3D::yEdgeLength (    )  const [inline]
 

Returns the lenght of the y edge.

double QSAxes3D::yzWallThickness (    )  const [inline]
 

Returns a thickness of the yz wall.

double QSAxes3D::zEdgeLength (    )  const [inline]
 

Returns the lenght of the z edge.


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