#include "Cube.h"

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. | |
Definition at line 23 of file Cube.h.
| void Cube::SetNumberOfPlanes | ( | int | n | ) |
Sets the number of slicing planes inside the cube.
| [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.
| [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.
| [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.
| [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.
| [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().
1.5.6