#include <RenderMachineSW.h>
Inheritance diagram for IDVR.VolumeRenderer.SWVolumeRenderer.RenderMachineSW:
namespace: IDVR.VolumeRenderer.SWVolumeRenderer
Baseclass: IDVR.Interfaces.IRenderMachine
This class provides methods to render the scene. It has methods for normal volume rendering (see RenderMachineSW.do_NormalRayCasting), two-level rendering (see RenderMachineSW.do_TwoLevelRayCasting) and importance driven rendering (see RenderMachineSW.do_ImportanceDrivenRayCasting).
Public Member Functions | |
RenderMachineSW (void) | |
Standard constructor. | |
RenderMachineSW (VolumeData *n_Dataset, RenderPrimitives::ImagePlane *n_ImagePlane, Color n_BackColor, IOpenGLCanvas *n_Canvas) | |
Constructor. | |
~RenderMachineSW (void) | |
Standard destructor. | |
Vector3 * | calculate_IntersectionPoints (Vector3 *startPoint) __gc[] |
Calculates the intersection points of a ray with the volume. | |
virtual void | start_Raycasting (void) |
Starts the rendering process. | |
virtual void | do_NormalRayCasting (void) |
Does normal raycasting. | |
virtual void | do_TwoLevelRayCasting (void) |
Does two-level raycasting. | |
virtual void | do_ImportanceDrivenRayCasting (Footprint *n_Footprint) |
Does importance driven raycasting. | |
virtual __property void | set_Data (VolumeData *n_DataSet) |
Sets the volume dataset. | |
virtual __property void | set_TwoLevelRendering (bool n_IsTwoLevel) |
Sets the two-level rendering flag. | |
virtual __property void | set_ImportanceDrivenRendering (bool n_IsImportance) |
Sets the importance driven rendering flag. | |
virtual __property void | set_SampingDistance (double n_SamplingDistance) |
Sets the sampling distance. | |
virtual __property void | set_OpacityThreshold (double n_ThresholdOpacity) |
Sets the opacity threshold. | |
virtual __property void | set_GradientThreshold (double n_ThresholdGradient) |
Sets the gradient threshold. | |
virtual __property void | set_ImagePlane (RenderPrimitives::ImagePlane *n_ImagePlane) |
Sets the image plane. | |
virtual __property void | set_GradientEstimationMode (char n_GradientEstimationMode) |
Sets the gradient estimation mode. | |
virtual __property void | set_DensityInterpolationMode (char n_DensityInterpolationMode) |
Sets the density interpolation mode. | |
virtual __property void | set_GradientInterpolationMode (char n_GradientInterpolationMode) |
Sets the gradient interpolation mode. | |
virtual __property void | set_VoxelIDInterpolationMode (char n_VoxelIDInterpolationMode) |
Sets the voxelID interpolation mode. | |
virtual __property RenderPrimitives::ImagePlane * | get_ImagePlane (void) |
Returns the image plane. | |
virtual __property VolumeData * | get_Data (void) |
Returns the volume dataset. | |
unsigned char | getFrameBuffer (void) __gc[] |
Returns the framebuffer. | |
Footprint * | generateFootprint (void) |
Generates the footprint object. | |
void | setOpenGLCanvas (IOpenGLCanvas *n_Canvas) |
Sets the openGL canvas. | |
void | setProgressWin (ProgressWin *n_ProgressWin) |
Sets the progress bar. | |
void | setGUIHandler (Thread *n_GUIHandler) |
Sets the GUI handler. | |
Private Attributes | |
VolumeData * | m_DataSet |
The dataset. | |
VolumeRenderer::RenderPrimitives::ImagePlane * | m_ImagePlane |
The image plane. | |
IRenderer * | m_GlobalRenderer |
The global renderer. | |
IIDVRCompositingModel * | m_IDVRCompositingModel |
The importance driven compositing model. | |
Color | m_BackColor |
The background color. | |
ProgressWin * | m_ProgressWin |
The progress bar. | |
Thread * | m_GUIHandler |
Rendering thread. | |
IOpenGLCanvas * | m_Canvas |
The openGL canvas. | |
bool | m_IsTwoLevel |
Two level rendering flag. | |
bool | m_IsImportance |
Importance driven rendering thread. | |
char | m_GradientEstimationMode |
The gradient estimation mode. | |
char | m_DensityInterpolationMode |
The density interpolation mode. | |
char | m_GradientInterpolationMode |
The gradient interpolation mode. | |
char | m_VoxelIDInterpolationMode |
The voxelID interpolation mode. | |
double | m_SamplingDistance |
The sampling distance. | |
double | m_ThresholdOpacity |
The opacity threshold. | |
double | m_ThresholdGradient |
The gradient magnitude threshold. | |
unsigned char m_FrameBuffer | __gc [] |
The framebuffer for the rendered image. | |
Static Private Attributes | |
static const int | ENTRYPOINT = 0 |
Entrypoint. | |
static const int | EXITPOINT = 1 |
Exitpoint. |
|
Standard constructor.
|
|
Constructor.
|
|
Standard destructor.
|
|
Calculates the intersection points of a ray with the volume.
|
|
Does importance driven raycasting.
|
|
Does normal raycasting.
|
|
Does two-level raycasting.
|
|
Generates the footprint object.
|
|
Returns the volume dataset.
|
|
Returns the image plane.
|
|
Returns the framebuffer.
|
|
Sets the volume dataset.
|
|
Sets the density interpolation mode.
|
|
Sets the gradient estimation mode.
|
|
Sets the gradient interpolation mode.
|
|
Sets the gradient threshold.
|
|
Sets the image plane.
|
|
Sets the importance driven rendering flag.
|
|
Sets the opacity threshold.
|
|
Sets the sampling distance.
|
|
Sets the two-level rendering flag.
|
|
Sets the voxelID interpolation mode.
|
|
Sets the GUI handler.
|
|
Sets the openGL canvas.
|
|
Sets the progress bar.
|
|
Starts the rendering process.
|