MetriVis | Overview | Download | User Manual | Development |
Reference | Overview | Design Documentation | Reference Backend | Reference Frontend |
#include <TimeLineVisualizer.h>
Public Member Functions | |
TimeLineVisualizer () | |
Default constructor. | |
virtual | ~TimeLineVisualizer () |
Deconstructor. | |
virtual void | Execute () |
Executes the TimeLineVisualizer. Produces ouput data from input. | |
virtual void | Reset () |
Resets the pipeline process to it's original state. | |
cairo_status_t | WriteImageData (const unsigned char *data, unsigned int length) |
Writes the image data to local memory. | |
void | set_borders (double min_x, double min_y, double max_x, double max_y) |
Sets the borders of the current tile. | |
void | set_tile_index (int x, int y, int zoom) |
Sets the tile index of the tile to be processed. | |
void | set_debug (int debug_mode) |
Sets the debug mode of the tile renderer. | |
void | set_time_window (long min_time, long max_time) |
Sets the time window. | |
Private Attributes | |
int | frame_size_ |
The frame size for one tile. | |
double | min_x_ |
Left border. | |
double | min_y_ |
Lower border. | |
double | max_x_ |
Right border. | |
double | max_y_ |
Upper border. | |
int | x_ |
The x index of the tile. | |
int | y_ |
The y index of the tile. | |
int | zoom_ |
The zoom factor of the tile. | |
long | time_window_min_ |
Start of the time window. | |
long | time_window_max_ |
Stop of the time window. | |
int | debug_mode_ |
The debug mode of this modules. |
metrivis::TimeLineVisualizer::TimeLineVisualizer | ( | ) |
Default constructor.
Constructor.
void metrivis::TimeLineVisualizer::Execute | ( | ) | [virtual] |
Executes the TimeLineVisualizer. Produces ouput data from input.
Executes this process and evaluates this input data and creates output from it. Abstract function needs to be overloaded.
See header file for more information.
Implements metrivis::PipelineProcess.
void metrivis::TimeLineVisualizer::Reset | ( | ) | [virtual] |
Resets the pipeline process to it's original state.
Frees resources. May take some time to execute, don't put it into speed critical sections. This is normally done after the execution of a pipeline. It automatically gets called from Pipeline::Reset.
See header file for more information.
Reimplemented from metrivis::PipelineProcess.
cairo_status_t metrivis::TimeLineVisualizer::WriteImageData | ( | const unsigned char * | data, | |
unsigned int | length | |||
) |
Writes the image data to local memory.
closure,: | Closure for the image writing. | |
data,: | Image data to be written. | |
length,: | The length of the data to be written. |
void metrivis::TimeLineVisualizer::set_borders | ( | double | min_x, | |
double | min_y, | |||
double | max_x, | |||
double | max_y | |||
) | [inline] |
Sets the borders of the current tile.
min_x,: | Left border of the image. | |
min_y,: | Lower border of the image. | |
max_x,: | Right border of the image. | |
max_y,: | Upper border of the image. |
void metrivis::TimeLineVisualizer::set_tile_index | ( | int | x, | |
int | y, | |||
int | zoom | |||
) | [inline] |
Sets the tile index of the tile to be processed.
x,: | The x index (time). | |
y,: | The y index (amplitude). | |
zoom,: | The zoom factor (levels from 0 to 14). |
void metrivis::TimeLineVisualizer::set_debug | ( | int | debug_mode | ) | [inline] |
Sets the debug mode of the tile renderer.
debug_mode,: | 0 is interpreted as false, 1 as true. |
void metrivis::TimeLineVisualizer::set_time_window | ( | long | min_time, | |
long | max_time | |||
) | [inline] |
Sets the time window.
debug_mode,: | 0 is interpreted as false, 1 as true. |