MetriVis Overview | Download | User Manual | Development
Reference Overview | Design Documentation | Reference Backend | Reference Frontend

metrivis::TimeLineVisualizer Class Reference

Represents a single process in the processing pipeline. More...

#include <TimeLineVisualizer.h>

Inheritance diagram for metrivis::TimeLineVisualizer:

metrivis::PipelineProcess

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.

Detailed Description

Represents a single process in the processing pipeline.

Constructor & Destructor Documentation

metrivis::TimeLineVisualizer::TimeLineVisualizer (  ) 

Default constructor.

Constructor.


Member Function Documentation

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.

Parameters:
closure,: Closure for the image writing.
data,: Image data to be written.
length,: The length of the data to be written.
See header file for more information.

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.

Parameters:
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.
This properties are typically set by URL parameters.

void metrivis::TimeLineVisualizer::set_tile_index ( int  x,
int  y,
int  zoom 
) [inline]

Sets the tile index of the tile to be processed.

Parameters:
x,: The x index (time).
y,: The y index (amplitude).
zoom,: The zoom factor (levels from 0 to 14).
The tile index indentifies all tiles at a given zoom level uniquely.

void metrivis::TimeLineVisualizer::set_debug ( int  debug_mode  )  [inline]

Sets the debug mode of the tile renderer.

Parameters:
debug_mode,: 0 is interpreted as false, 1 as true.
The debug mode draws tile boundaries and tile numbers/zoom factor.

void metrivis::TimeLineVisualizer::set_time_window ( long  min_time,
long  max_time 
) [inline]

Sets the time window.

Parameters:
debug_mode,: 0 is interpreted as false, 1 as true.


The documentation for this class was generated from the following files:
Generated on Fri Feb 29 16:47:20 2008 for MetriVis by  doxygen 1.5.3