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