#include <Renderwindow.h>
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_Transfer * | colorSource |
Renderwindow::Renderwindow | ( | QWidget * | parent = 0 |
) |
Constructor.
Renderwindow::~Renderwindow | ( | void | ) |
Destructor.
V2i Renderwindow::findPos | ( | V2d | pos, | |
V2d & | interpolator | |||
) |
Find the mesh position of a certain position.
pos | Position in dataset | |
interpolator | Useful interpolation values. |
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.
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.
Which channel should be used for arrow length?
QColor Renderwindow::arrowColor |
Color of the arrows.
QPixmap Renderwindow::arrowPlot |
Offscreen buffer for rendering.
Arrow sampling density.
double Renderwindow::arrowScale |
Scaling factor of the arrows.
Box2d Renderwindow::bWindow |
Borders of the dataset.
Image offset.
float* Renderwindow::channelMaxVal |
Maximum value of a channel.
float* Renderwindow::channelMinVal |
Minimum value of a channel.
unsigned int Renderwindow::channelNumber |
The number of channels.
float** Renderwindow::channels |
The channel data.
Which channel should be used for background color?
The color transfer function.
QColor Renderwindow::curveColor |
Color of the curves.
double Renderwindow::curveDistance |
Distance of the curves.
Arrow or Streamline?
Sampling density
The derivate grid.
unsigned int Renderwindow::dimensionSize[3] |
The size of the grid.
float Renderwindow::dt |
The timestep interval. Not used.
double Renderwindow::imageScale |
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.
bool Renderwindow::runge |
Runge-Kutta or Euler integration?
QPixmap Renderwindow::staticMap |
Background image.
double Renderwindow::stepSize |
Simulation stepsize.
The number of timesteps. Not used.
The grid.