VTK
|
Implement an Order Independent Transparency render pass. More...
#include <vtkDepthPeelingPass.h>
Public Types | |
typedef vtkRenderPass | Superclass |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | ReleaseGraphicsResources (vtkWindow *w) |
virtual void | Render (const vtkRenderState *s) |
virtual vtkRenderPass * | GetTranslucentPass () |
virtual void | SetTranslucentPass (vtkRenderPass *translucentPass) |
virtual void | SetOcclusionRatio (double) |
virtual double | GetOcclusionRatio () |
virtual void | SetMaximumNumberOfPeels (int) |
virtual int | GetMaximumNumberOfPeels () |
virtual bool | GetLastRenderingUsedDepthPeeling () |
![]() | |
virtual int | GetNumberOfRenderedProps () |
![]() | |
virtual void | DebugOn () |
virtual void | DebugOff () |
unsigned char | GetDebug () |
void | SetDebug (unsigned char debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &os) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkDepthPeelingPass * | New () |
static int | IsTypeOf (const char *type) |
static vtkDepthPeelingPass * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkDepthPeelingPass () | |
virtual | ~vtkDepthPeelingPass () |
void | CheckSupport (vtkOpenGLRenderWindow *w) |
void | CheckCompilation (unsigned int fragmentShader) |
int | RenderPeel (const vtkRenderState *s, int layer) |
![]() | |
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) |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &os) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
vtkRenderPass * | TranslucentPass |
vtkTimeStamp | CheckTime |
bool | IsChecked |
bool | IsSupported |
unsigned int | DepthFormat |
double | OcclusionRatio |
int | MaximumNumberOfPeels |
bool | LastRenderingUsedDepthPeeling |
vtkDepthPeelingPassLayerList * | LayerList |
unsigned int | OpaqueLayerZ |
unsigned int | TransparentLayerZ |
int | DepthPeelingHigherLayer |
vtkShaderProgram2 * | Prog |
vtkShader2 * | Shader |
int | ShadowTexUnit |
int | OpaqueShadowTexUnit |
int | ViewportX |
int | ViewportY |
int | ViewportWidth |
int | ViewportHeight |
![]() | |
int | NumberOfRenderedProps |
![]() | |
unsigned char | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
int | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Implement an Order Independent Transparency render pass.
Render the translucent polygonal geometry of a scene without sorting polygons in the view direction.
This pass expects an initialized depth buffer and color buffer. Initialized buffers means they have been cleared with farest z-value and background color/gradient/transparent color. An opaque pass may have been performed right after the initialization.
The depth peeling algorithm works by rendering the translucent polygonal geometry multiple times (once for each peel). The actually rendering of the translucent polygonal geometry is peformed by its delegate TranslucentPass. This delegate is therefore used multiple times.
Its delegate is usually set to a vtkTranslucentPass.
Definition at line 51 of file vtkDepthPeelingPass.h.
Definition at line 55 of file vtkDepthPeelingPass.h.
|
protected |
Is rendering at translucent geometry stage using depth peeling and rendering a layer other than the first one? (Boolean value) If so, the uniform variables UseTexture and Texture can be set. (Used by vtkOpenGLProperty or vtkOpenGLTexture) int GetDepthPeelingHigherLayer();
Default constructor. TranslucentPass is set to NULL.
|
protectedvirtual |
Destructor.
|
static |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
|
virtual |
Reimplemented from vtkRenderPass.
|
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 vtkRenderPass.
|
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 vtkRenderPass.
|
static |
Reimplemented from vtkRenderPass.
|
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 vtkRenderPass.
|
virtual |
Perform rendering according to a render state s
.
Implements vtkRenderPass.
|
virtual |
Release graphics resources and ask components to release their own resources.
Reimplemented from vtkRenderPass.
|
virtual |
Delegate for rendering the translucent polygonal geometry. If it is NULL, nothing will be rendered and a warning will be emitted. It is usually set to a vtkTranslucentPass. Initial value is a NULL pointer.
|
virtual |
Delegate for rendering the translucent polygonal geometry. If it is NULL, nothing will be rendered and a warning will be emitted. It is usually set to a vtkTranslucentPass. Initial value is a NULL pointer.
|
virtual |
In case of use of depth peeling technique for rendering translucent material, define the threshold under which the algorithm stops to iterate over peel layers. This is the ratio of the number of pixels that have been touched by the last layer over the total number of pixels of the viewport area. Initial value is 0.0, meaning rendering have to be exact. Greater values may speed-up the rendering with small impact on the quality.
|
virtual |
In case of use of depth peeling technique for rendering translucent material, define the threshold under which the algorithm stops to iterate over peel layers. This is the ratio of the number of pixels that have been touched by the last layer over the total number of pixels of the viewport area. Initial value is 0.0, meaning rendering have to be exact. Greater values may speed-up the rendering with small impact on the quality.
|
virtual |
In case of depth peeling, define the maximum number of peeling layers. Initial value is 4. A special value of 0 means no maximum limit. It has to be a positive value.
|
virtual |
In case of depth peeling, define the maximum number of peeling layers. Initial value is 4. A special value of 0 means no maximum limit. It has to be a positive value.
|
virtual |
Tells if the last time this pass was executed, the depth peeling algorithm was actually used. Initial value is false.
|
protected |
Check if depth peeling is supported by the current OpenGL context.
|
protected |
Check the compilation status of some fragment shader source.
|
protected |
Render a peel layer. If there is no more GPU RAM to save the texture, return false otherwise returns true. Also if layer==0 and no prop have been rendered (there is no translucent geometry), it returns false.
|
protected |
Definition at line 133 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 134 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 135 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 136 of file vtkDepthPeelingPass.h.
|
protected |
Cache viewport values for depth peeling.
Definition at line 140 of file vtkDepthPeelingPass.h.
|
protected |
Cache viewport values for depth peeling.
Definition at line 141 of file vtkDepthPeelingPass.h.
|
protected |
Cache viewport values for depth peeling.
Definition at line 142 of file vtkDepthPeelingPass.h.
|
protected |
Cache viewport values for depth peeling.
Definition at line 143 of file vtkDepthPeelingPass.h.
|
protected |
Actual depth format: vtkgl::DEPTH_COMPONENT16_ARB or vtkgl::DEPTH_COMPONENT24_ARB
Definition at line 148 of file vtkDepthPeelingPass.h.
|
protected |
In case of use of depth peeling technique for rendering translucent material, define the threshold under which the algorithm stops to iterate over peel layers. This is the ratio of the number of pixels that have been touched by the last layer over the total number of pixels of the viewport area. Initial value is 0.0, meaning rendering have to be exact. Greater values may speed-up the rendering with small impact on the quality.
Definition at line 157 of file vtkDepthPeelingPass.h.
|
protected |
In case of depth peeling, define the maximum number of peeling layers. Initial value is 4. A special value of 0 means no maximum limit. It has to be a positive value.
Definition at line 162 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 164 of file vtkDepthPeelingPass.h.
|
protected |
Used by the depth peeling technique to store the transparency layers.
Definition at line 167 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 169 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 170 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 177 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 179 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 180 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 182 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 183 of file vtkDepthPeelingPass.h.