Vis::PlotArrows Class Reference

#include <VisPlotArrows.h>

Collaboration diagram for Vis::PlotArrows:
[legend]

List of all members.

Public Member Functions

 PlotArrows (std::string &name)
 ~PlotArrows ()
void initGL ()
void enable (bool tf)
void render (Texture2D *tex)
void setScale (int scale)
void setScaleRange (float min, float max)
void setDensity (float density)
void setColor (V3f &color)
void setOpacity (float opacity)
void setMagScaleBled (float blend)
bool isEnabled ()
void setAspect (float aspect)


Detailed Description

PlotArrows imlements arrow plotting

Constructor & Destructor Documentation

Vis::PlotArrows::PlotArrows ( std::string &  name  ) 

ctor.

Parameters:
name arrow texture name used for sprite mapping

Vis::PlotArrows::~PlotArrows (  ) 

dtor.


Member Function Documentation

void Vis::PlotArrows::enable ( bool  tf  ) 

enable arrowplot rendering.

Parameters:
tf enable, disable rendering , hence display

void Vis::PlotArrows::initGL (  ) 

initGL initializes opengl specific state.

bool Vis::PlotArrows::isEnabled (  )  [inline]

isEnabled.

Returns:
status, if rendering is enabled

void Vis::PlotArrows::render ( Texture2D tex  ) 

render the arrows.

Parameters:
tex a "vector" (velocity) texture used for lookup in the vertex shader

void Vis::PlotArrows::setAspect ( float  aspect  ) 

setAspect.

Parameters:
aspect,set the aspect for arrow position computation

void Vis::PlotArrows::setColor ( V3f &  color  ) 

setColor.

Parameters:
color the arrow color

void Vis::PlotArrows::setDensity ( float  density  ) 

setDensity.

Parameters:
density the arrow render density

void Vis::PlotArrows::setMagScaleBled ( float  blend  ) 

setMagScaleBled.

Parameters:
blend specifies to what degree the arrow size is modulated by the magnitude

void Vis::PlotArrows::setOpacity ( float  opacity  ) 

setOpacity.

Parameters:
opacity the arrow opacity

void Vis::PlotArrows::setScale ( int  scale  ) 

setthe scale of the arrows.

Parameters:
scale the scale value

void Vis::PlotArrows::setScaleRange ( float  min,
float  max 
)

setScaleRange.

Parameters:
min minnimum magnitude value exposed by the "vector" texture
max maximum magnitude value exposed by the "vector" texture


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

Generated on Mon Jan 26 15:00:42 2009 for FlowVis by  doxygen 1.5.7.1