Stores a unique IlvChartDataPointInfo
instance.
More...
#include <ilviews/charts/data.h>
Public Member Functions | |
IlvPointInfoSingleton (IlvChartDataPointInfo *singleton=0) | |
Initializes a new IlvPointInfoSingleton object. More... | |
virtual IlvChartDataPointInfo * | getInfoForPoint (IlUInt ptidx) const |
Returns the point information for a given data point. More... | |
virtual IlvChartDataPointInfo * | getPointInfo (IlUInt idx) const |
Returns the point information at a given index. More... | |
virtual IlUInt | getPointInfoCount () const |
Returns the number of point information objects managed by this object. More... | |
IlvChartDataPointInfo * | getSingleton () const |
Returns the unique point information object. More... | |
virtual void | removeAllPointInfo () |
Removes all point information. More... | |
virtual IlBoolean | removePointInfo (IlUInt ptidx) |
Does nothing. More... | |
virtual void | setPointInfo (IlUInt ptidx, IlvChartDataPointInfo *ptInfo, IlBoolean copy=IlFalse) |
Does nothing. More... | |
void | setSingleton (IlvChartDataPointInfo *singleton) |
Sets the unique point information object. More... | |
Public Member Functions inherited from IlvPointInfoCollection | |
virtual IlvPointInfoCollection * | copy () const =0 |
Creates and returns a copy of the current object. More... | |
void | lock () |
Locks the current IlvPointInfoCollection object. More... | |
IlvOutputFile & | save (IlvOutputFile &file) const |
Writes a complete description of the current object in a file. More... | |
void | unLock () |
Unlocks the current IlvPointInfoCollection object. More... | |
virtual void | write (IlvOutputFile &file) const =0 |
Writes the attributes of the current object in a file. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from IlvPointInfoCollection | |
static IlvPointInfoCollection * | Load (IlvInputFile &file) |
Reads a point information collection object from a file. More... | |
Protected Member Functions inherited from IlvPointInfoCollection | |
IlvPointInfoCollection () | |
Initializes a new IlvPointInfoCollection object. | |
IlvPointInfoCollection (const IlvPointInfoCollection &pointInfo) | |
Initializes a new IlvPointInfoCollection object as a copy of another IlvPointInfoCollection . More... | |
IlvPointInfoCollection (IlvInputFile &file) | |
Initializes a new IlvPointInfoCollection object from an input file. More... | |
Stores a unique IlvChartDataPointInfo
instance.
Library: ilvcharts
This class is a subclass of IlvPointInfoCollection
that associates all data points of a given data set with a unique IlvChartDataPointInfo
instance.
IlvPointInfoCollection
, IlvChartDataPointInfo
. IlvPointInfoSingleton::IlvPointInfoSingleton | ( | IlvChartDataPointInfo * | singleton = 0 | ) |
Initializes a new IlvPointInfoSingleton
object.
singleton | The unique point information object associated with all the data points of the data set. This point information object is locked. |
|
virtual |
Returns the point information for a given data point.
pidx | The index of the data point with which the returned point information is associated. |
Implements IlvPointInfoCollection.
|
virtual |
Returns the point information at a given index.
idx | The index of the returned point information. |
Implements IlvPointInfoCollection.
|
virtual |
Returns the number of point information objects managed by this object.
Implements IlvPointInfoCollection.
IlvChartDataPointInfo* IlvPointInfoSingleton::getSingleton | ( | ) | const |
Returns the unique point information object.
|
virtual |
Removes all point information.
Removes all the point information objects that are managed by the current object.
IlvChartDataPointInfo::unLock()
method is called). It will be deleted only when no more objects reference it (see the IlvChartDataPointInfo::unLock()
method). Implements IlvPointInfoCollection.
Does nothing.
This method does nothing and returns IlFalse
as the point information object is shared by all the data points of the data set.
Implements IlvPointInfoCollection.
|
virtual |
Does nothing.
This method does nothing as the information object is shared by all the data points of the data set. Use the IlvPointInfoSingleton::setSingleton()
method instead.
Implements IlvPointInfoCollection.
void IlvPointInfoSingleton::setSingleton | ( | IlvChartDataPointInfo * | singleton | ) |
Sets the unique point information object.
The point information object singleton is locked and the previous point information object is unlocked.
singleton | The new point information object. |