VTK
|
Implement an Order Independent Transparency render pass. More...
#include <vtkDepthPeelingPass.h>
Public Types | |
typedef vtkRenderPass | Superclass |
typedef vtkRenderPass | Superclass |
![]() | |
typedef vtkObject | Superclass |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkDepthPeelingPass * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | ReleaseGraphicsResources (vtkWindow *w) |
virtual int | IsA (const char *type) |
vtkDepthPeelingPass * | NewInstance () const |
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 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 () |
![]() | |
vtkRenderPass * | NewInstance () const |
vtkRenderPass * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | GetNumberOfRenderedProps () |
virtual int | GetNumberOfRenderedProps () |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool 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) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(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 &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
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 performed by its delegate TranslucentPass. This delegate is therefore used multiple times.
Its delegate is usually set to a vtkTranslucentPass.
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 performed by its delegate TranslucentPass. This delegate is therefore used multiple times.
Its delegate is usually set to a vtkTranslucentPass.
Definition at line 49 of file vtkDepthPeelingPass.h.
Definition at line 53 of file vtkDepthPeelingPass.h.
Definition at line 58 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.
|
protected |
Default constructor. TranslucentPass is set to NULL.
|
protectedvirtual |
Destructor.
|
static |
|
static |
|
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 |
|
protectedvirtual |
Reimplemented from vtkRenderPass.
vtkDepthPeelingPass* vtkDepthPeelingPass::NewInstance | ( | ) | const |
|
virtual |
|
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.
|
static |
|
static |
|
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 |
|
protectedvirtual |
Reimplemented from vtkRenderPass.
vtkDepthPeelingPass* vtkDepthPeelingPass::NewInstance | ( | ) | const |
|
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.
|
static |
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();
Required Key Indicating the texture unit for the opaque z texture unit
|
static |
Required Key Indicating the texture unit for the translucent z texture unit
|
static |
Required Key Indicating the size of the destination
|
protected |
|
protected |
|
protected |
Definition at line 131 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 132 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 133 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 134 of file vtkDepthPeelingPass.h.
|
protected |
Cache viewport values for depth peeling.
Definition at line 138 of file vtkDepthPeelingPass.h.
|
protected |
Cache viewport values for depth peeling.
Definition at line 139 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 |
Actual depth format: vtkgl::DEPTH_COMPONENT16_ARB or vtkgl::DEPTH_COMPONENT24_ARB
Definition at line 146 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 155 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 160 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 162 of file vtkDepthPeelingPass.h.
|
protected |
Used by the depth peeling technique to store the transparency layers.
Definition at line 165 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 167 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 168 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 175 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 177 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 178 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 180 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 181 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 172 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 173 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 174 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 175 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 176 of file vtkDepthPeelingPass.h.
|
protected |
Definition at line 177 of file vtkDepthPeelingPass.h.