Eigene Dateien/9.Semester/Visualisierung/LU/Beispiel2/FlowVis_jan17/FlowVis/FlowVis/Structs.h File Reference


Classes

struct  RGBAColor
struct  Float_Color
struct  Pos2d
struct  FlowPosition
struct  GridData
struct  FlowVector
struct  PosInt

Defines

#define NUMOFINTENSITIES   512
 Structs.h.

Enumerations

enum  DataModeBG { DM_BG_FLOW, DM_BG_PRESSURE, DM_BG_VORTICITY }
 The variables for the background data mode. More...
enum  DataModeA { DM_A_FLOW, DM_A_PRESSURE, DM_A_VORTICITY }
 The variables for the arrows data mode. More...
enum  DataModeSL { DM_SL_FLOW, DM_SL_PRESSURE, DM_SL_VORTICITY }
 The variables for the streamlines data mode. More...
enum  ArrowStyle { A_LINES, A_LINESPOINTS, A_ARROWS, A_TRIANGLES }
 The variables for the arrow style. More...
enum  ColorType {
  BACKGROUND, ARROWS, STREAMLINES, USERSTREAMLINES,
  ARROW_FLOW, ARROW_PRESSURE, ARROW_VORTICITY, BG_FLOW,
  BG_PRESSURE, BG_VORTICITY, SL_FLOW, SL_PRESSURE,
  SL_VORTICITY
}
 The variables for the color transfer (keep the arrow types in front). More...
enum  SLStyle { SL_EULER, SL_RK }
 The variables for the streamline style. More...
enum  TexStyle { SL_F1, SL_F2 }
 The variables for the texturestyle function. More...
enum  SLineStyle { SL_LINES, SL_TAPERING, SL_GLYPH, SL_TEXTUR }
 The variables for the line style. More...

Functions

void black (Float_Color *color)
void white (Float_Color *color)
void gray (Float_Color *color, float intensity)
void generalColor (Float_Color *color, float red, float green, float blue)
void black (RGBAColor *color)
void white (RGBAColor *color)
void gray (RGBAColor *color, unsigned char intensity)
void generalColor (RGBAColor *color, unsigned char red, unsigned char green, unsigned char blue)
Float_Color operator * (float aFactor, Float_Color thisColor)
Float_Color operator+ (Float_Color thisColor, Float_Color thatColor)
Float_Color operator- (Float_Color thisColor, Float_Color thatColor)
RGBAColor toIntColor (Float_Color anOriColor)
float average (Float_Color aColor)
int average (RGBAColor aColor)
bool normalizeFlowVector (FlowVector *fd)
bool scaleFlowVector (FlowVector *fd, int sv)
FlowVector operator * (FlowVector fd, float scalar)
FlowVector operator+ (FlowVector fd1, FlowVector fd2)
FlowPosition operator * (FlowPosition aFlowPosition, float scalar)
FlowPosition operator+ (FlowPosition aFlowPosition, FlowPosition aFlowPositionToAdd)
Pos2d operator * (Pos2d aFlowPosition, float scalar)
Pos2d operator+ (Pos2d aFlowPosition, Pos2d aFlowPositionToAdd)

Define Documentation

#define NUMOFINTENSITIES   512

Structs.h.


Enumeration Type Documentation

enum ArrowStyle

The variables for the arrow style.

Enumerator:
A_LINES 
A_LINESPOINTS 
A_ARROWS 
A_TRIANGLES 

enum ColorType

The variables for the color transfer (keep the arrow types in front).

Enumerator:
BACKGROUND 
ARROWS 
STREAMLINES 
USERSTREAMLINES 
ARROW_FLOW 
ARROW_PRESSURE 
ARROW_VORTICITY 
BG_FLOW 
BG_PRESSURE 
BG_VORTICITY 
SL_FLOW 
SL_PRESSURE 
SL_VORTICITY 

enum DataModeA

The variables for the arrows data mode.

