#include <qsaxes3d.h>
Inheritance diagram for QSAxes3D:
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) |
|
Just see QSGraphicalData::setFill() . |
|
Just see QSGraphicalData::setLine(). |
|
Constructor. |
|
Destructor. |
|
This function is called in 'start()' before drawing starts. Default implementation does nothing. Reimplemented from QSAxes. |
|
Returns the current intensity of the ambient light source . |
|
Returns the current autoscale setting. |
|
Called when all ranges are calculated. Default implementation emits 'sigRangesValid' Reimplemented from QSAxes. |
|
Returns the current azimuth. |
|
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. |
|
Sets all fonts, fills and lines to their default values. |
|
Returns the current intensity of the directed light source . |
|
Returns the current distance. |
|
Draws an axis. It is reimplemented in QSAxes2D and QSAxes3D Reimplemented from QSAxes. |
|
Draws an axis grid. It is reimplemented in QSAxes2D and QSAxes3D Reimplemented from QSAxes. |
|
Reimplemented Implements QSAxes. |
|
Returns the current elevation. |
|
Returns the current focus distance. |
|
This function is called in 'stop()' after drawing stops. Default implementation does nothing. Reimplemented from QSAxes. |
|
Range <0,255> |
|
Reimplemented Reimplemented from QSAxes. |
|
Returns the current light setting. |
|
Returns the current light source direction |
|
Returns the current light source direction. |
|
Restores all axes and datasets. Reimplemented from QSAxes. |
|
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. |
|
OpenGL |
|
Returns transformation. |
|
Reimplemented Implements QSAxes. |
|
Reimpemented Reimplemented from QSAxes. |
|
Returns the current perspective setting. |
|
Saves all axes and datasets. Reimplemented from QSAxes. |
|
Sets the intensity of the ambient light source. Value has to be in the range <-50, 50> |
|
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. |
|
Sets the viewpoint position. Azimuth must be in the range < 0 deg, 359 deg >. |
|
Sets the intensity of the directed light source. Value must be in the range <-50, 50>
|
|
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. |
|
Sets lenghts of the edges of the axis cube. |
|
Sets the viewpoint position. Elevation must be in the range <-90 deg, 90 deg> |
|
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.
|
|
Enables/disables the light source. |
|
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.
|
|
Sets the direction of the light source. Value is in the range < -90, 90 deg >.
|
|
Enables/disables the perspective projection. |
|
Sets a thickness of the axis walls. |
|
Sets lenght of the x edge. |
|
Sets a thickness of the xy wall. |
|
Sets a thickness of the xz wall. |
|
Sets lenght of the x edge. |
|
Sets a thickness of the yz wall. |
|
Sets lenght of the x edge. |
|
Reimplemented from QSPlot::stop . Reimplemented from QSAxes. |
|
Returns the lenght of the x edge. |
|
Returns a thickness of the xy wall. |
|
Returns a thickness of the xz wall. |
|
Returns the lenght of the y edge. |
|
Returns a thickness of the yz wall. |
|
Returns the lenght of the z edge. |