Wt  3.3.9
Public Member Functions | List of all members
Wt::Chart::WGridData Class Reference

Class representing grid-based data for a 3D chart. More...

Inheritance diagram for Wt::Chart::WGridData:
Inheritance graph
[legend]

Public Member Functions

 WGridData (WAbstractItemModel *model)
 Constructor.
 
virtual double minimum (Axis axis) const
 Returns the computed minimum value of this dataseries along the given axis. More...
 
virtual double maximum (Axis axis) const
 Returns the computed maximum value of this dataseries along the given axis. More...
 
void setXSeriesColumn (int modelColumn)
 Set which column in the model is used as x-axis. More...
 
int XSeriesColumn () const
 Returns which column in the model is used as x-axis. More...
 
void setYSeriesRow (int modelRow)
 Set which row in the model is used as y-axis. More...
 
int YSeriesRow () const
 Returns which row in the model is used as y-axis. More...
 
- Public Member Functions inherited from Wt::Chart::WAbstractGridData
 WAbstractGridData (WAbstractItemModel *model)
 Constructor.
 
void setType (Series3DType type)
 Sets the type of representation that will be used for the data. More...
 
virtual Series3DType type () const
 Returns the type of representation that will be used for the data. More...
 
void setSurfaceMeshEnabled (bool enabled=true)
 Enables or disables a mesh for when a surface is drawn. More...
 
bool isSurfaceMeshEnabled ()
 Returns whether the surface-mesh is enabled for this dataseries. More...
 
void setBarWidth (double xWidth, double yWidth)
 Sets the bar-width. More...
 
double barWidthX ()
 Returns the bar-width in the X-axis direction. More...
 
double barWidthY ()
 Returns the bar-width in the Y-axis direction. More...
 
void setPen (const WPen &pen)
 Sets the WPen that is used for drawing the mesh. More...
 
WPen pen () const
 Returns the pen that is used for drawing the mesh. More...
 
std::vector< WSurfaceSelectionpickSurface (int x, int y) const
 Find all points on the surface that are projected to the given pixel. More...
 
WBarSelection pickBar (int x, int y) const
 Return the bar that is closest to the look point at the given pixel. More...
 
void setIsoLevels (const std::vector< double > &isoLevels)
 Set isoline levels. More...
 
const std::vector< double > & isoLevels () const
 Get all of the isoline levels. More...
 
void setIsoColorMap (WAbstractColorMap *colormap)
 Set the color map for the isolines. More...
 
const WAbstractColorMapisoColorMap () const
 Get the color map for the isolines. More...
 
void setClippingMin (Axis axis, float v)
 Set the value below which the data series will be clipped on the given axis. More...
 
float clippingMin (Axis axis) const
 Gets the value below which the data series will be clipped on the given axis. More...
 
JSlotchangeClippingMin (Axis axis)
 JSlot to change the value below which the data series will be clipped on the given axis. More...
 
void setClippingMax (Axis axis, float v)
 Set the value above which the data series will be clipped on the given axis. More...
 
float clippingMax (Axis axis) const
 Gets the value above which the data series will be clipped on the given axis. More...
 
JSlotchangeClippingMax (Axis axis)
 JSlot to change the value above which the data series will be clipped on the given axis. More...
 
void setClippingLinesEnabled (bool clippingLinesEnabled)
 Sets whether clipping lines should be drawn where a surface is clipped. More...
 
bool clippingLinesEnabled () const
 Returns whether clipping lines are enabled. More...
 
void setClippingLinesColor (WColor color)
 Sets the color of the clipping lines. More...
 
WColor clippingLinesColor () const
 Gets the color of the clipping lines. More...
 
virtual void initializeGL ()
 Initialize GL resources. More...
 
virtual void paintGL () const
 Update the client-side painting function. More...
 
virtual void updateGL ()
 Update GL resources. More...
 
virtual void resizeGL ()
 Act on resize events. More...
 
virtual void deleteAllGLResources ()
 Delete GL resources. More...
 
- Public Member Functions inherited from Wt::Chart::WAbstractDataSeries3D
 WAbstractDataSeries3D (WAbstractItemModel *model)
 Constructor. More...
 
void setTitle (const WString &name)
 Sets the title of this dataseries. More...
 
const WStringtitle () const
 Returns the title of this dataseries. More...
 
void setModel (WAbstractItemModel *model)
 Sets a model from which the dataseries gets its data. More...
 
WAbstractItemModelmodel () const
 Returns a pointer to the model used by this dataseries. More...
 
const WCartesian3DChartchart () const
 Returns a const pointer to the WCartesian3DChart on which the dataseries is drawn.
 
