VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkRenderPass Class Reference

Perform part of the rendering of a vtkRenderer. More...

#include <vtkRenderPass.h>

Inheritance diagram for vtkRenderPass:
Inheritance graph
[legend]
Collaboration diagram for vtkRenderPass:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkRenderPassNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void ReleaseGraphicsResources (vtkWindow *w)
virtual void Render (const vtkRenderState *s)=0
virtual int GetNumberOfRenderedProps ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkRenderPassSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkRenderPass ()
virtual ~vtkRenderPass ()
void UpdateCamera (vtkRenderer *renderer)
void ClearLights (vtkRenderer *renderer)
void UpdateLightGeometry (vtkRenderer *renderer)
void UpdateLights (vtkRenderer *renderer)
void UpdateGeometry (vtkRenderer *renderer)
void SetLastRenderingUsedDepthPeeling (vtkRenderer *renderer, bool value)

Protected Attributes

int NumberOfRenderedProps

Detailed Description

Perform part of the rendering of a vtkRenderer.

vtkRenderPass is a deferred class with a simple deferred method Render. This method performs a rendering pass of the scene described in vtkRenderState. Subclasses define what really happens during rendering.

Directions to write a subclass of vtkRenderPass: It is up to the subclass to decide if it needs to delegate part of its job to some other vtkRenderPass objects ("delegates").

Definition at line 54 of file vtkRenderPass.h.


Member Typedef Documentation


Constructor & Destructor Documentation

Default constructor. Do nothing.

virtual vtkRenderPass::~vtkRenderPass ( ) [protected, virtual]

Destructor. Do nothing.


Member Function Documentation

static int vtkRenderPass::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented in vtkSobelGradientMagnitudePass, vtkGaussianBlurPass, vtkShadowMapPass, vtkShadowMapBakerPass, vtkDepthPeelingPass, vtkCompositeRGBAPass, vtkCompositeZPass, vtkDefaultPass, vtkCameraPass, vtkSequencePass, vtkLightsPass, vtkOpaquePass, vtkOverlayPass, vtkTranslucentPass, vtkVolumetricPass, vtkImageProcessingPass, vtkClearZPass, and vtkClientServerCompositePass.

virtual int vtkRenderPass::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented in vtkSobelGradientMagnitudePass, vtkGaussianBlurPass, vtkShadowMapPass, vtkShadowMapBakerPass, vtkDepthPeelingPass, vtkCompositeRGBAPass, vtkCompositeZPass, vtkDefaultPass, vtkCameraPass, vtkSequencePass, vtkLightsPass, vtkOpaquePass, vtkOverlayPass, vtkTranslucentPass, vtkVolumetricPass, vtkImageProcessingPass, vtkClearZPass, and vtkClientServerCompositePass.

virtual vtkObjectBase* vtkRenderPass::NewInstanceInternal ( ) const [protected, virtual]
void vtkRenderPass::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

Reimplemented in vtkSobelGradientMagnitudePass, vtkGaussianBlurPass, vtkShadowMapPass, vtkShadowMapBakerPass, vtkDepthPeelingPass, vtkCompositeRGBAPass, vtkCompositeZPass, vtkDefaultPass, vtkCameraPass, vtkSequencePass, vtkLightsPass, vtkOpaquePass, vtkOverlayPass, vtkTranslucentPass, vtkVolumetricPass, vtkImageProcessingPass, vtkClearZPass, and vtkClientServerCompositePass.

virtual void vtkRenderPass::Render ( const vtkRenderState s) [pure virtual]

Number of props rendered at the last Render call.

virtual void vtkRenderPass::ReleaseGraphicsResources ( vtkWindow w) [virtual]

Release graphics resources and ask components to release their own resources. Default implementation is empty.

Precondition:
w_exists: w!=0

Reimplemented in vtkSobelGradientMagnitudePass, vtkShadowMapBakerPass, vtkGaussianBlurPass, vtkShadowMapPass, vtkDepthPeelingPass, vtkCompositeRGBAPass, vtkCompositeZPass, vtkCameraPass, vtkSequencePass, vtkClientServerCompositePass, and vtkImageProcessingPass.

void vtkRenderPass::UpdateCamera ( vtkRenderer renderer) [protected]

Call UpdateCamera() on Renderer. This ugly mechanism gives access to a protected method of Renderer to subclasses of vtkRenderPass.

Precondition:
renderer_exists: renderer!=0
void vtkRenderPass::ClearLights ( vtkRenderer renderer) [protected]

Call ClearLights() on Renderer. See note about UpdateCamera().

Precondition:
renderer_exists: renderer!=0
void vtkRenderPass::UpdateLightGeometry ( vtkRenderer renderer) [protected]

Call UpdateLightGeometry() on Renderer. See note about UpdateCamera().

Precondition:
renderer_exists: renderer!=0
void vtkRenderPass::UpdateLights ( vtkRenderer renderer) [protected]

Call UpdateLights() on Renderer. See note about UpdateCamera().

Precondition:
renderer_exists: renderer!=0
void vtkRenderPass::UpdateGeometry ( vtkRenderer renderer) [protected]

Call UpdateGeometry() on Renderer. See note about UpdateCamera().

Precondition:
renderer_exists: renderer!=0
void vtkRenderPass::SetLastRenderingUsedDepthPeeling ( vtkRenderer renderer,
bool  value 
) [protected]

Modify protected member LastRenderingUsedDepthPeeling on Renderer. See note about UpdateCamera().

Precondition:
renderer_exists: renderer!=0

Member Data Documentation

Definition at line 112 of file vtkRenderPass.h.


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