Eigene Dateien/9.Semester/Visualisierung/LU/Volume_Renderer_dec05v2/Volume Renderer/Structs.h File Reference

#include "Vector3.h"

Classes

struct  RGBAColor
struct  Float_Color
struct  Gradient
struct  LightingInfo

Enumerations

enum  SliceOrientation { FRONT, TOP, SIDE }
 The variables for the slice orientation. More...
enum  InterpolationMode { IM_NEAREST_NEIGHBOUR, IM_TRILINEAR }
 The variables for the interpolation mode. More...
enum  CombinationMode {
  CO_OVER, CO_AVG, CO_FIRST_HIT, CO_MAX_INTENSITY,
  CO_ACCUM
}
 The variables for the combination mode. More...
enum  CompositingMode { F2B, B2F }
 The variables for the compositing mode. More...

Functions

void black (Float_Color *color)
void white (Float_Color *color)
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)
bool normalizeGradient (Gradient *grad)
Gradient operator * (Gradient grad, float scalar)
Gradient operator+ (Gradient grad1, Gradient grad2)
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)

Enumeration Type Documentation

enum CombinationMode

The variables for the combination mode.

Enumerator:
CO_OVER 
CO_AVG 
CO_FIRST_HIT 
CO_MAX_INTENSITY 
CO_ACCUM 

enum CompositingMode

The variables for the compositing mode.

Enumerator:
F2B 
B2F 

enum InterpolationMode

The variables for the interpolation mode.

Enumerator:
IM_NEAREST_NEIGHBOUR 
IM_TRILINEAR 

enum SliceOrientation

The variables for the slice orientation.

Enumerator:
FRONT 
TOP 
SIDE 


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

bool normalizeGradient ( Gradient grad  ) 

Normalizes the gradient

Parameters:
grad The gradient to normalize.

Float_Color operator * ( float  aFactor,
Float_Color  thisColor 
)

Gradient operator * ( Gradient  grad,
float  scalar 
)

Operator overloading of * to multiply this gradient with a skalar.

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

Float_Color operator+ ( Float_Color  thisColor,
Float_Color  thatColor 
)

Gradient operator+ ( Gradient  grad1,
Gradient  grad2 
)

Operator overloading of + to add gradients together.

Parameters:
grad1 The first gradient to add.
grad2 The second gradient to add.
Returns:
gradient The gradient with the summ of grad1 + grad2.

Float_Color operator- ( Float_Color  thisColor,
Float_Color  thatColor 
)

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 Dec 6 11:27:26 2006 by  doxygen 1.4.7