#include <qscontour.h>
Inheritance diagram for QSNonGriddedContour:
Public Types | |
enum | Channels { VXCoord = 0, VYCoord = 1, VZCoord = 2, Triangles = 3 } |
Public Methods | |
QSNonGriddedContour (QSAxes *parent, const char *name=0) | |
virtual | ~QSNonGriddedContour () |
virtual ColumnType | columnType (int channel, int column) const |
virtual QString | channelVariable (int channel) const |
virtual void | loadStateFromStream (QDataStream &stream, QSObjectFactory *factory) |
virtual void | saveStateToStream (QDataStream &stream, QSObjectFactory *factory) |
Protected Methods | |
virtual bool | getAxisRange (QSAxis *axis, double &min, double &max) |
virtual void | dataChanged (int channel=-1) |
virtual bool | prepare () |
virtual void | allocRuntimeData () |
virtual void | freeRuntimeData () |
virtual int | triangles () |
virtual void | getTriangle (int number, QSPt3f pts[3], double level=-10.0) |
virtual bool | getNeighbouringTriangle (int *number, int *edge) |
virtual int | triangleAtPos (const QSPt2f &pos) |
virtual QString | vertexInfo (int t, int v, QSPt2f &pos) |
virtual void | drawGrid () |
virtual void | drawPoints () |
Data format is described in QSNonGriddedContour::Channels . See also QSAxes::plotAdd() .
|
Descriptive names of data channels. See QSData::setMatrix(). VXCoords, VYCoord, VZCoord must have a one column and the same number of rows. VXCoord contains x coordinates, VYCords contains y coordinates, and VZCoord contains z coordinates. The same row in all those matrices defines a one data point, so we have rows(VXCoord) data points. Triangles must have three columns and must contain indices to rows in Coord matrices, so one index defines one point. One row in Triangles defines a one traingle. Such matrix can be calculated by triangulating the given set of points, Traiangles is required because this object just can't draw contour using only data points. |
|
Destructor. |
|
Destructor. |
|
Called from start(). Everyting which goes to start() may be put here. inits m_curr_driver, m_curr_dpi, m_csize, m_cpos fields with values taken from parent axes Reimplemented from QSContour. |
|
Returns a variable name ( 'x', 'y', 'z', 'v' etc ) for use in formulas. Reimplemented from QSData. |
|
Metadata - type of the given column. It should be reimplemented in derived classes. Used to create editors in sheet Reimplemented from QSData. |
|
This function is called after data has changed by 'setMatrix' method. You should also call it by hand, when you have changed the data in any matrix. It informs derived classes to mark old max and min data values as invalid, and informs them that they should repaint themselves. Default implementation calls dataChanging( this, channel ), Reimplemented from QSData. |
|
Draw grid ( lines connecting data points ) Implements QSContour. |
|
Draw point marks Implements QSContour. |
|
Called from end().Everyting which goes to end() may be put here. Reimplemented from QSContour. |
|
Must be reimplemented and return data range on each axis or false when no data is set. This functions is always called outside 'start()' and 'end()' ! Reimplemented from QSPlot. |
|
Returns if there is a neighbouring triangle. In 'number' and 'edge' returns a neighbouring triangle and edge of triangle 'number' and edge 'edge'. Implements QSContour. |
|
Returns triangle number 'number'. The first edge is between pts[0] and pts[1] the second one is between pts[1] and pts[2] the third one is between pts[2] and pts[0] point z values must not be equal to level. If there is such point add EPS_VALUE to its z coordinate. see: getNeighboutingTriangle() Implements QSContour. |
|
Restores all graphics atributes Reimplemented from QSContour. |
|
This will be called until it returns true and can be reimplemented for some in the background stuff. Reimplemented from QSContour. |
|
Saves all graphics attributes Reimplemented from QSContour. |
|
Returns a number of a triangle which contains the point 'pos' if any or -1. Used by 'isClicked' and 'posInfo' subroutines. Nothing really nessesary Implements QSContour. |
|
Returns a total number of triangles. Implements QSContour. |
|
Returns info about the vertex 'v' of the triangle 't'. Nothing really nessesary Implements QSContour. |