ValueChangeTransition

class ValueChangeTransition: public CompoundTransition

Implements a complex sequence of transitions that maps data entries of another data set to the data elements of the current chart, thus providing a value change between data sets.

Inherits from CompoundTransition.

Summary
ValueChangeTransitionImplements a complex sequence of transitions that maps data entries of another data set to the data elements of the current chart, thus providing a value change between data sets.
Functions
ValueChangeTransitionInitializes the object by creating all transitions and intermediate objects.
~ValueChangeTransitionReleases all allocated resources.
UpdateUpdates the transition by executing the active child transition.
DrawDraws the transition by drawing the initial chart.
CompleteChecks if all child transitions are completed.
GetActiveChartReturns the active chart of the transition.
GetDataEntryByNameHelp function which searches for a data entry of the given name in the given vector of data entries and returns it if present, else NULL.

Functions

ValueChangeTransition

ValueChangeTransition(Chart *pInitialChart,
DataSet *pNewDataSet)

Initializes the object by creating all transitions and intermediate objects.

Parameters

pInitialChartPointer to the chart to be modified.
pNewDataSetPointer to the data set of the new chart.

~ValueChangeTransition

~ValueChangeTransition()

Releases all allocated resources.

Update

void Update()

Updates the transition by executing the active child transition.  Inherited from Transition.

Draw

void Draw(QPainter *pPainter)

Draws the transition by drawing the initial chart.  Inherited from CompoundTransition.

Parameters

pPainterThe QPainter object that shall be used for painting.

Complete

bool Complete()

Checks if all child transitions are completed.  Inherited from Transition.

Returns

A boolean value indicating if all child transitions are completed.

GetActiveChart

Chart* GetActiveChart()

Returns the active chart of the transition.  This is the active chart of the active transition if present, else the initial chart.  Inherited from CompoundTransition.

Returns

Returns the active chart of the transition.

GetDataEntryByName

DataEntry* GetDataEntryByName(std::vector<DataEntry*> vDataEntries,
std::string sName)

Help function which searches for a data entry of the given name in the given vector of data entries and returns it if present, else NULL.

Parameters

vDataEntriesA vector of data entries to be searched for the data entry.
sNameName of the data entry to be searched.

Returns

The data entry of the searched name if present, else NULL.

class ValueChangeTransition: public CompoundTransition
Implements a complex sequence of transitions that maps data entries of another data set to the data elements of the current chart, thus providing a value change between data sets.
ValueChangeTransition(Chart *pInitialChart,
DataSet *pNewDataSet)
Initializes the object by creating all transitions and intermediate objects.
~ValueChangeTransition()
Releases all allocated resources.
void Update()
Updates the transition by executing the active child transition.
void Draw(QPainter *pPainter)
Draws the transition by drawing the initial chart.
bool Complete()
Checks if all child transitions are completed.
Chart* GetActiveChart()
Returns the active chart of the transition.
DataEntry* GetDataEntryByName(std::vector<DataEntry*> vDataEntries,
std::string sName)
Help function which searches for a data entry of the given name in the given vector of data entries and returns it if present, else NULL.
class CompoundTransition: public Transition
Abstract class that implements the skeleton of a compound transition, i.e.
class Transition
Abstract class that implements the skeleton of a transition.
Close