VTK  9.1.0
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 =========================================================================*/
57 #ifndef vtkStripper_h
58 #define vtkStripper_h
59 
60 #include "vtkFiltersCoreModule.h" // For export macro
61 #include "vtkPolyDataAlgorithm.h"
62 
63 class VTKFILTERSCORE_EXPORT vtkStripper : public vtkPolyDataAlgorithm
64 {
65 public:
67  void PrintSelf(ostream& os, vtkIndent indent) override;
68 
72  static vtkStripper* New();
73 
75 
79  vtkSetClampMacro(MaximumLength, int, 4, 100000);
80  vtkGetMacro(MaximumLength, int);
82 
84 
88  vtkBooleanMacro(PassCellDataAsFieldData, vtkTypeBool);
89  vtkSetMacro(PassCellDataAsFieldData, vtkTypeBool);
90  vtkGetMacro(PassCellDataAsFieldData, vtkTypeBool);
92 
94 
100  vtkSetMacro(PassThroughCellIds, vtkTypeBool);
101  vtkGetMacro(PassThroughCellIds, vtkTypeBool);
102  vtkBooleanMacro(PassThroughCellIds, vtkTypeBool);
104 
106 
112  vtkSetMacro(PassThroughPointIds, vtkTypeBool);
113  vtkGetMacro(PassThroughPointIds, vtkTypeBool);
114  vtkBooleanMacro(PassThroughPointIds, vtkTypeBool);
116 
118 
123  vtkSetMacro(JoinContiguousSegments, vtkTypeBool);
124  vtkGetMacro(JoinContiguousSegments, vtkTypeBool);
125  vtkBooleanMacro(JoinContiguousSegments, vtkTypeBool);
127 
128 protected:
130  ~vtkStripper() override = default;
131 
132  // Usual data generation method
134 
140 
141 private:
142  vtkStripper(const vtkStripper&) = delete;
143  void operator=(const vtkStripper&) = delete;
144 };
145 
146 #endif
a simple class to control print indentation
Definition: vtkIndent.h:34
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:64
vtkTypeBool PassThroughPointIds
Definition: vtkStripper.h:138
static vtkStripper * New()
Construct object with MaximumLength set to 1000.
vtkTypeBool JoinContiguousSegments
Definition: vtkStripper.h:139
~vtkStripper() override=default
vtkTypeBool PassThroughCellIds
Definition: vtkStripper.h:137
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:136
int MaximumLength
Definition: vtkStripper.h:135
int vtkTypeBool
Definition: vtkABI.h:69