Logo Search packages:      
Sourcecode: labplot version File versions

Qwt3D::SurfacePlot Class Reference

#include <qwt3d_surfaceplot.h>

Inheritance diagram for Qwt3D::SurfacePlot:

Qwt3D::Plot3D

List of all members.


Detailed Description

A class representing Surfaces.

A SurfacePlot ...

Definition at line 13 of file qwt3d_surfaceplot.h.


Public Slots

void disableKeyboard (bool val=true)
 Disable keyboard input.
void disableLighting (bool val=true)
 Turn Lighting on or off.
void disableMouse (bool val=true)
 Disable mouse input.
void enableKeyboard (bool val=true)
 Enable keyboard input.
void enableLighting (bool val=true)
 Turn Lighting on or off.
void enableMouse (bool val=true)
 Enable mouse input.
virtual bool save (QString const &fileName, QString const &format)
 Saves content.
virtual bool savePixmap (QString const &fileName, QString const &format)
virtual bool saveVector (QString const &fileName, QString const &format, VectorWriter::TEXTMODE text, VectorWriter::SORTMODE sortmode)
 Saves content to vector format.
void setLightRotation (double xVal, double yVal, double zVal, unsigned idx=0)
void setLightShift (double xVal, double yVal, double zVal, unsigned idx=0)
void setOrtho (bool)
void setResolution (int)
void setRotation (double xVal, double yVal, double zVal)
void setScale (double xVal, double yVal, double zVal)
void setShift (double xVal, double yVal, double zVal)
void setViewportShift (double xVal, double yVal)
void setZoom (double)

Signals

void projectionChanged (bool)
 Emitted, if the projection mode is changed.
void resolutionChanged (int)
void rotationChanged (double xAngle, double yAngle, double zAngle)
 Emitted, if the rotation is changed.
void scaleChanged (double xScale, double yScale, double zScale)
 Emitted, if the scaling is changed.
void shiftChanged (double xShift, double yShift, double zShift)
 Emitted, if the shift is changed.
void vieportShiftChanged (double xShift, double yShift)
 Emitted, if the viewport shift is changed.
void zoomChanged (double)
 Emitted, if the zoom is changed.

Public Member Functions

virtual Qwt3D::EnrichmentaddEnrichment (Qwt3D::Enrichment const &)
 Add an Enrichment.
void assignKeyboard (int xrot_n, int xrot_p, int yrot_n, int yrot_p, int zrot_n, int zrot_p, int xscale_n, int xscale_p, int yscale_n, int yscale_p, int zscale_n, int zscale_p, int zoom_n, int zoom_p, int xshift_n, int xshift_p, int yshift_n, int yshift_p)
void assignMouse (int xrot, int yrot, int zrot, int xscale, int yscale, int zscale, int zoom, int xshift, int yshift)
Qwt3D::RGBA backgroundRGBAColor () const
 Returns the widgets background color.
void blowout (unsigned light=0)
 Turn light off.
Qwt3D::CoordinateSystemcoordinates ()
 Returns pointer to CoordinateSystem object.
void createCoordinateSystem (Qwt3D::Triple beg, Qwt3D::Triple end)
bool createDataRepresentation (Qwt3D::TripleField const &data, Qwt3D::CellField const &poly)
 Equivalent to loadFromData();.
bool createDataRepresentation (double **data, unsigned int columns, unsigned int rows, double minx, double maxx, double miny, double maxy)
 Equivalent to loadFromData();.
bool createDataRepresentation (Qwt3D::Triple **data, unsigned int columns, unsigned int rows, bool uperiodic=false, bool vperiodic=false)
 Equivalent to loadFromData();.
const ColordataColor () const
 Returns data color object.
virtual bool degrade (Qwt3D::Enrichment *)
 Remove an Enrichment.
std::pair< int, int > facets () const
 Returns the number of mesh cells for the ORIGINAL data.
Qwt3D::FLOORSTYLE floorStyle () const
 Return floor style.
