VTK: Filters/Core/vtkStripper.h Source File

| VTK 9.3.1

vtkStripper.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
63 #ifndef vtkStripper_h
64 #define vtkStripper_h
65
66 #include "vtkFiltersCoreModule.h" // For export macro
67 #include "vtkPolyDataAlgorithm.h"
68
69 VTK_ABI_NAMESPACE_BEGIN
70 class VTKFILTERSCORE_EXPORT vtkStripper : public vtkPolyDataAlgorithm
71 {
72 public:
73 vtkTypeMacro(vtkStripper, vtkPolyDataAlgorithm);
74 void PrintSelf(ostream& os, vtkIndent indent) override;
75
79 static vtkStripper* New();
80
82
86 vtkSetClampMacro(MaximumLength, int, 4, 100000);
87 vtkGetMacro(MaximumLength, int);
89
91
95 vtkBooleanMacro(PassCellDataAsFieldData, vtkTypeBool);
96 vtkSetMacro(PassCellDataAsFieldData, vtkTypeBool);
97 vtkGetMacro(PassCellDataAsFieldData, vtkTypeBool);
99
101
107 vtkSetMacro(PassThroughCellIds, vtkTypeBool);
108 vtkGetMacro(PassThroughCellIds, vtkTypeBool);
109 vtkBooleanMacro(PassThroughCellIds, vtkTypeBool);
111
113
119 vtkSetMacro(PassThroughPointIds, vtkTypeBool);
120 vtkGetMacro(PassThroughPointIds, vtkTypeBool);
121 vtkBooleanMacro(PassThroughPointIds, vtkTypeBool);
123
125
130 vtkSetMacro(JoinContiguousSegments, vtkTypeBool);
131 vtkGetMacro(JoinContiguousSegments, vtkTypeBool);
132 vtkBooleanMacro(JoinContiguousSegments, vtkTypeBool);
134
135 protected:
136 vtkStripper();
137 ~vtkStripper() override = default;
138
139 // Usual data generation method
140 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
141
142 int MaximumLength;
143 vtkTypeBool PassCellDataAsFieldData;
144 vtkTypeBool PassThroughCellIds;
145 vtkTypeBool PassThroughPointIds;
146 vtkTypeBool JoinContiguousSegments;
147
148 private:
149 vtkStripper(const vtkStripper&) = delete;
150 void operator=(const vtkStripper&) = delete;
151 };
152
153 VTK_ABI_NAMESPACE_END
154 #endif
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:43
vtkStripper
create triangle strips and/or poly-lines
Definition: vtkStripper.h:71
vtkStripper::PassThroughPointIds
vtkTypeBool PassThroughPointIds
Definition: vtkStripper.h:145
vtkStripper::New
static vtkStripper * New()
Construct object with MaximumLength set to 1000.
vtkStripper::vtkStripper
vtkStripper()
vtkStripper::JoinContiguousSegments
vtkTypeBool JoinContiguousSegments
Definition: vtkStripper.h:146
vtkStripper::~vtkStripper
~vtkStripper() override=default
vtkStripper::PassThroughCellIds
vtkTypeBool PassThroughCellIds
Definition: vtkStripper.h:144
vtkStripper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStripper::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkStripper::PassCellDataAsFieldData
vtkTypeBool PassCellDataAsFieldData
Definition: vtkStripper.h:143
vtkStripper::MaximumLength
int MaximumLength
Definition: vtkStripper.h:142
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
vtkPolyDataAlgorithm.h