VTK
9.2.6
Filters
Modeling
vtkContourLoopExtraction.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkContourLoopExtraction.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
=========================================================================*/
70
71
#ifndef vtkContourLoopExtraction_h
72
#define vtkContourLoopExtraction_h
73
74
#include "vtkFiltersModelingModule.h"
// For export macro
75
#include "
vtkPolyDataAlgorithm.h
"
76
77
#define VTK_LOOP_CLOSURE_OFF 0
78
#define VTK_LOOP_CLOSURE_BOUNDARY 1
79
#define VTK_LOOP_CLOSURE_ALL 2
80
81
#define VTK_OUTPUT_POLYGONS 0
82
#define VTK_OUTPUT_POLYLINES 1
83
#define VTK_OUTPUT_BOTH 2
84
85
class
VTKFILTERSMODELING_EXPORT
vtkContourLoopExtraction
:
public
vtkPolyDataAlgorithm
86
{
87
public
:
89
92
static
vtkContourLoopExtraction
*
New
();
93
vtkTypeMacro(
vtkContourLoopExtraction
,
vtkPolyDataAlgorithm
);
94
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
96
98
104
vtkSetClampMacro(
LoopClosure
,
int
,
VTK_LOOP_CLOSURE_OFF
,
VTK_LOOP_CLOSURE_ALL
);
105
vtkGetMacro(
LoopClosure
,
int
);
106
void
SetLoopClosureToOff
() { this->
SetLoopClosure
(
VTK_LOOP_CLOSURE_OFF
); }
107
void
SetLoopClosureToBoundary
() { this->
SetLoopClosure
(
VTK_LOOP_CLOSURE_BOUNDARY
); }
108
void
SetLoopClosureToAll
() { this->
SetLoopClosure
(
VTK_LOOP_CLOSURE_ALL
); }
109
const
char
*
GetLoopClosureAsString
();
111
113
118
vtkSetMacro(
ScalarThresholding
,
bool
);
119
vtkGetMacro(
ScalarThresholding
,
bool
);
120
vtkBooleanMacro(
ScalarThresholding
,
bool
);
122
124
129
vtkSetVector2Macro(
ScalarRange
,
double
);
130
vtkGetVector2Macro(
ScalarRange
,
double
);
132
134
138
vtkSetVector3Macro(
Normal
,
double
);
139
vtkGetVector3Macro(
Normal
,
double
);
141
143
148
vtkSetClampMacro(
OutputMode
,
int
,
VTK_OUTPUT_POLYGONS
,
VTK_OUTPUT_BOTH
);
149
vtkGetMacro(
OutputMode
,
int
);
150
void
SetOutputModeToPolygons
() { this->
SetOutputMode
(
VTK_OUTPUT_POLYGONS
); }
151
void
SetOutputModeToPolylines
() { this->
SetOutputMode
(
VTK_OUTPUT_POLYLINES
); }
152
void
SetOutputModeToBoth
() { this->
SetOutputMode
(
VTK_OUTPUT_BOTH
); }
153
const
char
*
GetOutputModeAsString
();
155
157
166
vtkSetMacro(
CleanPoints
,
bool
);
167
vtkGetMacro(
CleanPoints
,
bool
);
168
vtkBooleanMacro(
CleanPoints
,
bool
);
170
171
protected
:
172
vtkContourLoopExtraction
();
173
~vtkContourLoopExtraction
()
override
;
174
175
int
LoopClosure
;
176
bool
ScalarThresholding
;
177
double
ScalarRange
[2];
178
double
Normal
[3];
179
int
OutputMode
;
180
bool
CleanPoints
;
181
182
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
183
184
private
:
185
vtkContourLoopExtraction
(
const
vtkContourLoopExtraction
&) =
delete
;
186
void
operator=(
const
vtkContourLoopExtraction
&) =
delete
;
187
};
188
189
#endif
vtkContourLoopExtraction::OutputMode
int OutputMode
Definition
vtkContourLoopExtraction.h:179
vtkContourLoopExtraction::ScalarThresholding
bool ScalarThresholding
Definition
vtkContourLoopExtraction.h:176
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:177
vtkContourLoopExtraction::Normal
double Normal[3]
Definition
vtkContourLoopExtraction.h:178
vtkContourLoopExtraction::SetOutputModeToPolylines
void SetOutputModeToPolylines()
Specify the form of the output.
Definition
vtkContourLoopExtraction.h:151
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:108
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:180
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:150
vtkContourLoopExtraction::SetOutputModeToBoth
void SetOutputModeToBoth()
Specify the form of the output.
Definition
vtkContourLoopExtraction.h:152
vtkContourLoopExtraction::LoopClosure
int LoopClosure
Definition
vtkContourLoopExtraction.h:175
vtkContourLoopExtraction::SetLoopClosureToBoundary
void SetLoopClosureToBoundary()
Specify whether to close loops or not.
Definition
vtkContourLoopExtraction.h:107
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:106
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:34
vtkInformationVector
Store zero or more vtkInformation instances.
Definition
vtkInformationVector.h:36
vtkInformation
Store vtkAlgorithm input/output information.
Definition
vtkInformation.h:68
vtkPolyDataAlgorithm::vtkPolyDataAlgorithm
vtkPolyDataAlgorithm()
VTK_LOOP_CLOSURE_ALL
#define VTK_LOOP_CLOSURE_ALL
Definition
vtkContourLoopExtraction.h:79
VTK_OUTPUT_POLYLINES
#define VTK_OUTPUT_POLYLINES
Definition
vtkContourLoopExtraction.h:82
VTK_OUTPUT_POLYGONS
#define VTK_OUTPUT_POLYGONS
Definition
vtkContourLoopExtraction.h:81
VTK_LOOP_CLOSURE_BOUNDARY
#define VTK_LOOP_CLOSURE_BOUNDARY
Definition
vtkContourLoopExtraction.h:78
VTK_OUTPUT_BOTH
#define VTK_OUTPUT_BOTH
Definition
vtkContourLoopExtraction.h:83
VTK_LOOP_CLOSURE_OFF
#define VTK_LOOP_CLOSURE_OFF
Definition
vtkContourLoopExtraction.h:77
vtkPolyDataAlgorithm.h
Generated on Sun Mar 2 2025 00:00:00 for VTK by
1.13.2