Man Page for vtkRayCaster
Table of Contents

NAME

vtkRayCaster

SYNOPSIS


#include "/opt/vtk-c++/graphics/vtkRayCaster.h"

class VTK_EXPORT vtkRayCaster : public vtkObject

vtkRayCaster();
~vtkRayCaster();
static vtkRayCaster *New() {return new vtkRayCaster;};
const char *GetClassName() {return "vtkRayCaster";};
void PrintSelf(ostream& os, vtkIndent indent);
int Render(vtkRenderer *);
float *GetCurrentColorBuffer() { return (this->cbuffer); };
float *GetCurrentZBuffer() { return (this->zbuffer); };
float *GetPerspectiveViewRays();
void GetViewRaysSize( int size[2] );
float *GetParallelStartPosition( void );
float *GetParallelIncrements( void );
void SetImageScale(int level, float scale);
float GetImageScale(int level);
void SetSelectedImageScaleIndex( int);
int Get SelectedImageScaleIndex();
void SetViewRaysStepSize(int level, float scale);
float GetViewRaysStepSize(int level);
void SetRenderer(vtkRenderer*);
void SetRenderer(vtkRenderer& );
vtkRenderer *GetRenderer();
float GetViewportScaleFactor( vtkRenderer *ren );
float GetViewportStepSize( );
int Get AutomaticScaleAdjustment();
void AutomaticScaleAdjustmentOn( void );
void AutomaticScaleAdjustmentOff( void );
void Set AutomaticScaleLowerLimit( float);
float Get AutomaticScaleLowerLimit();
int GetImageScaleCount( void ) { return VTK_MAX_VIEW_RAYS_LEVEL; };
void Set BilinearImageZoom( int );
int Get BilinearImageZoom();
void BilinearImageZoomOn();
void BilinearImageZoomOff();
float Get TotalRenderTime();

DESCRIPTION

SEE ALSO

DEFINED MACROS

VTK_MAX_VIEW_RAYS_LEVEL 4

SUMMARY

void Set BilinearImageZoom( int )
Set/Get the value of bilinear image zooming.

vtkRayCaster()
Constructor for vtkRayCaster

~vtkRayCaster()
Destructor for vtkRayCaster

void SetImageScale( int level, float scale )
Set the scale factor for a given level. This is used during multi- resolution interactive rendering

float GetImageScale( int level )
Get the scale factor for a given level. This is used during multi- resolution interactive rendering

void AutomaticScaleAdjustmentOn( void )
Turn the automatic scale adjustment on

void AutomaticScaleAdjustmentOff( void )
Turn the automatic scale adjustment off

void GetViewRaysSize(int size[2])
Get the size in pixels of the view rays for the selected scale indexl

float GetViewportScaleFactor( vtkRenderer *ren )
This method returns the scale that should be applied to the viewport for geometric rendering, and for the image in volume rendering. It is either explicitly set (if AutomaticScaleAdjustment is off) or is adjusted automatically to get the desired frame rate.

Note: IMPORTANT!!!! This should only be called once per render!!!

int Render(vtkRenderer *ren)
Main routine to do the volume rendering.


Table of Contents