VolRenderer Class Reference

#include <VisVolRenderer.hpp>

List of all members.

Public Member Functions

 VolRenderer (Texture3D &volume)
void draw ()
void add_plane (Plane3f plane)
void delete_plane (int i)
void set_plane (int i, Plane3f plane)
int get_plane_count ()
Plane3f get_plane (int i)
void setTransferFunc (Texture1D *tData)
void triggerLight (bool on)
void triggerNPR (bool on)
void setUpperLight (Color4f color)
void setLowerLight (Color4f color)
void setLightDirection (V3f dir)
void resizeBackBuffer (V2i new_size)

Public Attributes

Texture1DtransferFunction
bool texInit


Detailed Description

This class encapsulates the volume rendering process.

Constructor & Destructor Documentation

VolRenderer::VolRenderer ( Texture3D volume  ) 

Initializes the Renderer.


Member Function Documentation

void VolRenderer::add_plane ( Plane3f  plane  ) 

Adds a clipping plane.

void VolRenderer::delete_plane ( int  i  ) 

Deletes a clipping plane.

void VolRenderer::draw (  ) 

Draw the volume.

Plane3f VolRenderer::get_plane ( int  i  )  [inline]

Returns a numbered plane.

int VolRenderer::get_plane_count (  )  [inline]

Returns the number of planes.

void VolRenderer::set_plane ( int  i,
Plane3f  plane 
)

Sets a specific clipping plane.

void VolRenderer::setLightDirection ( V3f  dir  )  [inline]

Sets the polar vector of the light sphere.

void VolRenderer::setLowerLight ( Color4f  color  )  [inline]

Sets the color of the lower hemisphere.

void VolRenderer::setTransferFunc ( Texture1D tData  ) 

Set's the transfer function.

void VolRenderer::setUpperLight ( Color4f  color  )  [inline]

Sets the color of the upper hemisphere.

void VolRenderer::triggerLight ( bool  on  ) 

Switches lightin on and off.

void VolRenderer::triggerNPR ( bool  on  ) 

Switches Non Photorealistic Rendering on and off.


Member Data Documentation

The used Transfer function texture.


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

Generated on Wed Dec 10 14:41:01 2008 by  doxygen 1.5.7.1