VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
19 
20 #include <vector> // For std::vector!
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class vtkProp;
24 class vtkViewport;
25 
26 class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkHiddenLineRemovalPass
27  : public vtkOpenGLRenderPass
28 {
29 public:
30  static vtkHiddenLineRemovalPass* New();
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
34  void Render(const vtkRenderState* s) override;
35 
39  static bool WireframePropsExist(vtkProp** propArray, int nProps);
40 
41 protected:
43  ~vtkHiddenLineRemovalPass() override;
44 
45  void SetRepresentation(std::vector<vtkProp*>& props, int repr);
46  int RenderProps(std::vector<vtkProp*>& props, vtkViewport* vp);
47 
48 private:
50  void operator=(const vtkHiddenLineRemovalPass&) = delete;
51 };
52 
53 VTK_ABI_NAMESPACE_END
54 #endif // vtkHiddenLineRemovalPass_h
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:49
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:46
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.
#define VTK_MARSHALAUTO
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.