void setPointSize (double size)
 Sets the pointsize for drawing this dataseries. More...
 
double pointSize () const
 Returns the pointsize for drawing this dataseries. More...
 
void setPointSprite (const std::string &image)
 Set the point sprite used for drawing this dataseries. More...
 
const std::string & pointSprite () const
 Returns the point sprite used for drawing this dataseries. More...
 
void setColorMap (WAbstractColorMap *colormap)
 Sets the colormap for this dataseries. More...
 
const WAbstractColorMapcolorMap () const
 Returns the colormap used by this dataseries. More...
 
void setColorMapVisible (bool enabled=true)
 Sets whether the colormap that is used should be shown alongside the chart in the form of a legend. More...
 
bool colorMapVisible () const
 Returns whether the colormap is shown alongside the chart in the form of a legend. More...
 
void setColorMapSide (Side side)
 Sets whether the colormap is shown on the left or right. More...
 
Side colorMapSide () const
 Returns on which side the colormap is shown. More...
 
void setLegendEnabled (bool enabled=true)
 Sets whether this dataseries is included in the chart-legend. More...
 
bool isLegendEnabled () const
 Returns whether this dataseries is included in the chart-legend. More...
 
void setHidden (bool enabled=true)
 Sets if this dataseries is hidden. More...
 
bool isHidden () const
 Returns if this dataseries is hidden. More...
 
- Public Member Functions inherited from Wt::WObject
 WObject (WObject *parent=0)
 Create a WObject with a given parent object. More...
 
virtual ~WObject ()
 Destructor. More...
 
virtual const std::string id () const
 Returns the (unique) identifier for this object. More...
 
virtual void setObjectName (const std::string &name)
 Sets an object name. More...
 
virtual std::string objectName () const
 Returns the object name. More...
 
void resetLearnedSlots ()
 Resets learned stateless slot implementations. More...
 
template<class T >
void resetLearnedSlot (void(T::*method)())
 Resets a learned stateless slot implementation. More...
 
template<class T >
WStatelessSlot * implementStateless (void(T::*method)())
 Declares a slot to be stateless and learn client-side behaviour on first invocation. More...
 
template<class T >
WStatelessSlot * implementStateless (void(T::*method)(), void(T::*undoMethod)())
 Declares a slot to be stateless and learn client-side behaviour in advance. More...
 
void isNotStateless ()
 Marks the current function as not stateless. More...
 
template<class T >
WStatelessSlot * implementJavaScript (void(T::*method)(), const std::string &jsCode)
 Provides a JavaScript implementation for a method. More...
 
void addChild (WObject *child)
 Adds a child object. More...
 
virtual void removeChild (WObject *child)
 Removes a child object. More...
 
const std::vector< WObject * > & children () const
 Returns the children.
 
WObjectparent () const
 Returns the parent object.
 

Additional Inherited Members

- Public Types inherited from Wt::WObject
typedef void(WObject::* Method) ()
 Typedef for a WObject method without arguments.
 
- Protected Member Functions inherited from Wt::WObject
virtual WStatelessSlot * getStateless (Method method)
 On-demand stateless slot implementation. More...
 
- Static Protected Member Functions inherited from Wt::WObject
static WObjectsender ()
 Returns the sender of the current slot call. More...
 

Detailed Description

Class representing grid-based data for a 3D chart.

General information can be found at WAbstractDataSeries3D. The model for this dataseries is structured as a table. One of the columns (by default index 0) contains the x-axis values, one of the rows (by default index 0) contains the y-axis values. All other values in the table contain the z-value corresponding to the x- and y-values with the same column- and row-index.

Member Function Documentation

double Wt::Chart::WGridData::maximum ( Axis  axis) const
virtual

Returns the computed maximum value of this dataseries along the given axis.

See also
minimum()

Implements Wt::Chart::WAbstractGridData.

double Wt::Chart::WGridData::minimum ( Axis  axis) const
virtual

Returns the computed minimum value of this dataseries along the given axis.

See also
maximum()

Implements Wt::Chart::WAbstractGridData.

void Wt::Chart::WGridData::setXSeriesColumn ( int  modelColumn)

Set which column in the model is used as x-axis.

The default column that is used has index 0.

void Wt::Chart::WGridData::setYSeriesRow ( int  modelRow)

Set which row in the model is used as y-axis.

The default row that is used has index 0.

int Wt::Chart::WGridData::XSeriesColumn ( ) const

Returns which column in the model is used as x-axis.

See also
setXSeriesColumn()
int Wt::Chart::WGridData::YSeriesRow ( ) const

Returns which row in the model is used as y-axis.

See also
setYSeriesRow()

Generated on Tue Nov 21 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11