MetriVis | Overview | Download | User Manual | Development |
Reference | Overview | Design Documentation | Reference Backend | Reference Frontend |
#include <XYPlotVisualizer.h>
Public Member Functions | |
XYPlotVisualizer () | |
Default constructor. | |
virtual | ~XYPlotVisualizer () |
Deconstructor. | |
virtual void | Execute () |
Executes the XYPlotVisualizer. 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_x, int zoom_y) |
Sets the tile index of the tile to be processed. | |
void | set_debug (int debug_mode) |
Sets the debug mode of the tile renderer. | |
Private Member Functions | |
double | PixelToTime (long pixel_x, int zoom) |
Translates pixel cooridnates to time index. | |
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. | |
int | zoom_x_ |
Separate x-axis zoom. | |
int | zoom_y_ |
Separate y-axis zoom. | |
int | debug_mode_ |
The debug mode of this modules. |
metrivis::XYPlotVisualizer::XYPlotVisualizer | ( | ) |
Default constructor.
Constructor.
void metrivis::XYPlotVisualizer::Execute | ( | ) | [virtual] |
Executes the XYPlotVisualizer. 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::XYPlotVisualizer::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::XYPlotVisualizer::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::XYPlotVisualizer::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::XYPlotVisualizer::set_tile_index | ( | int | x, | |
int | y, | |||
int | zoom_x, | |||
int | zoom_y | |||
) | [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::XYPlotVisualizer::set_debug | ( | int | debug_mode | ) | [inline] |
Sets the debug mode of the tile renderer.
debug_mode,: | 0 is interpreted as false, 1 as true. |
double metrivis::XYPlotVisualizer::PixelToTime | ( | long | pixel_x, | |
int | zoom | |||
) | [private] |
Translates pixel cooridnates to time index.
pixel_x,: | The x pixel coorindate. | |
zoom,: | The zoom factor. |