VTK  9.2.6
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 =========================================================================*/
75 #ifndef vtkStripper_h
76 #define vtkStripper_h
77 
78 #include "vtkFiltersCoreModule.h" // For export macro
79 #include "vtkPolyDataAlgorithm.h"
80 
81 class VTKFILTERSCORE_EXPORT vtkStripper : public vtkPolyDataAlgorithm
82 {
83 public:
85  void PrintSelf(ostream& os, vtkIndent indent) override;
86 
90  static vtkStripper* New();
91 
93 
97  vtkSetClampMacro(MaximumLength, int, 4, 100000);
98  vtkGetMacro(MaximumLength, int);
100 
102 
106  vtkBooleanMacro(PassCellDataAsFieldData, vtkTypeBool);
107  vtkSetMacro(PassCellDataAsFieldData, vtkTypeBool);
108  vtkGetMacro(PassCellDataAsFieldData, vtkTypeBool);
110 
112 
118  vtkSetMacro(PassThroughCellIds, vtkTypeBool);
119  vtkGetMacro(PassThroughCellIds, vtkTypeBool);
120  vtkBooleanMacro(PassThroughCellIds, vtkTypeBool);
122 
124 
130  vtkSetMacro(PassThroughPointIds, vtkTypeBool);
131  vtkGetMacro(PassThroughPointIds, vtkTypeBool);
132  vtkBooleanMacro(PassThroughPointIds, vtkTypeBool);
134 
136 
141  vtkSetMacro(JoinContiguousSegments, vtkTypeBool);
142  vtkGetMacro(JoinContiguousSegments, vtkTypeBool);
143  vtkBooleanMacro(JoinContiguousSegments, vtkTypeBool);
145 
146 protected:
148  ~vtkStripper() override = default;
149 
150  // Usual data generation method
152 
158 
159 private:
160  vtkStripper(const vtkStripper&) = delete;
161  void operator=(const vtkStripper&) = delete;
162 };
163 
164 #endif
a simple class to control print indentation
Definition: vtkIndent.h:49
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:82
vtkTypeBool PassThroughPointIds
Definition: vtkStripper.h:156
static vtkStripper * New()
Construct object with MaximumLength set to 1000.
vtkTypeBool JoinContiguousSegments
Definition: vtkStripper.h:157
~vtkStripper() override=default
vtkTypeBool PassThroughCellIds
Definition: vtkStripper.h:155
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:154
int MaximumLength
Definition: vtkStripper.h:153
int vtkTypeBool
Definition: vtkABI.h:69