Flow Visualisation
|
The graphical representation of an Arrow Creates and manages position, movement and lifetime of an arrow. More...
#include <FlowArrow.h>
Public Member Functions | |
FlowArrow () | |
~FlowArrow () | |
void | generateNormalizedVertexData () |
Generates a standard rectangle and maps an arrow on top of it. More... | |
void | generateCircleGeometryData () |
Generates Circle geometry. More... | |
void | generateIntegrationVertexData (glm::uvec2 handlePosition, FlowField *flowField) |
Generates vertex data using Runge-Kutta-Integration Calculates Streamlet path from a handle point and thickens it. More... | |
void | update (float time) |
updates all time dependened actions More... | |
render::Geometry * | get_geometry () |
void | move (glm::vec3 position) |
void | scale (glm::vec3 scale) |
void | addMoveAnimation (glm::vec3 position, float time) |
void | addMoveAnimation (glm::vec3 position, float time, int startTime) |
void | addTransparencyAnimation (float transparency, float time) |
int | get_birthTime () |
void | set_birthTime (int tBirth) |
int | get_deathTime () |
void | set_deathTime (int deathTime) |
glm::vec3 | get_handlePoint () |
float | get_size () |
bool | isSquare () |
bool | isAlive () |
bool | isAlive (int timestep) |
void | propagateTo (int timestep, FlowField *flowField) |
increases lifetime to the specified timestep More... | |
glm::vec2 | get_positionAtTime (int timestep) |
Returns position at specified timestep. More... | |
The graphical representation of an Arrow Creates and manages position, movement and lifetime of an arrow.
FlowArrow::FlowArrow | ( | ) |
FlowArrow::~FlowArrow | ( | ) |
void FlowArrow::addMoveAnimation | ( | glm::vec3 | position, |
float | time | ||
) |
void FlowArrow::addMoveAnimation | ( | glm::vec3 | position, |
float | time, | ||
int | startTime | ||
) |
void FlowArrow::addTransparencyAnimation | ( | float | transparency, |
float | time | ||
) |
void FlowArrow::generateCircleGeometryData | ( | ) |
Generates Circle geometry.
void FlowArrow::generateIntegrationVertexData | ( | glm::uvec2 | handlePosition, |
FlowField * | flowField | ||
) |
Generates vertex data using Runge-Kutta-Integration Calculates Streamlet path from a handle point and thickens it.
void FlowArrow::generateNormalizedVertexData | ( | ) |
Generates a standard rectangle and maps an arrow on top of it.
|
inline |
|
inline |
render::Geometry * FlowArrow::get_geometry | ( | ) |
|
inline |
glm::vec2 FlowArrow::get_positionAtTime | ( | int | timestep | ) |
Returns position at specified timestep.
float FlowArrow::get_size | ( | ) |
|
inline |
|
inline |
bool FlowArrow::isSquare | ( | ) |
void FlowArrow::move | ( | glm::vec3 | position | ) |
void FlowArrow::propagateTo | ( | int | timestep, |
FlowField * | flowField | ||
) |
increases lifetime to the specified timestep
timestep | The new timestep |
flowField | The vector field at that timestep |
void FlowArrow::scale | ( | glm::vec3 | scale | ) |
|
inline |
|
inline |
void FlowArrow::update | ( | float | time | ) |
updates all time dependened actions
time | elapsed time since last update |