Wt  3.3.8
Public Member Functions | List of all members
Wt::Chart::WStandardChartProxyModel Class Reference

A WAbstractChartModel implementation that wraps a WAbstractItemModel. More...

#include <Wt/Chart/WStandardChartProxyModel>

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

Public Member Functions

 WStandardChartProxyModel (WAbstractItemModel *sourceModel, WObject *parent=0)
 Creates a new WStandardChartProxyModel that wraps the given source model.
 
virtual double data (int row, int column) const WT_CXX11ONLY(override)
 Returns data at a given row and column. More...
 
virtual WString displayData (int row, int column) const WT_CXX11ONLY(override)
 Returns display data at a given row and column. More...
 
virtual WString headerData (int column) const WT_CXX11ONLY(override)
 Returns the given column's header data. More...
 
virtual WString toolTip (int row, int column) const WT_CXX11ONLY(override)
 Returns the tooltip text to use on a given row and column. More...
 
virtual WFlags< ItemFlagflags (int row, int column) const WT_CXX11ONLY(override)
 Returns the item flags for the given row and column. More...
 
virtual WLinklink (int row, int column) const WT_CXX11ONLY(override)
 Returns the link to use on a given row and column. More...
 
virtual const WColormarkerPenColor (int row, int column) const WT_CXX11ONLY(override)
 Returns the marker pen color to use for a given row and column. More...
 
virtual const WColormarkerBrushColor (int row, int column) const WT_CXX11ONLY(override)
 Returns the marker brush color to use for a given row and column. More...
 
virtual const WColorbarPenColor (int row, int column) const WT_CXX11ONLY(override)
 Returns the bar pen color to use for a given row and column. More...
 
virtual const WColorbarBrushColor (int row, int column) const WT_CXX11ONLY(override)
 Returns the bar brush color to use for a given row and column. More...
 
virtual const double * markerScaleFactor (int row, int column) const WT_CXX11ONLY(override)
 Returns the marker scale factor to use for a given row and column. More...
 
virtual int columnCount () const WT_CXX11ONLY(override)
 Returns the number of columns. More...
 
virtual int rowCount () const WT_CXX11ONLY(override)
 Returns the number of rows. More...
 
WAbstractItemModelsourceModel () const
 Returns the wrapped source model.
 
- Public Member Functions inherited from Wt::Chart::WAbstractChartModel
 WAbstractChartModel (WObject *parent=0)
 Creates a new chart model.
 
virtual Signalchanged ()
 A signal that notifies of any change to the model. 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

A WAbstractChartModel implementation that wraps a WAbstractItemModel.

This model delegates all functions to an underlying WAbstractItemModel, using the appropriate roles.

This model also triggers the changed() signal whenever the underlying WAbstractItemModel is changed.

Member Function Documentation

const WColor * Wt::Chart::WStandardChartProxyModel::barBrushColor ( int  row,
int  column 
) const
overridevirtual

Returns the bar brush color to use for a given row and column.

Returns the result of WAbstractItemModel::data() for the given row and column with the BarBrushColorRole, or null if no color is defined.

See also
WAbstractItemModel::data()

Reimplemented from Wt::Chart::WAbstractChartModel.

const WColor * Wt::Chart::WStandardChartProxyModel::barPenColor ( int  row,
int  column 
) const
overridevirtual

Returns the bar pen color to use for a given row and column.

Returns the result of WAbstractItemModel::data() for the given row and column with the BarPenColorRole, or null if no color is defined.

See also
WAbstractItemModel::data()

Reimplemented from Wt::Chart::WAbstractChartModel.

int Wt::Chart::WStandardChartProxyModel::columnCount ( ) const
overridevirtual

Returns the number of columns.

See also
WAbstractItemModel::columnCount()

Implements Wt::Chart::WAbstractChartModel.

double Wt::Chart::WStandardChartProxyModel::data ( int  row,
int  column 
) const
overridevirtual

Returns data at a given row and column.

Returns the result of WAbstractItemModel::data() for the given row and column with the DisplayRole as a double.

See also
WAbstractItemModel::data()

Implements Wt::Chart::WAbstractChartModel.

WString Wt::Chart::WStandardChartProxyModel::displayData ( int  row,
int  column 
) const
overridevirtual

Returns display data at a given row and column.

Returns the result of WAbstractItemModel::data() for the given row and column with the DisplayRole as a WString.

See also
WAbstractItemModel::data()

Reimplemented from Wt::Chart::WAbstractChartModel.

WFlags< ItemFlag > Wt::Chart::WStandardChartProxyModel::flags ( int  row,
int  column 
) const
overridevirtual

Returns the item flags for the given row and column.

Returns the result of WAbstractItemModel::index(row, column).flags() for the given row and column.

See also
WModelIndex::flags()

Reimplemented from Wt::Chart::WAbstractChartModel.

WString Wt::Chart::WStandardChartProxyModel::headerData ( int  column) const
overridevirtual

Returns the given column's header data.

Returns the result of WAbstractItemModel::headerData() for the given column with the DisplayRole as a WString.

See also
WAbstractItemModel::headerData()

Reimplemented from Wt::Chart::WAbstractChartModel.

WLink * Wt::Chart::WStandardChartProxyModel::link ( int  row,
int  column 
) const
overridevirtual

Returns the link to use on a given row and column.

Returns the result of WAbstractItemModel::data() for the given row and column with the LinkRole as a WLink.

See also
WAbstractItemModel::data()

Reimplemented from Wt::Chart::WAbstractChartModel.

const WColor * Wt::Chart::WStandardChartProxyModel::markerBrushColor ( int  row,
int  column 
) const
overridevirtual

Returns the marker brush color to use for a given row and column.

Returns the result of WAbstractItemModel::data() for the given row and column with the MarkerBrushColorRole, or null if no color is defined.

See also
WAbstractItemModel::data()

Reimplemented from Wt::Chart::WAbstractChartModel.

const WColor * Wt::Chart::WStandardChartProxyModel::markerPenColor ( int  row,
int  column 
) const
overridevirtual

Returns the marker pen color to use for a given row and column.

Returns the result of WAbstractItemModel::data() for the given row and column with the MarkerPenColorRole, or null if no color is defined.

See also
WAbstractItemModel::data()

Reimplemented from Wt::Chart::WAbstractChartModel.

const double * Wt::Chart::WStandardChartProxyModel::markerScaleFactor ( int  row,
int  column 
) const
overridevirtual

Returns the marker scale factor to use for a given row and column.

Returns the result of WAbstractItemModel::data() for the given row and column with the MarkerScaleFactorRole, or null if no color is defined.

See also
WAbstractItemModel::data()

Reimplemented from Wt::Chart::WAbstractChartModel.

int Wt::Chart::WStandardChartProxyModel::rowCount ( ) const
overridevirtual

Returns the number of rows.

See also
WAbstractItemModel::rowCount()

Implements Wt::Chart::WAbstractChartModel.

WString Wt::Chart::WStandardChartProxyModel::toolTip ( int  row,
int  column 
) const
overridevirtual

Returns the tooltip text to use on a given row and column.

Returns the result of WAbstractItemModel::data() for the given row and column with the ToolTipRole as a WString.

See also
WAbstractItemModel::data()

Reimplemented from Wt::Chart::WAbstractChartModel.


Generated on Mon Sep 4 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11