Renderwindow Class Reference

#include <Renderwindow.h>

Collaboration diagram for Renderwindow:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Renderwindow (QWidget *parent=0)
 ~Renderwindow (void)
bool setFlowData (string filename)
void smallPaint ()
void wheelEvent (QWheelEvent *evt)
void screenshot (string filename)
V2i findPos (V2d pos, V2d &interpolator)
V2d getDerivate (V2d pos)
float * getChannels (V2d pos)
void getChannelsAndDerivate (V2d pos, float *&channels, V2d &derivate)

Public Attributes

bool isFlipped
unsigned int dimensionSize [3]
unsigned int channelNumber
int timesteps
float dt
V3f * vectorData
V3f * derivates
V2i positionCache
float ** channels
float * channelMinVal
float * channelMaxVal
QPixmap arrowPlot
QPixmap staticMap
Box2d bWindow
bool initiated
double arrowScale
double curveSampleDensity
double curveDistance
double arrowSampleDensity
QColor arrowColor
QColor curveColor
double stepSize
bool curveMode
bool runge
int arrowChannel
int colorChannel
double imageScale
V2i centerPos
V2i imageSize
bool leftPressed
V2i lastPos
Hist_TransfercolorSource


Detailed Description

The main class for Gradient visualization

Constructor & Destructor Documentation

Renderwindow::Renderwindow ( QWidget *  parent = 0  ) 

Constructor.

Renderwindow::~Renderwindow ( void   ) 

Destructor.


Member Function Documentation

V2i Renderwindow::findPos ( V2d  pos,
V2d &  interpolator 
)

Find the mesh position of a certain position.

Parameters:
pos Position in dataset
interpolator Useful interpolation values.
Returns:
Position in mesh.

float * Renderwindow::getChannels ( V2d  pos  ) 

Return the channel values at a certain position.

void Renderwindow::getChannelsAndDerivate ( V2d  pos,
float *&  channels,
V2d &  derivate 
)

Return the channel values and the derivate at a certain position.

V2d Renderwindow::getDerivate ( V2d  pos  ) 

Return the derivate at a certain position.

void Renderwindow::screenshot ( string  filename  ) 

Take a screenshot.

Parameters:
filename The filename to save to.

bool Renderwindow::setFlowData ( string  filename  ) 

Load a dataset from a file.

void Renderwindow::smallPaint (  ) 

Calculate the background color.

void Renderwindow::wheelEvent ( QWheelEvent *  evt  ) 

Wheel event handler.


Member Data Documentation

Which channel should be used for arrow length?

Color of the arrows.

Offscreen buffer for rendering.

Arrow sampling density.

Scaling factor of the arrows.

Borders of the dataset.

Image offset.

Maximum value of a channel.

Minimum value of a channel.

The number of channels.

The channel data.

Which channel should be used for background color?

The color transfer function.

Color of the curves.

Distance of the curves.

Arrow or Streamline?

Sampling density

The derivate grid.

unsigned int Renderwindow::dimensionSize[3]

The size of the grid.

The timestep interval. Not used.

Image scaling factor.

Image size in pixels.

Is this window initiated?

Is the dataset flipped?

What was the last mouse position?

Was the left mouse button pressed?

positionCache is needed to speed up findPos.

Runge-Kutta or Euler integration?

Background image.

Simulation stepsize.

The number of timesteps. Not used.

The grid.


The documentation for this class was generated from the following files:

Generated on Mon Jan 26 20:31:16 2009 for VisLU 2008 Streamlines by  doxygen 1.5.7.1