#include <qwt3d_surfaceplot.h>
Inheritance diagram for SurfacePlot:
Public Slots | |
void | setResolution (int) |
Signals | |
void | resolutionChanged (int) |
Public Member Functions | |
SurfacePlot (QWidget *parent=0, const QGLWidget *shareWidget=0) | |
void | updateNormals () |
int | resolution () const |
std::pair< int, int > | facets () const |
bool | loadFromData (Qwt3D::Triple **data, unsigned int columns, unsigned int rows, bool uperiodic=false, bool vperiodic=false) |
bool | loadFromData (double **data, unsigned int columns, unsigned int rows, double minx, double maxx, double miny, double maxy) |
bool | loadFromData (Qwt3D::TripleField const &data, Qwt3D::CellField const &poly) |
bool | createDataRepresentation (Qwt3D::Triple **data, unsigned int columns, unsigned int rows, bool uperiodic=false, bool vperiodic=false) |
bool | createDataRepresentation (double **data, unsigned int columns, unsigned int rows, double minx, double maxx, double miny, double maxy) |
bool | createDataRepresentation (Qwt3D::TripleField const &data, Qwt3D::CellField const &poly) |
Qwt3D::FLOORSTYLE | floorStyle () const |
void | setFloorStyle (Qwt3D::FLOORSTYLE val) |
void | showNormals (bool) |
bool | normals () const |
void | setNormalLength (double val) |
double | normalLength () const |
void | setNormalQuality (int val) |
int | normalQuality () const |
Protected Member Functions | |
virtual void | calculateHull () |
virtual void | createData () |
virtual void | createEnrichment (Qwt3D::Enrichment &p) |
virtual void | createFloorData () |
void | createNormals () |
void | createPoints () |
void | readIn (Qwt3D::GridData &gdata, Triple **data, unsigned int columns, unsigned int rows) |
void | readIn (Qwt3D::GridData &gdata, double **data, unsigned int columns, unsigned int rows, double minx, double maxx, double miny, double maxy) |
void | calcNormals (GridData &gdata) |
void | sewPeriodic (GridData &gdata) |
Protected Attributes | |
bool | datanormals_p |
double | normalLength_p |
int | normalQuality_p |
int | resolution_p |
SurfacePlot | ( | QWidget * | parent = 0 , |
|
const QGLWidget * | shareWidget = 0 | |||
) |
Initializes with dataNormals()==false, NOFLOOR, resolution() == 1
void updateNormals | ( | ) |
Recalculates surface normals;.
int resolution | ( | ) | const [inline] |
Returns data resolution (1 means all data).
pair< int, int > facets | ( | ) | const |
Returns the number of mesh cells for the ORIGINAL data.
The returned value is not affected by resolution(). The pair gives (columns,rows) for grid data , (number of cells,1) for free formed data (datatype() == POLYGON) and (0,0) else
bool loadFromData | ( | Qwt3D::Triple ** | data, | |
unsigned int | columns, | |||
unsigned int | rows, | |||
bool | uperiodic = false , |
|||
bool | vperiodic = false | |||
) |
Convert user grid data to internal vertex structure. See also NativeReader::read() and Function::create()
bool loadFromData | ( | double ** | data, | |
unsigned int | columns, | |||
unsigned int | rows, | |||
double | minx, | |||
double | maxx, | |||
double | miny, | |||
double | maxy | |||
) |
Convert user grid data to internal vertex structure. See also NativeReader::read() and Function::create()
bool loadFromData | ( | Qwt3D::TripleField const & | data, | |
Qwt3D::CellField const & | poly | |||
) |
Convert user (non-rectangular) mesh based data to internal structure. See also Qwt3D::TripleField and Qwt3D::CellField
bool createDataRepresentation | ( | Qwt3D::Triple ** | data, | |
unsigned int | columns, | |||
unsigned int | rows, | |||
bool | uperiodic = false , |
|||
bool | vperiodic = false | |||
) | [inline] |
bool createDataRepresentation | ( | double ** | data, | |
unsigned int | columns, | |||
unsigned int | rows, | |||
double | minx, | |||
double | maxx, | |||
double | miny, | |||
double | maxy | |||
) | [inline] |
bool createDataRepresentation | ( | Qwt3D::TripleField const & | data, | |
Qwt3D::CellField const & | poly | |||
) | [inline] |
Qwt3D::FLOORSTYLE floorStyle | ( | ) | const [inline] |
Return floor style.
void setFloorStyle | ( | Qwt3D::FLOORSTYLE | val | ) | [inline] |
Sets floor style.
void showNormals | ( | bool | ) |
Draw normals to every vertex.
bool normals | ( | ) | const [inline] |
Returns true
, if normal drawing is on.
void setNormalLength | ( | double | val | ) |
Sets length of normals in percent per hull diagonale.
Values < 0 or > 1 are ignored
double normalLength | ( | ) | const [inline] |
Returns relative length of normals.
void setNormalQuality | ( | int | val | ) |
Increases plotting quality of normal arrows.
Values < 3 are ignored
int normalQuality | ( | ) | const [inline] |
Returns plotting quality of normal arrows.
void setResolution | ( | int | res | ) | [slot] |
Sets data resolution (res == 1 original resolution) and updates widget If res < 1, the function does nothing
void calculateHull | ( | ) | [protected, virtual] |