VTK
9.5.20251210
Filters
Modeling
vtkContourLoopExtraction.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
61
62
#ifndef vtkContourLoopExtraction_h
63
#define vtkContourLoopExtraction_h
64
65
#include "vtkFiltersModelingModule.h"
// For export macro
66
#include "
vtkPolyDataAlgorithm.h
"
67
68
#define VTK_LOOP_CLOSURE_OFF 0
69
#define VTK_LOOP_CLOSURE_BOUNDARY 1
70
#define VTK_LOOP_CLOSURE_ALL 2
71
72
#define VTK_OUTPUT_POLYGONS 0
73
#define VTK_OUTPUT_POLYLINES 1
74
#define VTK_OUTPUT_BOTH 2
75
76
VTK_ABI_NAMESPACE_BEGIN
77
class
VTKFILTERSMODELING_EXPORT
vtkContourLoopExtraction
:
public
vtkPolyDataAlgorithm
78
{
79
public
:
81
84
static
vtkContourLoopExtraction
*
New
();
85
vtkTypeMacro(
vtkContourLoopExtraction
,
vtkPolyDataAlgorithm
);
86
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
88
90
96
vtkSetClampMacro(
LoopClosure
,
int
,
VTK_LOOP_CLOSURE_OFF
,
VTK_LOOP_CLOSURE_ALL
);
97
vtkGetMacro(
LoopClosure
,
int
);
98
void
SetLoopClosureToOff
() { this->
SetLoopClosure
(
VTK_LOOP_CLOSURE_OFF
); }
99
void
SetLoopClosureToBoundary
() { this->
SetLoopClosure
(
VTK_LOOP_CLOSURE_BOUNDARY
); }
100
void
SetLoopClosureToAll
() { this->
SetLoopClosure
(
VTK_LOOP_CLOSURE_ALL
); }
101
const
char
*
GetLoopClosureAsString
();
103
105
110
vtkSetMacro(
ScalarThresholding
,
bool
);
111
vtkGetMacro(
ScalarThresholding
,
bool
);
112
vtkBooleanMacro(
ScalarThresholding
,
bool
);
114
116
121
vtkSetVector2Macro(
ScalarRange
,
double
);
122
vtkGetVector2Macro(
ScalarRange
,
double
);
124
126
130
vtkSetVector3Macro(
Normal
,
double
);
131
vtkGetVector3Macro(
Normal
,
double
);
133
135
140
vtkSetClampMacro(
OutputMode
,
int
,
VTK_OUTPUT_POLYGONS
,
VTK_OUTPUT_BOTH
);
141
vtkGetMacro(
OutputMode
,
int
);
142
void
SetOutputModeToPolygons
() { this->
SetOutputMode
(
VTK_OUTPUT_POLYGONS
); }
143
void
SetOutputModeToPolylines
() { this->
SetOutputMode
(
VTK_OUTPUT_POLYLINES
); }
144
void
SetOutputModeToBoth
() { this->
SetOutputMode
(
VTK_OUTPUT_BOTH
); }
145
const
char
*
GetOutputModeAsString
();
147
149
158
vtkSetMacro(
CleanPoints
,
bool
);
159
vtkGetMacro(
CleanPoints
,
bool
);
160
vtkBooleanMacro(
CleanPoints
,
bool
);
162
163
protected
:
164
vtkContourLoopExtraction
();
165
~vtkContourLoopExtraction
()
override
;
166
167
int
LoopClosure
;
168
bool
ScalarThresholding
;
169
double
ScalarRange
[2];
170
double
Normal
[3];
171
int
OutputMode
;
172
bool
CleanPoints
;
173
174
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
175
176
private
:
177
vtkContourLoopExtraction
(
const
vtkContourLoopExtraction
&) =
delete
;
178
void
operator=(
const
vtkContourLoopExtraction
&) =
delete
;
179
};
180
181
VTK_ABI_NAMESPACE_END
182
#endif
vtkContourLoopExtraction::OutputMode
int OutputMode
Definition
vtkContourLoopExtraction.h:171
vtkContourLoopExtraction::ScalarThresholding
bool ScalarThresholding
Definition
vtkContourLoopExtraction.h:168
vtkContourLoopExtraction::~vtkContourLoopExtraction
~vtkContourLoopExtraction() override
vtkContourLoopExtraction::GetOutputModeAsString
const char * GetOutputModeAsString()
Specify the form of the output.
vtkContourLoopExtraction::SetLoopClosure
virtual void SetLoopClosure(int)
Specify whether to close loops or not.
vtkContourLoopExtraction::ScalarRange
double ScalarRange[2]
Definition
vtkContourLoopExtraction.h:169
vtkContourLoopExtraction::Normal
double Normal[3]
Definition
vtkContourLoopExtraction.h:170
vtkContourLoopExtraction::SetOutputModeToPolylines
void SetOutputModeToPolylines()
Specify the form of the output.
Definition
vtkContourLoopExtraction.h:143
vtkContourLoopExtraction::GetLoopClosureAsString
const char * GetLoopClosureAsString()
Specify whether to close loops or not.
vtkContourLoopExtraction::vtkContourLoopExtraction
vtkContourLoopExtraction()
vtkContourLoopExtraction::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkContourLoopExtraction::SetLoopClosureToAll
void SetLoopClosureToAll()
Specify whether to close loops or not.
Definition
vtkContourLoopExtraction.h:100
vtkContourLoopExtraction::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to instantiate, print and provide type information.
vtkContourLoopExtraction::CleanPoints
bool CleanPoints
Definition
vtkContourLoopExtraction.h:172
vtkContourLoopExtraction::SetOutputMode
virtual void SetOutputMode(int)
Specify the form of the output.
vtkContourLoopExtraction::SetOutputModeToPolygons
void SetOutputModeToPolygons()
Specify the form of the output.
Definition
vtkContourLoopExtraction.h:142
vtkContourLoopExtraction::SetOutputModeToBoth
void SetOutputModeToBoth()
Specify the form of the output.
Definition
vtkContourLoopExtraction.h:144
vtkContourLoopExtraction::LoopClosure
int LoopClosure
Definition
vtkContourLoopExtraction.h:167
vtkContourLoopExtraction::SetLoopClosureToBoundary
void SetLoopClosureToBoundary()
Specify whether to close loops or not.
Definition
vtkContourLoopExtraction.h:99
vtkContourLoopExtraction::New
static vtkContourLoopExtraction * New()
Standard methods to instantiate, print and provide type information.
vtkContourLoopExtraction::SetLoopClosureToOff
void SetLoopClosureToOff()
Specify whether to close loops or not.
Definition
vtkContourLoopExtraction.h:98
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkInformationVector
Store zero or more vtkInformation instances.
Definition
vtkInformationVector.h:142
vtkInformation
Store vtkAlgorithm input/output information.
Definition
vtkInformation.h:173
vtkPolyDataAlgorithm::vtkPolyDataAlgorithm
vtkPolyDataAlgorithm()
VTK_LOOP_CLOSURE_ALL
#define VTK_LOOP_CLOSURE_ALL
Definition
vtkContourLoopExtraction.h:70
VTK_OUTPUT_POLYLINES
#define VTK_OUTPUT_POLYLINES
Definition
vtkContourLoopExtraction.h:73
VTK_OUTPUT_POLYGONS
#define VTK_OUTPUT_POLYGONS
Definition
vtkContourLoopExtraction.h:72
VTK_LOOP_CLOSURE_BOUNDARY
#define VTK_LOOP_CLOSURE_BOUNDARY
Definition
vtkContourLoopExtraction.h:69
VTK_OUTPUT_BOTH
#define VTK_OUTPUT_BOTH
Definition
vtkContourLoopExtraction.h:74
VTK_LOOP_CLOSURE_OFF
#define VTK_LOOP_CLOSURE_OFF
Definition
vtkContourLoopExtraction.h:68
vtkPolyDataAlgorithm.h
Generated on Wed Dec 10 2025 08:50:15 for VTK by
1.13.2