bool hasData () const
 Returns true if valid data available, false else.
Qwt3D::ParallelEpiped hull () const
 Returns rectangular hull.
void illuminate (unsigned light=0)
 Turn light on.
int isolines () const
 Returns number of isolines.
bool keyboardEnabled () const
void keySpeed (double &rot, double &scale, double &shift) const
 Gets speed for keyboard driven transformations.
Qwt3D::ColorLegendlegend ()
 Returns pointer to ColorLegend object.
bool lightingEnabled () const
bool loadFromData (Qwt3D::TripleField const &data, Qwt3D::CellField const &poly)
bool loadFromData (double **data, unsigned int columns, unsigned int rows, double minx, double maxx, double miny, double maxy)
bool loadFromData (Qwt3D::Triple **data, unsigned int columns, unsigned int rows, bool uperiodic=false, bool vperiodic=false)
Qwt3D::RGBA meshColor () const
 Returns color for data mesh.
double meshLineWidth () const
 Returns line width for data mesh.
bool mouseEnabled () const
 Returns true, if the widget accept mouse input from the user.
double normalLength () const
 Returns relative length of normals.
int normalQuality () const
 Returns plotting quality of normal arrows.
bool normals () const
 Returns true, if normal drawing is on.
bool ortho () const
 Returns orthogonal (true) or perspective (false) projection.
Qwt3D::PLOTSTYLE plotStyle () const
double polygonOffset () const
 Returns relative value for polygon offset [0..1].
int resolution () const
 Returns data resolution (1 means all data).
void setBackgroundColor (Qwt3D::RGBA rgba)
 Sets widgets background color.
void setCoordinateStyle (Qwt3D::COORDSTYLE st)
 Sets style of coordinate system.
void setDataColor (Color *col)
 Sets new data color object.
void setFloorStyle (Qwt3D::FLOORSTYLE val)
 Sets floor style.
void setIsolines (int isolines)
void setKeySpeed (double rot, double scale, double shift)
 Sets speed for keyboard driven transformations.
void setLightComponent (GLenum property, double intensity, unsigned light=0)
void setLightComponent (GLenum property, double r, double g, double b, double a=1.0, unsigned light=0)
void setMaterialComponent (GLenum property, double intensity)
void setMaterialComponent (GLenum property, double r, double g, double b, double a=1.0)
void setMeshColor (Qwt3D::RGBA rgba)
 Sets color for data mesh.
void setMeshLineWidth (double lw)
 Sets line width for data mesh.
void setNormalLength (double val)
 Sets length of normals in percent per hull diagonale.
void setNormalQuality (int val)
 Increases plotting quality of normal arrows.
Qwt3D::EnrichmentsetPlotStyle (Qwt3D::Enrichment const &val)
void setPlotStyle (Qwt3D::PLOTSTYLE val)
void setPolygonOffset (double d)
void setShading (Qwt3D::SHADINGSTYLE val)
void setShininess (double exponent)
void setSmoothMesh (bool val)
 Enables/disables smooth data mesh lines. Default is false.
void setTitle (const QString &title)
 Set caption text (one row only).
void setTitleColor (Qwt3D::RGBA col)
 Set caption color.
void setTitleFont (const QString &family, int pointSize, int weight=QFont::Normal, bool italic=false)
void setTitlePosition (double rely, double relx=0.5, Qwt3D::ANCHOR=Qwt3D::TopCenter)
Qwt3D::SHADINGSTYLE shading () const
 Returns shading style.
void showColorLegend (bool)
void showNormals (bool)
 Draw normals to every vertex.
bool smoothDataMesh () const
 True if mesh antialiasing is on.
 SurfacePlot (QWidget *parent=0, const char *name=0)
void updateData ()
 Recalculate data.
void updateNormals ()
 Recalculates surface normals;.
Qwt3D::EnrichmentuserStyle () const
 Returns current Enrichment object used for plotting styles (if set, zero else).
