VTK
vtkPointFillPass.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPointFillPass.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef vtkPointFillPass_h
29 #define vtkPointFillPass_h
30 
31 #include "vtkRenderingOpenGL2Module.h" // For export macro
33 
34 class vtkDepthPeelingPassLayerList; // Pimpl
36 class vtkOpenGLHelper;
38 class vtkTextureObject;
39 
40 class VTKRENDERINGOPENGL2_EXPORT vtkPointFillPass : public vtkDepthImageProcessingPass
41 {
42 public:
43  static vtkPointFillPass *New();
45  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
46 
51  void Render(const vtkRenderState *s) VTK_OVERRIDE;
52 
58  void ReleaseGraphicsResources(vtkWindow *w) VTK_OVERRIDE;
59 
61 
67  vtkSetMacro(CandidatePointRatio,float);
68  vtkGetMacro(CandidatePointRatio,float);
70 
72 
78  vtkSetMacro(MinimumCandidateAngle,float);
79  vtkGetMacro(MinimumCandidateAngle,float);
81 
82  protected:
87 
91  ~vtkPointFillPass() VTK_OVERRIDE;
92 
96  vtkOpenGLFramebufferObject *FrameBufferObject;
97  vtkTextureObject *Pass1; // render target for the scene
98  vtkTextureObject *Pass1Depth; // render target for the depth
99 
100  // Structures for the various cell types we render.
101  vtkOpenGLHelper *BlurProgram;
102 
103  float CandidatePointRatio;
104  float MinimumCandidateAngle;
105 
106  private:
107  vtkPointFillPass(const vtkPointFillPass&) VTK_DELETE_FUNCTION;
108  void operator=(const vtkPointFillPass&) VTK_DELETE_FUNCTION;
109 };
110 
111 #endif
OpenGL rendering window.
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
Implement a post-processing fillpass.
Context in which a vtkRenderPass will render.
a simple class to control print indentation
Definition: vtkIndent.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Internal class which encapsulates OpenGL FramebufferObject.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
abstracts an OpenGL texture object.
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Convenient class for post-processing passes.