#include <qwt3d_surfaceplot.h>
Public Member Functions | |
SurfacePlot (QWidget *parent=0, const QGLWidget *shareWidget=0) | |
void | showNormals (bool) |
bool | normals () const |
void | setNormalLength (double val) |
double | normalLength () const |
void | setNormalQuality (int val) |
int | normalQuality () const |
void | updateNormals () |
Qwt3D::FLOORSTYLE | floorStyle () const |
void | setFloorStyle (Qwt3D::FLOORSTYLE val) |
Protected Member Functions | |
virtual void | createNormals ()=0 |
virtual void | createFloorOpenGlData () |
void | drawIntersection (const Qwt3D::TripleField &intersection, Qwt3D::RGBA col) |
virtual void | data2Floor ()=0 |
virtual void | isolines2Floor ()=0 |
Protected Attributes | |
bool | datanormals_p |
double | normalLength_p |
int | normalQuality_p |
SurfacePlot | ( | QWidget * | parent = 0 , |
|
const QGLWidget * | shareWidget = 0 | |||
) |
Initializes with dataNormals()==false //todo
void showNormals | ( | bool | b | ) |
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 updateNormals | ( | ) |
Recalculates surface normals;.
Qwt3D::FLOORSTYLE floorStyle | ( | ) | const [inline] |
Return floor style.
void setFloorStyle | ( | Qwt3D::FLOORSTYLE | val | ) | [inline] |
Sets floor style.