QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
Qwt3D::GraphPlot Class Referenceabstract

Base class for graph plotting widgets. More...

#include <qwt3d_graphplot.h>

Inheritance diagram for Qwt3D::GraphPlot:
Qwt3D::Plot3D

Public Member Functions

 GraphPlot (QWidget *parent=0, const char *name=0)
 
- Public Member Functions inherited from Qwt3D::Plot3D
 Plot3D (QWidget *parent=0)
 Constructs a Plot3D widget.
 
virtual ~Plot3D ()
 Destructor - releases allocated resources .
 
QPixmap renderPixmap (int w=0, int h=0, bool useContext=false)
 
void updateData ()
 Updates OpenGL data representation .
 
void createCoordinateSystem (Qwt3D::Triple beg, Qwt3D::Triple end)
 Creates a coordinate system with generating corners beg and end.
 
Qwt3D::CoordinateSystemcoordinates ()
 
Qwt3D::ColorLegendlegend ()
 
double xRotation () const
 
double yRotation () const
 
double zRotation () const
 
double xShift () const
 
double yShift () const
 
double zShift () const
 
double xViewportShift () const
 
double yViewportShift () const
 
double xScale () const
 
double yScale () const
 
double zScale () const
 
double zoom () const
 
bool ortho () const
 
void setPlotStyle (Qwt3D::PLOTSTYLE val)
 Sets plot style for the standard plotting types.
 
Qwt3D::EnrichmentsetPlotStyle (Qwt3D::Enrichment const &val)
 Sets plot style to Qwt3D::USER with an associated enrichment object.
 
Qwt3D::PLOTSTYLE plotStyle () const
 
Qwt3D::EnrichmentuserStyle () const
 
void setShading (Qwt3D::SHADINGSTYLE val)
 Sets shading style.
 
Qwt3D::SHADINGSTYLE shading () const
 
void setIsolines (int isolines)
 Sets number of isolines.
 
int isolines () const
 
void setSmoothMesh (bool val)
 
bool smoothDataMesh () const
 
void setBackgroundColor (Qwt3D::RGBA rgba)
 Sets the background color.
 
Qwt3D::RGBA backgroundRGBAColor () const
 
void setMeshColor (Qwt3D::RGBA rgba)
 Sets the mesh color.
 
Qwt3D::RGBA meshColor () const
 
void setMeshLineWidth (double lw)
 Sets the mesh line width.
 
double meshLineWidth () const
 
void setDataColor (Color *col)
 Assigns a new coloring object for the data.
 
const ColordataColor () const
 
virtual Qwt3D::EnrichmentaddEnrichment (Qwt3D::Enrichment const &)
 Adds an enrichment object to the plot.
 
virtual bool degrade (Qwt3D::Enrichment *)
 Removes an enrichment object from the plot.
 
Qwt3D::ParallelEpiped hull () const
 
void showColorLegend (bool)
 Shows or hides the color legend.
 
void setCoordinateStyle (Qwt3D::COORDSTYLE st)
 Sets style of coordinate system.
 
void setPolygonOffset (double d)
 Sets polygon offset.
 
double polygonOffset () const
 
void setTitlePosition (double rely, double relx=0.5, Qwt3D::ANCHOR=Qwt3D::TopCenter)
 Sets relative caption position.
 
void setTitleFont (const QString &family, int pointSize, int weight=QFont::Normal, bool italic=false)
 Sets the caption font.
 
void setTitleColor (Qwt3D::RGBA col)
 
void setTitle (const QString &title)
 
void assignMouse (MouseState xrot, MouseState yrot, MouseState zrot, MouseState xscale, MouseState yscale, MouseState zscale, MouseState zoom, MouseState xshift, MouseState yshift)
 
bool mouseEnabled () const
 
void assignKeyboard (KeyboardState xrot_n, KeyboardState xrot_p, KeyboardState yrot_n, KeyboardState yrot_p, KeyboardState zrot_n, KeyboardState zrot_p, KeyboardState xscale_n, KeyboardState xscale_p, KeyboardState yscale_n, KeyboardState yscale_p, KeyboardState zscale_n, KeyboardState zscale_p, KeyboardState zoom_n, KeyboardState zoom_p, KeyboardState xshift_n, KeyboardState xshift_p, KeyboardState yshift_n, KeyboardState yshift_p)
 
bool keyboardEnabled () const
 
void setKeySpeed (double rot, double scale, double shift)
 
void keySpeed (double &rot, double &scale, double &shift) const
 