Enumerator:
DM_A_FLOW 
DM_A_PRESSURE 
DM_A_VORTICITY 

enum DataModeBG

The variables for the background data mode.

Enumerator:
DM_BG_FLOW 
DM_BG_PRESSURE 
DM_BG_VORTICITY 

enum DataModeSL

The variables for the streamlines data mode.

Enumerator:
DM_SL_FLOW 
DM_SL_PRESSURE 
DM_SL_VORTICITY 

enum SLineStyle

The variables for the line style.

Enumerator:
SL_LINES 
SL_TAPERING 
SL_GLYPH 
SL_TEXTUR 

enum SLStyle

The variables for the streamline style.

Enumerator:
SL_EULER 
SL_RK 

enum TexStyle

The variables for the texturestyle function.

Enumerator:
SL_F1 
SL_F2 


Function Documentation

int average ( RGBAColor  aColor  ) 

float average ( Float_Color  aColor  ) 

void black ( RGBAColor color  ) 

Sets the current color to black.

Parameters:
color Holds the color.

void black ( Float_Color color  ) 

Structs.cpp - Contains all the functions of the structs we use in this programm.

void generalColor ( RGBAColor color,
unsigned char  red,
unsigned char  green,
unsigned char  blue 
)

----------------------------------------------------------------generalColor-

Sets the current color to the desired color specified by the red, green and blue values.

Parameters:
color Holds the color.
red The red component of the color.
green The green component of the color.
blue The blue component of the color.

void generalColor ( Float_Color color,
float  red,
float  green,
float  blue 
)

Sets the current color to the desired color specified by the red, green and blue values.

Parameters:
color Holds the color.
red The red component of the color.
green The green component of the color.
blue The blue component of the color.

void gray ( RGBAColor color,
unsigned char  intensity 
)

Sets the current color to a value between 0 and 1.

Parameters:
color Holds the color.
intensity The intensity of the gray scale.

void gray ( Float_Color color,
float  intensity 
)

Sets the current color to a value between 0 and 1.

Parameters:
color Holds the color.
intensity The intensity of the gray scale.

bool normalizeFlowVector ( FlowVector fd  ) 

Normalizes the vector

Parameters:
fd The flow vector to normalize.

Pos2d operator * ( Pos2d  aFlowPosition,
float  scalar 
)

FlowPosition operator * ( FlowPosition  aFlowPosition,
float  scalar 
)

FlowVector operator * ( FlowVector  fd,
float  scalar 
)

Operator overloading of * to multiply this flow data with a skalar.

Parameters:
grad The flow data to multiplie with the scale factor.
scalar The scale factor.
Returns:
flow data The flow data with the produkt of flowdata * scalar.

Float_Color operator * ( float  aFactor,
Float_Color  thisColor 
)

Pos2d operator+ ( Pos2d  aFlowPosition,
Pos2d  aFlowPositionToAdd 
)

FlowPosition operator+ ( FlowPosition  aFlowPosition,
FlowPosition  aFlowPositionToAdd 
)

FlowVector operator+ ( FlowVector  fd1,
FlowVector  fd2 
)

Operator overloading of + to sum up flow vectors.

Parameters:
fd1 The first flow data to add.
fd2 The second flow data to add.
Returns:
flowdata The flow data with the summ of fd1 + fd2.

Float_Color operator+ ( Float_Color  thisColor,
Float_Color  thatColor 
)

Float_Color operator- ( Float_Color  thisColor,
Float_Color  thatColor 
)

bool scaleFlowVector ( FlowVector fd,
int  sv 
)

Scales the vector

Parameters:
fd The flow vector to scale.
sv The scale value.

RGBAColor toIntColor ( Float_Color  anOriColor  ) 

void white ( RGBAColor color  ) 

Sets the current color to white.

Parameters:
color Holds the color.

void white ( Float_Color color  ) 

Sets the current color to white.

Parameters:
color Holds the color.


Generated on Wed Jan 17 09:27:51 2007 for FlowVis by  doxygen 1.4.7