SurfacePlot Class Reference

A class representing Surfaces. More...

#include <qwt3d_surfaceplot.h>

Inheritance diagram for SurfacePlot:

Plot3D List of all members.

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

Detailed Description

A SurfacePlot ...


Constructor & Destructor Documentation

SurfacePlot ( QWidget *  parent = 0,
const QGLWidget *  shareWidget = 0 
)

Initializes with dataNormals()==false, NOFLOOR, resolution() == 1


Member Function Documentation

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]

Equivalent to loadFromData();.

Deprecated:
Use loadFromData instead

bool createDataRepresentation ( double **  data,
unsigned int  columns,
unsigned int  rows,
double  minx,
double  maxx,
double  miny,
double  maxy 
) [inline]

Equivalent to loadFromData();.

Deprecated:
Use loadFromData instead

bool createDataRepresentation ( Qwt3D::TripleField const &  data,
Qwt3D::CellField const &  poly 
) [inline]

Equivalent to loadFromData();.

Deprecated:
Use loadFromData instead

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]

Calculates the smallest x-y-z parallelepiped enclosing the data. It can be accessed by hull();

Implements Plot3D.


The documentation for this class was generated from the following files:
Generated on Mon Jun 25 18:47:29 2007 for QwtPlot3D API by  doxygen 1.5.1