VTK  9.3.1
vtkHiddenLineRemovalPass.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
3 
13 #ifndef vtkHiddenLineRemovalPass_h
14 #define vtkHiddenLineRemovalPass_h
15 
16 #include "vtkOpenGLRenderPass.h"
17 #include "vtkRenderingOpenGL2Module.h" // For export macro
18 
19 #include <vector> // For std::vector!
20 
21 VTK_ABI_NAMESPACE_BEGIN
22 class vtkProp;
23 class vtkViewport;
24 
25 class VTKRENDERINGOPENGL2_EXPORT vtkHiddenLineRemovalPass : public vtkOpenGLRenderPass
26 {
27 public:
28  static vtkHiddenLineRemovalPass* New();
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
32  void Render(const vtkRenderState* s) override;
33 
37  static bool WireframePropsExist(vtkProp** propArray, int nProps);
38 
39 protected:
41  ~vtkHiddenLineRemovalPass() override;
42 
43  void SetRepresentation(std::vector<vtkProp*>& props, int repr);
44  int RenderProps(std::vector<vtkProp*>& props, vtkViewport* vp);
45 
46 private:
48  void operator=(const vtkHiddenLineRemovalPass&) = delete;
49 };
50 
51 VTK_ABI_NAMESPACE_END
52 #endif // vtkHiddenLineRemovalPass_h
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:45
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for Viewports
Definition: vtkViewport.h:44
Context in which a vtkRenderPass will render.
a simple class to control print indentation
Definition: vtkIndent.h:28
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...
Abstract render pass with shader modifications.