TransitionManager

class TransitionManager

Implements the core class of the program which handles chart and transition objects in a centralized way.

Summary
TransitionManagerImplements the core class of the program which handles chart and transition objects in a centralized way.
Functions
GetInstanceStatic function to get the singleton instance.
DestroyDestroys the singleton instance.
TransitionManagerInitializes the object.
~TransitionManagerReleases all allocated resources.
SetGLWidgetSets the given MyGLWidget.
UpdateUpdates the active transition.
DrawDraws the active transition (active chart with ongoing alterations) if present, else the active chart.
CreateChartCreates and returns a chart of the given chart type for the active data set.
InitializeChartCreates an initial chart on startup.
AddDataSetAdds the data set to the list of data sets.
NextDataSetChanges the active data set to the successor if present, else no change is applied.
PreviousDataSetChanges the active data set to the predecessor if present, else no change is applied.
SetSortingOrderChanges the sorting order in all data sets according to the given parameter.
SetChartChanges the chart type according to the parameter.
SetFilterSets the filtering behavior for all data sets accoring to the parameter.

Functions

GetInstance

static TransitionManager* GetInstance()

Static function to get the singleton instance.  If a instance is not yet created, it will be created.

Returns

The singleton instance.

Destroy

static void Destroy()

Destroys the singleton instance.

TransitionManager

TransitionManager()

Initializes the object.

~TransitionManager

~TransitionManager()

Releases all allocated resources.

SetGLWidget

void SetGLWidget(MyGLWidget *pGLWidget)

Sets the given MyGLWidget.

Parameters

pGLWidgetMyGLWidget instance to be set.

Update

void Update()

Updates the active transition.

Draw

void Draw(QPainter *pPainter)

Draws the active transition (active chart with ongoing alterations) if present, else the active chart.

Parameters

pPainterThe QPainter object to be used for drawing.

CreateChart

Chart* CreateChart(int iChartType)

Creates and returns a chart of the given chart type for the active data set.

Parameters

iChartTypeBAR_CHART, GROUPED_BAR_CHART, STACKED_BAR_CHART or PIE_CHART.

Returns

The created chart of the desired chart type.

InitializeChart

void InitializeChart()

Creates an initial chart on startup.

AddDataSet

void AddDataSet(DataSet *pDataSet)

Adds the data set to the list of data sets.

Parameters

pDataSetPointer to the data set to be added.

NextDataSet

void NextDataSet()

Changes the active data set to the successor if present, else no change is applied.

PreviousDataSet

void PreviousDataSet()

Changes the active data set to the predecessor if present, else no change is applied.

SetSortingOrder

void SetSortingOrder(bool bDescending)

Changes the sorting order in all data sets according to the given parameter.

Parameters

bDescendingIndicates if the sorting order is changed to descending (true) or ascending (false).

SetChart

void SetChart(int iChartIndex)

Changes the chart type according to the parameter.

Parameters

iChartIndexBAR_CHART, GROUPED_BAR_CHART, STACKED_BAR_CHART or PIE_CHART.

SetFilter

void SetFilter(bool bShowAll)

Sets the filtering behavior for all data sets accoring to the parameter.

Parameters

bShowAllIndicates if all data entries are shown (true) or if the filtering is applied (false).
class TransitionManager
Implements the core class of the program which handles chart and transition objects in a centralized way.
static TransitionManager* GetInstance()
Static function to get the singleton instance.
static void Destroy()
Destroys the singleton instance.
TransitionManager()
Initializes the object.
~TransitionManager()
Releases all allocated resources.
void SetGLWidget(MyGLWidget *pGLWidget)
Sets the given MyGLWidget.
void Update()
Updates the active transition.
void Draw(QPainter *pPainter)
Draws the active transition (active chart with ongoing alterations) if present, else the active chart.
Chart* CreateChart(int iChartType)
Creates and returns a chart of the given chart type for the active data set.
void InitializeChart()
Creates an initial chart on startup.
void AddDataSet(DataSet *pDataSet)
Adds the data set to the list of data sets.
void NextDataSet()
Changes the active data set to the successor if present, else no change is applied.
void PreviousDataSet()
Changes the active data set to the predecessor if present, else no change is applied.
void SetSortingOrder(bool bDescending)
Changes the sorting order in all data sets according to the given parameter.
void SetChart(int iChartIndex)
Changes the chart type according to the parameter.
void SetFilter(bool bShowAll)
Sets the filtering behavior for all data sets accoring to the parameter.
Indicator for a bar chart.
Indicator for a grouped bar chart.
Indicator for a stacked bar chart.
Indicator for a pie chart.
Close