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 =========================================================================*/
66 #ifndef vtkStripper_h
67 #define vtkStripper_h
68 
69 #include "vtkFiltersCoreModule.h" // For export macro
70 #include "vtkPolyDataAlgorithm.h"
71 
72 class VTKFILTERSCORE_EXPORT vtkStripper : public vtkPolyDataAlgorithm
73 {
74 public:
76  void PrintSelf(ostream& os, vtkIndent indent) override;
77 
81  static vtkStripper* New();
82 
84 
88  vtkSetClampMacro(MaximumLength, int, 4, 100000);
89  vtkGetMacro(MaximumLength, int);
91 
93 
97  vtkBooleanMacro(PassCellDataAsFieldData, vtkTypeBool);
98  vtkSetMacro(PassCellDataAsFieldData, vtkTypeBool);
99  vtkGetMacro(PassCellDataAsFieldData, vtkTypeBool);
101 
103 
109  vtkSetMacro(PassThroughCellIds, vtkTypeBool);
110  vtkGetMacro(PassThroughCellIds, vtkTypeBool);
111  vtkBooleanMacro(PassThroughCellIds, vtkTypeBool);
113 
115 
121  vtkSetMacro(PassThroughPointIds, vtkTypeBool);
122  vtkGetMacro(PassThroughPointIds, vtkTypeBool);
123  vtkBooleanMacro(PassThroughPointIds, vtkTypeBool);
125 
127 
132  vtkSetMacro(JoinContiguousSegments, vtkTypeBool);
133  vtkGetMacro(JoinContiguousSegments, vtkTypeBool);
134  vtkBooleanMacro(JoinContiguousSegments, vtkTypeBool);
136 
137 protected:
138  vtkStripper();
139  ~vtkStripper() override = default;
140 
141  // Usual data generation method
143 
149 
150 private:
151  vtkStripper(const vtkStripper&) = delete;
152  void operator=(const vtkStripper&) = delete;
153 };
154 
155 #endif
vtkTypeBool PassThroughCellIds
Definition: vtkStripper.h:146
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTypeBool JoinContiguousSegments
Definition: vtkStripper.h:148
int MaximumLength
Definition: vtkStripper.h:144
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeBool PassThroughPointIds
Definition: vtkStripper.h:147
create triangle strips and/or poly-lines
Definition: vtkStripper.h:72
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTypeBool PassCellDataAsFieldData
Definition: vtkStripper.h:145
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.