Chart

class Chart: public AlterableObject

Abstract class that implements the skeleton of a chart.

Inherits from AlterableObject.

Summary
ChartAbstract class that implements the skeleton of a chart.
Functions
ChartInitializes the object.
~ChartVirtual.
AddDataElementAdds the data element to the chart.
GetDataElementsReturns a vector containing all data elements of the chart.
AddAxisAdds the axis to the chart.
GetAxesReturns a vector containing all axes of the chart.
AddGridLineAdds the grid line to the chart.
GetGridLinesReturns a vector containing all grid lines of the chart.
AddLabelAdds the label to the chart.
GetLabelsReturns a vector containing all labels of the chart.
GetDataSetReturns the data set represented by the chart.
GetConnectedDataElementReturns the data element which represents the given data entry.
GetHighestVisibleValueReturns the highest data entry value that is visible (not filtered) in the current chart.

Functions

Chart

Chart()

Initializes the object.

~Chart

virtual ~Chart()

Virtual.  Releases all allocated resources.

AddDataElement

void AddDataElement(DataElement *pDataElement)

Adds the data element to the chart.

Parameters

pDataElementThe data element to be added.

GetDataElements

std::vector<DataElement*> GetDataElements()

Returns a vector containing all data elements of the chart.

Returns

A vector containing all data elements of the chart.

AddAxis

void AddAxis(Axis *pAxis)

Adds the axis to the chart.

Parameters

pAxisThe axis to be added.

GetAxes

std::vector<Axis*> GetAxes()

Returns a vector containing all axes of the chart.

Returns

A vector containing all axes of the chart.

AddGridLine

void AddGridLine(GridLine *pGridLine)

Adds the grid line to the chart.

Parameters

pGridLineThe grid line to be added.

GetGridLines

std::vector<GridLine*> GetGridLines()

Returns a vector containing all grid lines of the chart.

Returns

A vector containing all grid lines of the chart.

AddLabel

void AddLabel(Label *pLabel)

Adds the label to the chart.

Parameters

pLabelThe label to be added.

GetLabels

std::vector<Label*> GetLabels()

Returns a vector containing all labels of the chart.

Returns

A vector containing all labels of the chart.

GetDataSet

DataSet* GetDataSet()

Returns the data set represented by the chart.

Returns

The data set represented by the chart.

GetConnectedDataElement

DataElement* GetConnectedDataElement(DataEntry *pDataEntry)

Returns the data element which represents the given data entry.  If no such data element exists, NULL is returned.

Parameters

pDataEntryPointer to the data entry to be searched.

Returns

The data element which represents the given data entry if present, else NULL.

GetHighestVisibleValue

double GetHighestVisibleValue()

Returns the highest data entry value that is visible (not filtered) in the current chart.  If no data entries exist, 0.0 is returned.

Returns

The highest data entry value that is visible in the current chart.

class Chart: public AlterableObject
Abstract class that implements the skeleton of a chart.
Chart()
Initializes the object.
virtual ~Chart()
Virtual.
void AddDataElement(DataElement *pDataElement)
Adds the data element to the chart.
std::vector<DataElement*> GetDataElements()
Returns a vector containing all data elements of the chart.
void AddAxis(Axis *pAxis)
Adds the axis to the chart.
std::vector<Axis*> GetAxes()
Returns a vector containing all axes of the chart.
void AddGridLine(GridLine *pGridLine)
Adds the grid line to the chart.
std::vector<GridLine*> GetGridLines()
Returns a vector containing all grid lines of the chart.
void AddLabel(Label *pLabel)
Adds the label to the chart.
std::vector<Label*> GetLabels()
Returns a vector containing all labels of the chart.
DataSet* GetDataSet()
Returns the data set represented by the chart.
DataElement* GetConnectedDataElement(DataEntry *pDataEntry)
Returns the data element which represents the given data entry.
double GetHighestVisibleValue()
Returns the highest data entry value that is visible (not filtered) in the current chart.
class AlterableObject
Abstract class that implements the skeleton of an alterable object, i.e.
Close