double xLightRotation (unsigned idx=0) const
 Returns Light 'idx' rotation around X axis [-360..360] (some angles are equivalent).
double xLightShift (unsigned idx=0) const
 Returns shift of Light 'idx 'along X axis (object coordinates).
double xRotation () const
 Returns rotation around X axis [-360..360] (some angles are equivalent).
double xScale () const
 Returns scaling for X values [0..inf].
double xShift () const
 Returns shift along X axis (object coordinates).
double xViewportShift () const
 Returns relative shift [-1..1] along X axis (view coordinates).
double yLightRotation (unsigned idx=0) const
 Returns Light 'idx' rotation around Y axis [-360..360] (some angles are equivalent).
double yLightShift (unsigned idx=0) const
 Returns shift of Light 'idx 'along Y axis (object coordinates).
double yRotation () const
 Returns rotation around Y axis [-360..360] (some angles are equivalent).
double yScale () const
 Returns scaling for Y values [0..inf].
double yShift () const
 Returns shift along Y axis (object coordinates).
double yViewportShift () const
 Returns relative shift [-1..1] along Y axis (view coordinates).
double zLightRotation (unsigned idx=0) const
 Returns Light 'idx' rotation around Z axis [-360..360] (some angles are equivalent).
double zLightShift (unsigned idx=0) const
 Returns shift of Light 'idx 'along Z axis (object coordinates).
double zoom () const
 Returns zoom (0..inf).
double zRotation () const
 Returns rotation around Z axis [-360..360] (some angles are equivalent).
double zScale () const
 Returns scaling for Z values [0..inf].
double zShift () const
 Returns shift along Z axis (object coordinates).

Protected Types

typedef EnrichmentList::iterator ELIT
typedef std::list
< Qwt3D::Enrichment * > 
EnrichmentList
enum  OBJECTS { DataObject, LegendObject, NormalObject, DisplayListSize }

Protected Member Functions

void calcNormals (GridData &gdata)
virtual void calculateHull ()
void createCoordinateSystem ()
virtual void createData ()
virtual void createEnrichment (Qwt3D::Enrichment &p)
virtual void createEnrichments ()
virtual void createFloorData ()
void createNormals ()
void createPoints ()
bool initializedGL () const
void initializeGL ()
void keyPressEvent (QKeyEvent *e)
void mouseMoveEvent (QMouseEvent *e)
void mousePressEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void paintGL ()
void readIn (Qwt3D::GridData &gdata, double **data, unsigned int columns, unsigned int rows, double minx, double maxx, double miny, double maxy)
void readIn (Qwt3D::GridData &gdata, Triple **data, unsigned int columns, unsigned int rows)
void resizeGL (int w, int h)
void setHull (Qwt3D::ParallelEpiped p)
void sewPeriodic (GridData &gdata)
void wheelEvent (QWheelEvent *e)

Protected Attributes

Qwt3D::Data * actualData_p
Qwt3D::CoordinateSystem coordinates_p
Qwt3D::Colordatacolor_p
bool datanormals_p
std::vector< GLuint > displaylists_p
EnrichmentList elist_p
double normalLength_p
int normalQuality_p
int resolution_p
Qwt3D::Enrichmentuserplotstyle_p

Private Member Functions

virtual void createDataC ()
virtual void createDataG ()
virtual void createFloorDataC ()
virtual void createFloorDataG ()
void createNormalsC ()
void createNormalsG ()
void Data2Floor ()
void Data2FloorC ()
void Data2FloorG ()
void Isolines2Floor ()
void Isolines2FloorC ()
void Isolines2FloorG ()
void setColorFromVertexC (int node, bool skip=false)
void setColorFromVertexG (int ix, int iy, bool skip=false)

Private Attributes

Qwt3D::CellDataactualDataC_
Qwt3D::GridDataactualDataG_
Qwt3D::FLOORSTYLE floorstyle_

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index