#include <vtkRenderPass.h>
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 53 of file vtkRenderPass.h.
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
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 vtkRenderPass * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkRenderPass () | |
virtual | ~vtkRenderPass () |
void | UpdateCamera (vtkRenderer *renderer) |
void | ClearLights (vtkRenderer *renderer) |
void | UpdateLightGeometry (vtkRenderer *renderer) |
void | UpdateLights (vtkRenderer *renderer) |
void | SetLastRenderingUsedDepthPeeling (vtkRenderer *renderer, bool value) |
Protected Attributes | |
int | NumberOfRenderedProps |
typedef vtkObject vtkRenderPass::Superclass |
Reimplemented from vtkObject.
Reimplemented in vtkCompositeRGBAPass, vtkCompositeZPass, vtkCameraPass, vtkClearZPass, vtkDefaultPass, vtkDepthPeelingPass, vtkGaussianBlurPass, vtkImageProcessingPass, vtkLightsPass, vtkOpaquePass, vtkOverlayPass, vtkSequencePass, vtkShadowMapPass, vtkSobelGradientMagnitudePass, vtkTranslucentPass, and vtkVolumetricPass.
Definition at line 56 of file vtkRenderPass.h.
vtkRenderPass::vtkRenderPass | ( | ) | [protected] |
Default constructor. Do nothing.
virtual vtkRenderPass::~vtkRenderPass | ( | ) | [protected, virtual] |
Destructor. Do nothing.
virtual const char* vtkRenderPass::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkObject.
Reimplemented in vtkCompositeRGBAPass, vtkCompositeZPass, vtkCameraPass, vtkClearZPass, vtkDefaultPass, vtkDepthPeelingPass, vtkGaussianBlurPass, vtkImageProcessingPass, vtkLightsPass, vtkOpaquePass, vtkOverlayPass, vtkSequencePass, vtkShadowMapPass, vtkSobelGradientMagnitudePass, vtkTranslucentPass, and vtkVolumetricPass.
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 vtkCompositeRGBAPass, vtkCompositeZPass, vtkCameraPass, vtkClearZPass, vtkDefaultPass, vtkDepthPeelingPass, vtkGaussianBlurPass, vtkImageProcessingPass, vtkLightsPass, vtkOpaquePass, vtkOverlayPass, vtkSequencePass, vtkShadowMapPass, vtkSobelGradientMagnitudePass, vtkTranslucentPass, and vtkVolumetricPass.
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 vtkCompositeRGBAPass, vtkCompositeZPass, vtkCameraPass, vtkClearZPass, vtkDefaultPass, vtkDepthPeelingPass, vtkGaussianBlurPass, vtkImageProcessingPass, vtkLightsPass, vtkOpaquePass, vtkOverlayPass, vtkSequencePass, vtkShadowMapPass, vtkSobelGradientMagnitudePass, vtkTranslucentPass, and vtkVolumetricPass.
static vtkRenderPass* vtkRenderPass::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkObject.
Reimplemented in vtkCompositeRGBAPass, vtkCompositeZPass, vtkCameraPass, vtkClearZPass, vtkDefaultPass, vtkDepthPeelingPass, vtkGaussianBlurPass, vtkImageProcessingPass, vtkLightsPass, vtkOpaquePass, vtkOverlayPass, vtkSequencePass, vtkShadowMapPass, vtkSobelGradientMagnitudePass, vtkTranslucentPass, and vtkVolumetricPass.
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 vtkCompositeRGBAPass, vtkCompositeZPass, vtkCameraPass, vtkClearZPass, vtkDefaultPass, vtkDepthPeelingPass, vtkGaussianBlurPass, vtkImageProcessingPass, vtkLightsPass, vtkOpaquePass, vtkOverlayPass, vtkSequencePass, vtkShadowMapPass, vtkSobelGradientMagnitudePass, vtkTranslucentPass, and vtkVolumetricPass.
virtual void vtkRenderPass::Render | ( | const vtkRenderState * | s | ) | [pure virtual] |
Perform rendering according to a render state s
. It modifies NumberOfRenderedProps.
Implemented in vtkCompositeRGBAPass, vtkCompositeZPass, vtkCameraPass, vtkClearZPass, vtkDefaultPass, vtkDepthPeelingPass, vtkGaussianBlurPass, vtkLightsPass, vtkOpaquePass, vtkOverlayPass, vtkSequencePass, vtkShadowMapPass, vtkSobelGradientMagnitudePass, vtkTranslucentPass, and vtkVolumetricPass.
virtual int vtkRenderPass::GetNumberOfRenderedProps | ( | ) | [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.
Reimplemented in vtkCompositeRGBAPass, vtkCompositeZPass, vtkCameraPass, vtkDepthPeelingPass, vtkGaussianBlurPass, vtkImageProcessingPass, vtkSequencePass, vtkShadowMapPass, and vtkSobelGradientMagnitudePass.
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.
void vtkRenderPass::ClearLights | ( | vtkRenderer * | renderer | ) | [protected] |
Call ClearLights() on Renderer. See note about UpdateCamera().
void vtkRenderPass::UpdateLightGeometry | ( | vtkRenderer * | renderer | ) | [protected] |
Call UpdateLightGeometry() on Renderer. See note about UpdateCamera().
void vtkRenderPass::UpdateLights | ( | vtkRenderer * | renderer | ) | [protected] |
Call UpdateLights() on Renderer. See note about UpdateCamera().
void vtkRenderPass::SetLastRenderingUsedDepthPeeling | ( | vtkRenderer * | renderer, | |
bool | value | |||
) | [protected] |
Modify protected member LastRenderingUsedDepthPeeling on Renderer. See note about UpdateCamera().
int vtkRenderPass::NumberOfRenderedProps [protected] |
Definition at line 107 of file vtkRenderPass.h.