VTK  9.1.0
vtkReverseSense.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkReverseSense.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 =========================================================================*/
90 #ifndef vtkReverseSense_h
91 #define vtkReverseSense_h
92 
93 #include "vtkFiltersCoreModule.h" // For export macro
94 #include "vtkPolyDataAlgorithm.h"
95 
96 class VTKFILTERSCORE_EXPORT vtkReverseSense : public vtkPolyDataAlgorithm
97 {
98 public:
100  void PrintSelf(ostream& os, vtkIndent indent) override;
101 
106  static vtkReverseSense* New();
107 
109 
112  vtkSetMacro(ReverseCells, vtkTypeBool);
113  vtkGetMacro(ReverseCells, vtkTypeBool);
114  vtkBooleanMacro(ReverseCells, vtkTypeBool);
116 
118 
121  vtkSetMacro(ReverseNormals, vtkTypeBool);
122  vtkGetMacro(ReverseNormals, vtkTypeBool);
123  vtkBooleanMacro(ReverseNormals, vtkTypeBool);
125 
126 protected:
128  ~vtkReverseSense() override = default;
129 
130  // Usual data generation method
132 
135 
136 private:
137  vtkReverseSense(const vtkReverseSense&) = delete;
138  void operator=(const vtkReverseSense&) = delete;
139 };
140 
141 #endif
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
reverse the ordering of polygonal cells and/or vertex normals
vtkTypeBool ReverseNormals
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkReverseSense * New()
Construct object so that behavior is to reverse cell ordering and leave normal orientation as is.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkReverseSense() override=default
vtkTypeBool ReverseCells
int vtkTypeBool
Definition: vtkABI.h:69