Flow Visualisation
flowiz::FlowArrow Class Reference

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::Geometryget_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...
 

Detailed Description

The graphical representation of an Arrow Creates and manages position, movement and lifetime of an arrow.

Constructor & Destructor Documentation

FlowArrow::FlowArrow ( )
FlowArrow::~FlowArrow ( )

Member Function Documentation

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.

int flowiz::FlowArrow::get_birthTime ( )
inline
int flowiz::FlowArrow::get_deathTime ( )
inline
render::Geometry * FlowArrow::get_geometry ( )
glm::vec3 flowiz::FlowArrow::get_handlePoint ( )
inline
glm::vec2 FlowArrow::get_positionAtTime ( int  timestep)

Returns position at specified timestep.

float FlowArrow::get_size ( )
bool flowiz::FlowArrow::isAlive ( )
inline
bool flowiz::FlowArrow::isAlive ( int  timestep)
inline
bool FlowArrow::isSquare ( )
void FlowArrow::move ( glm::vec3  position)
void FlowArrow::propagateTo ( int  timestep,
FlowField flowField 
)

increases lifetime to the specified timestep

Parameters
timestepThe new timestep
flowFieldThe vector field at that timestep
void FlowArrow::scale ( glm::vec3  scale)
void flowiz::FlowArrow::set_birthTime ( int  tBirth)
inline
void flowiz::FlowArrow::set_deathTime ( int  deathTime)
inline
void FlowArrow::update ( float  time)

updates all time dependened actions

Parameters
timeelapsed time since last update

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