Cube Class Reference

The class that represents the volumes bounding cube. More...

#include "Cube.h"

Collaboration diagram for Cube:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Cube ()
 Constructor.
 ~Cube ()
 De-constructor.
void Init ()
 Initializes the Cube data.
void Draw ()
 Draws the cube.
void DrawOutline ()
 Draws the cube outline.
void DrawPlanes ()
 Draws the slicing plaves inside the cube.
void SetNumberOfPlanes (int n)
 Sets the number of slicing planes inside the cube.
void SetViewDirection (const Vector3f &vd)
 Sets the view direction.
void SetCubeColor (const Color4f &c)
 Sets the cube color.
void SetOutlineColor (const Color4f &c)
 Sets the cube outline color.
void SetPlaneColor (const Color4f &c)
 Sets the plane color.


Detailed Description

The class that represents the volumes bounding cube.

Definition at line 23 of file Cube.h.


Member Function Documentation

void Cube::SetNumberOfPlanes ( int  n  ) 

Sets the number of slicing planes inside the cube.

Parameters:
[in] n the number of slicing planes. Must be in the range [1, MAX_PLANES].

Definition at line 190 of file Cube.cpp.

Referenced by RTVolumeRenderer::SetPlanes().

void Cube::SetViewDirection ( const Vector3f vd  )  [inline]

Sets the view direction.

Parameters:
[in] vd the view direction.

Definition at line 69 of file Cube.h.

Referenced by RTVolumeRenderer::Draw().

void Cube::SetCubeColor ( const Color4f c  )  [inline]

Sets the cube color.

Parameters:
[in] c the color to use.

Definition at line 76 of file Cube.h.

References Color4f::b, Color4f::g, Color4f::r, and Color4f::Set().

Referenced by RTVolumeRenderer::SetCubeColor().

void Cube::SetOutlineColor ( const Color4f c  )  [inline]

Sets the cube outline color.

Parameters:
[in] c the color to use.

Definition at line 83 of file Cube.h.

References Color4f::b, Color4f::g, Color4f::r, and Color4f::Set().

Referenced by RTVolumeRenderer::SetOutlineColor().

void Cube::SetPlaneColor ( const Color4f c  )  [inline]

Sets the plane color.

Parameters:
[in] c the color to use.

Definition at line 90 of file Cube.h.

References Color4f::b, Color4f::g, Color4f::r, and Color4f::Set().

Referenced by RTVolumeRenderer::SetPlaneColor().


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

Generated on Thu Jan 15 00:58:04 2009 for RTVolumeRendering by  doxygen 1.5.6