VTK
|
Perform part of the rendering of a vtkRenderer. More...
#include <vtkRenderPass.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkRenderPass * | NewInstance () 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 vtkRenderPass * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () 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 |
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.
typedef vtkObject vtkRenderPass::Superclass |
Reimplemented from vtkObject.
Reimplemented in vtkSobelGradientMagnitudePass, vtkGaussianBlurPass, vtkShadowMapPass, vtkShadowMapBakerPass, vtkDepthPeelingPass, vtkCompositeRGBAPass, vtkCompositeZPass, vtkDefaultPass, vtkCameraPass, vtkSequencePass, vtkLightsPass, vtkOpaquePass, vtkOverlayPass, vtkTranslucentPass, vtkVolumetricPass, vtkImageProcessingPass, vtkClearZPass, and vtkClientServerCompositePass.
Definition at line 57 of file vtkRenderPass.h.
vtkRenderPass::vtkRenderPass | ( | ) | [protected] |
Default constructor. Do nothing.
virtual vtkRenderPass::~vtkRenderPass | ( | ) | [protected, virtual] |
Destructor. Do nothing.
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.
static vtkRenderPass* vtkRenderPass::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
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] |
Reimplemented from vtkObject.
Reimplemented in vtkSobelGradientMagnitudePass, vtkGaussianBlurPass, vtkShadowMapPass, vtkShadowMapBakerPass, vtkDepthPeelingPass, vtkCompositeRGBAPass, vtkCompositeZPass, vtkDefaultPass, vtkCameraPass, vtkSequencePass, vtkLightsPass, vtkOpaquePass, vtkOverlayPass, vtkTranslucentPass, vtkVolumetricPass, vtkImageProcessingPass, vtkClearZPass, and vtkClientServerCompositePass.
vtkRenderPass* vtkRenderPass::NewInstance | ( | ) | const |
Reimplemented from vtkObject.
Reimplemented in vtkSobelGradientMagnitudePass, vtkGaussianBlurPass, vtkShadowMapPass, vtkShadowMapBakerPass, vtkDepthPeelingPass, vtkCompositeRGBAPass, vtkCompositeZPass, vtkDefaultPass, vtkCameraPass, vtkSequencePass, vtkLightsPass, vtkOpaquePass, vtkOverlayPass, vtkTranslucentPass, vtkVolumetricPass, vtkImageProcessingPass, vtkClearZPass, and vtkClientServerCompositePass.
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] |
Perform rendering according to a render state s
. It modifies NumberOfRenderedProps.
Implemented in vtkSobelGradientMagnitudePass, vtkShadowMapBakerPass, vtkGaussianBlurPass, vtkShadowMapPass, vtkDepthPeelingPass, vtkCompositeRGBAPass, vtkCompositeZPass, vtkDefaultPass, vtkCameraPass, vtkSequencePass, vtkLightsPass, vtkOpaquePass, vtkOverlayPass, vtkTranslucentPass, vtkVolumetricPass, vtkClearZPass, and vtkClientServerCompositePass.
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 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.
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::UpdateGeometry | ( | vtkRenderer * | renderer | ) | [protected] |
Call UpdateGeometry() 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 112 of file vtkRenderPass.h.