bool lightingEnabled () const
 
void illuminate (unsigned light=0)
 
void blowout (unsigned light=0)
 
void setMaterialComponent (GLenum property, double r, double g, double b, double a=1.0)
 
void setMaterialComponent (GLenum property, double intensity)
 
void setShininess (double exponent)
 
void setLightComponent (GLenum property, double r, double g, double b, double a=1.0, unsigned light=0)
 
void setLightComponent (GLenum property, double intensity, unsigned light=0)
 
double xLightRotation (unsigned idx=0) const
 
double yLightRotation (unsigned idx=0) const
 
double zLightRotation (unsigned idx=0) const
 
double xLightShift (unsigned idx=0) const
 
double yLightShift (unsigned idx=0) const
 
double zLightShift (unsigned idx=0) const
 
bool hasData () const
 

Protected Member Functions

virtual void createData ()=0
 
- Protected Member Functions inherited from Qwt3D::Plot3D
void initializeGL ()
 Sets up the OpenGL rendering state .
 
void paintGL ()
 Paints the widget's content .
 
void resizeGL (int w, int h)
 Sets up the OpenGL view port.
 
void mousePressEvent (QMouseEvent *e)
 
void mouseReleaseEvent (QMouseEvent *e)
 
void mouseMoveEvent (QMouseEvent *e)
 
void wheelEvent (QWheelEvent *e)
 
void keyPressEvent (QKeyEvent *e)
 
virtual void calculateHull ()=0
 
virtual void createEnrichment (Qwt3D::Enrichment &)
 
virtual void createEnrichments ()
 
void createCoordinateSystem ()
 Creates a coordinate system from data.
 
void setHull (Qwt3D::ParallelEpiped p)
 
bool initializedGL () const
 

Additional Inherited Members

- Public Slots inherited from Qwt3D::Plot3D
void setRotation (double xVal, double yVal, double zVal)
 
void setShift (double xVal, double yVal, double zVal)
 
void setViewportShift (double xVal, double yVal)
 
void setScale (double xVal, double yVal, double zVal)
 
void setZoom (double)
 
void setOrtho (bool)
 Sets up orthogonal or perspective mode and updates widget.
 
void enableMouse (bool val=true)
 
void disableMouse (bool val=true)
 
void enableKeyboard (bool val=true)
 
void disableKeyboard (bool val=true)
 
void enableLighting (bool val=true)
 
void disableLighting (bool val=true)
 
void setLightRotation (double xVal, double yVal, double zVal, unsigned int idx=0)
 
void setLightShift (double xVal, double yVal, double zVal, unsigned int idx=0)
 
virtual bool savePixmap (QString const &fileName, QString const &format)
 Saves the framebuffer to an image file.
 
virtual bool saveVector (QString const &fileName, QString const &format, VectorWriter::TEXTMODE text, VectorWriter::SORTMODE sortmode)
 Writes vector data supported by gl2ps.
 
virtual bool save (QString const &fileName, QString const &format)
 Saves content in one of the registered output formats.
 
- Signals inherited from Qwt3D::Plot3D
void rotationChanged (double xAngle, double yAngle, double zAngle)
 Signal emitted when the rotation is changed.
 
void shiftChanged (double xShift, double yShift, double zShift)
 Signal emitted when the shift is changed.
 
void vieportShiftChanged (double xShift, double yShift)
 Signal emitted when the viewport shift is changed.
 
void scaleChanged (double xScale, double yScale, double zScale)
 Signal emitted when the scaling is changed.
 
void zoomChanged (double)
 Signal emitted when the zoom is changed.
 
void projectionChanged (bool)
 Signal emitted when the projection mode is changed.
 
- Protected Types inherited from Qwt3D::Plot3D
enum  OBJECTS { DataObject , LegendObject , NormalObject , DisplayListSize }
 
using EnrichmentList = std::list< Qwt3D::Enrichment * >
 
using ELIT = EnrichmentList::iterator
 
- Protected Attributes inherited from Qwt3D::Plot3D
Qwt3D::CoordinateSystem coordinates_p
 
Qwt3D::Colordatacolor_p
 
Qwt3D::Enrichmentuserplotstyle_p
 
EnrichmentList elist_p
 
std::vector< GLuint > displaylists_p
 
Qwt3D::DataactualData_p
 

Detailed Description

Base class for graph plotting widgets.

Member Function Documentation

◆ createData()

virtual void Qwt3D::GraphPlot::createData ( )
protectedpure virtual

Implements Qwt3D::Plot3D.


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