VTK: Rendering/OpenGL2/vtkPointFillPass.h Source File

| VTK 9.3.1

vtkPointFillPass.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
19 #ifndef vtkPointFillPass_h
20 #define vtkPointFillPass_h
21
22 #include "vtkDepthImageProcessingPass.h"
23 #include "vtkRenderingOpenGL2Module.h" // For export macro
24
25 VTK_ABI_NAMESPACE_BEGIN
26 class vtkDepthPeelingPassLayerList; // Pimpl
27 class vtkOpenGLFramebufferObject;
28 class vtkOpenGLQuadHelper;
29 class vtkOpenGLRenderWindow;
30 class vtkTextureObject;
31
32 class VTKRENDERINGOPENGL2_EXPORT vtkPointFillPass : public vtkDepthImageProcessingPass
33 {
34 public:
35 static vtkPointFillPass* New();
36 vtkTypeMacro(vtkPointFillPass, vtkDepthImageProcessingPass);
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
43 void Render(const vtkRenderState* s) override;
44
50 void ReleaseGraphicsResources(vtkWindow* w) override;
51
53
59 vtkSetMacro(CandidatePointRatio, float);
60 vtkGetMacro(CandidatePointRatio, float);
62
64
70 vtkSetMacro(MinimumCandidateAngle, float);
71 vtkGetMacro(MinimumCandidateAngle, float);
73
74 protected:
78 vtkPointFillPass();
79
83 ~vtkPointFillPass() override;
84
88 vtkOpenGLFramebufferObject* FrameBufferObject;
89 vtkTextureObject* Pass1; // render target for the scene
90 vtkTextureObject* Pass1Depth; // render target for the depth
91
92 vtkOpenGLQuadHelper* QuadHelper;
93
94 float CandidatePointRatio;
95 float MinimumCandidateAngle;
96
97 private:
98 vtkPointFillPass(const vtkPointFillPass&) = delete;
99 void operator=(const vtkPointFillPass&) = delete;
100 };
101
102 VTK_ABI_NAMESPACE_END
103 #endif
vtkDepthImageProcessingPass
Convenient class for post-processing passes.
Definition: vtkDepthImageProcessingPass.h:36
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkOpenGLFramebufferObject
Internal class which encapsulates OpenGL FramebufferObject.
Definition: vtkOpenGLFramebufferObject.h:174
vtkOpenGLQuadHelper
Class to make rendering a full screen quad easier.
Definition: vtkOpenGLQuadHelper.h:53
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:53
vtkPointFillPass
Implement a post-processing fillpass.
Definition: vtkPointFillPass.h:33
vtkPointFillPass::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPointFillPass::Render
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkPointFillPass::~vtkPointFillPass
~vtkPointFillPass() override
Destructor.
vtkPointFillPass::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
vtkPointFillPass::vtkPointFillPass
vtkPointFillPass()
Default constructor.
vtkPointFillPass::MinimumCandidateAngle
float MinimumCandidateAngle
Definition: vtkPointFillPass.h:95
vtkPointFillPass::Pass1Depth
vtkTextureObject * Pass1Depth
Definition: vtkPointFillPass.h:90
vtkPointFillPass::FrameBufferObject
vtkOpenGLFramebufferObject * FrameBufferObject
Graphics resources.
Definition: vtkPointFillPass.h:88
vtkPointFillPass::QuadHelper
vtkOpenGLQuadHelper * QuadHelper
Definition: vtkPointFillPass.h:92
vtkPointFillPass::New
static vtkPointFillPass * New()
vtkPointFillPass::Pass1
vtkTextureObject * Pass1
Definition: vtkPointFillPass.h:89
vtkPointFillPass::CandidatePointRatio
float CandidatePointRatio
Definition: vtkPointFillPass.h:94
vtkRenderState
Context in which a vtkRenderPass will render.
Definition: vtkRenderState.h:30
vtkTextureObject
abstracts an OpenGL texture object.
Definition: vtkTextureObject.h:33
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
vtkDepthImageProcessingPass.h