Previous

Section

<<<

Isosurface Generation using VTK

Next

Section

>>>

VTK Basics

 

 

3.4.2.1. vtkRenderer Functions

 

Below are the functions used to configure the rendering object: 

 

  • void SetBackground( float, float, float )

·     This function actually appears in a superclass of vtkRenderer named vtkViewport.   Just like setting a color for the vtkProperty of vtkActor, this function allows a programmer to set the red, green, and blue values of the background color of the renderer. 

 

  • void ResetCameraClippingRange()

·        This function serves the important purpose of changing the clipping range according to the properties of the actors added to the renderer.  Though the author has misused this particular function by not specifying it before or after a vtkActor was added, this would probably serve a useful purpose if used properly.

                                                                   

  • void AddActor( vtkProp * p )

·        This function will add a property or actor to the renderer.  Because vtkActor is descended from vtkProp, using a vtkActor object is acceptable.

 

  • void RemoveActor( vtkProp * p )

·        This function will remove a property or actor from the renderer.  Again, because vtkActor is descended from vtkProp, using a vtkActor object is acceptable.

 

 

<<< Previous

vtkRenderer

 

Table of Contents

 

Next >>>

vtkRenderWindow