VTK  9.5.20250602
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
22VTK_ABI_NAMESPACE_BEGIN
23class vtkProp;
24class vtkViewport;
25
26class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkHiddenLineRemovalPass
27 : public vtkOpenGLRenderPass
28{
29public:
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
41protected:
44
45 void SetRepresentation(std::vector<vtkProp*>& props, int repr);
46 int RenderProps(std::vector<vtkProp*>& props, vtkViewport* vp);
47
48private:
50 void operator=(const vtkHiddenLineRemovalPass&) = delete;
51};
52
53VTK_ABI_NAMESPACE_END
54#endif // vtkHiddenLineRemovalPass_h
~vtkHiddenLineRemovalPass() override
static bool WireframePropsExist(vtkProp **propArray, int nProps)
Returns true if any of the nProps in propArray are rendered as wireframe.
static vtkHiddenLineRemovalPass * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetRepresentation(std::vector< vtkProp * > &props, int repr)
int RenderProps(std::vector< vtkProp * > &props, vtkViewport *vp)
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
a simple class to control print indentation
Definition vtkIndent.h:108
Abstract render pass with shader modifications.
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:66
Context in which a vtkRenderPass will render.
abstract specification for Viewports
Definition vtkViewport.h:66
#define VTK_MARSHALAUTO