VTK  9.2.20230320
vtkStripper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkStripper.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 =========================================================================*/
175 #ifndef vtkStripper_h
176 #define vtkStripper_h
177 
178 #include "vtkFiltersCoreModule.h" // For export macro
179 #include "vtkPolyDataAlgorithm.h"
180 
181 VTK_ABI_NAMESPACE_BEGIN
182 class VTKFILTERSCORE_EXPORT vtkStripper : public vtkPolyDataAlgorithm
183 {
184 public:
186  void PrintSelf(ostream& os, vtkIndent indent) override;
187 
191  static vtkStripper* New();
192 
194 
198  vtkSetClampMacro(MaximumLength, int, 4, 100000);
199  vtkGetMacro(MaximumLength, int);
201 
203 
207  vtkBooleanMacro(PassCellDataAsFieldData, vtkTypeBool);
208  vtkSetMacro(PassCellDataAsFieldData, vtkTypeBool);
209  vtkGetMacro(PassCellDataAsFieldData, vtkTypeBool);
211 
213 
219  vtkSetMacro(PassThroughCellIds, vtkTypeBool);
220  vtkGetMacro(PassThroughCellIds, vtkTypeBool);
221  vtkBooleanMacro(PassThroughCellIds, vtkTypeBool);
223 
225 
231  vtkSetMacro(PassThroughPointIds, vtkTypeBool);
232  vtkGetMacro(PassThroughPointIds, vtkTypeBool);
233  vtkBooleanMacro(PassThroughPointIds, vtkTypeBool);
235 
237 
242  vtkSetMacro(JoinContiguousSegments, vtkTypeBool);
243  vtkGetMacro(JoinContiguousSegments, vtkTypeBool);
244  vtkBooleanMacro(JoinContiguousSegments, vtkTypeBool);
246 
247 protected:
249  ~vtkStripper() override = default;
250 
251  // Usual data generation method
253 
259 
260 private:
261  vtkStripper(const vtkStripper&) = delete;
262  void operator=(const vtkStripper&) = delete;
263 };
264 
265 VTK_ABI_NAMESPACE_END
266 #endif
a simple class to control print indentation
Definition: vtkIndent.h:120
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
create triangle strips and/or poly-lines
Definition: vtkStripper.h:183
vtkTypeBool PassThroughPointIds
Definition: vtkStripper.h:257
static vtkStripper * New()
Construct object with MaximumLength set to 1000.
vtkTypeBool JoinContiguousSegments
Definition: vtkStripper.h:258
~vtkStripper() override=default
vtkTypeBool PassThroughCellIds
Definition: vtkStripper.h:256
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool PassCellDataAsFieldData
Definition: vtkStripper.h:255
int MaximumLength
Definition: vtkStripper.h:254
int vtkTypeBool
Definition: vtkABI.h:71