VTK  9.1.0
vtkHiddenLineRemovalPass.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkHiddenLineRemovalPass.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=========================================================================*/
15
25#ifndef vtkHiddenLineRemovalPass_h
26#define vtkHiddenLineRemovalPass_h
27
28#include "vtkOpenGLRenderPass.h"
29#include "vtkRenderingOpenGL2Module.h" // For export macro
30
31#include <vector> // For std::vector!
32
33class vtkProp;
34class vtkViewport;
35
36class VTKRENDERINGOPENGL2_EXPORT vtkHiddenLineRemovalPass : public vtkOpenGLRenderPass
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
43 void Render(const vtkRenderState* s) override;
44
48 static bool WireframePropsExist(vtkProp** propArray, int nProps);
49
50protected:
53
54 void SetRepresentation(std::vector<vtkProp*>& props, int repr);
55 int RenderProps(std::vector<vtkProp*>& props, vtkViewport* vp);
56
57private:
59 void operator=(const vtkHiddenLineRemovalPass&) = delete;
60};
61
62#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:113
Abstract render pass with shader modifications.
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:67
Context in which a vtkRenderPass will render.
abstract specification for Viewports
Definition: vtkViewport.h:47