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
=========================================================================*/
73
74
#ifndef vtkContourLoopExtraction_h
75
#define vtkContourLoopExtraction_h
76
77
#include "vtkFiltersModelingModule.h"
// For export macro
78
#include "
vtkPolyDataAlgorithm.h
"
79
80
#define VTK_LOOP_CLOSURE_OFF 0
81
#define VTK_LOOP_CLOSURE_BOUNDARY 1
82
#define VTK_LOOP_CLOSURE_ALL 2
83
84
#define VTK_OUTPUT_POLYGONS 0
85
#define VTK_OUTPUT_POLYLINES 1
86
#define VTK_OUTPUT_BOTH 2
87
88
class
VTKFILTERSMODELING_EXPORT
vtkContourLoopExtraction
:
public
vtkPolyDataAlgorithm
89
{
90
public
:
92
95
static
vtkContourLoopExtraction
*
New
();
96
vtkTypeMacro(
vtkContourLoopExtraction
,
vtkPolyDataAlgorithm
);
97
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
99
101
107
vtkSetClampMacro(
LoopClosure
,
int
,
VTK_LOOP_CLOSURE_OFF
,
VTK_LOOP_CLOSURE_ALL
);
108
vtkGetMacro(
LoopClosure
,
int
);
109
void
SetLoopClosureToOff
() { this->
SetLoopClosure
(
VTK_LOOP_CLOSURE_OFF
); }
110
void
SetLoopClosureToBoundary
() { this->
SetLoopClosure
(
VTK_LOOP_CLOSURE_BOUNDARY
); }
111
void
SetLoopClosureToAll
() { this->
SetLoopClosure
(
VTK_LOOP_CLOSURE_ALL
); }
112
const
char
*
GetLoopClosureAsString
();
114
116
121
vtkSetMacro(
ScalarThresholding
,
bool
);
122
vtkGetMacro(
ScalarThresholding
,
bool
);
123
vtkBooleanMacro(
ScalarThresholding
,
bool
);
125
127
132
vtkSetVector2Macro(
ScalarRange
,
double
);
133
vtkGetVector2Macro(
ScalarRange
,
double
);
135
137
141
vtkSetVector3Macro(
Normal
,
double
);
142
vtkGetVector3Macro(
Normal
,
double
);
144
146
151
vtkSetClampMacro(
OutputMode
,
int
,
VTK_OUTPUT_POLYGONS
,
VTK_OUTPUT_BOTH
);
152
vtkGetMacro(
OutputMode
,
int
);
153
void
SetOutputModeToPolygons
() { this->
SetOutputMode
(
VTK_OUTPUT_POLYGONS
); }
154
void
SetOutputModeToPolylines
() { this->
SetOutputMode
(
VTK_OUTPUT_POLYLINES
); }
155
void
SetOutputModeToBoth
() { this->
SetOutputMode
(
VTK_OUTPUT_BOTH
); }
156
const
char
*
GetOutputModeAsString
();
158
160
169
vtkSetMacro(
CleanPoints
,
bool
);
170
vtkGetMacro(
CleanPoints
,
bool
);
171
vtkBooleanMacro(
CleanPoints
,
bool
);
173
174
protected
:
175
vtkContourLoopExtraction
();
176
~vtkContourLoopExtraction
()
override
;
177
178
int
LoopClosure
;
179
bool
ScalarThresholding
;
180
double
ScalarRange
[2];
181
double
Normal
[3];
182
int
OutputMode
;
183
bool
CleanPoints
;
184
185
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
186
187
private
:
188
vtkContourLoopExtraction
(
const
vtkContourLoopExtraction
&) =
delete
;
189
void
operator=(
const
vtkContourLoopExtraction
&) =
delete
;
190
};
191
192
#endif
vtkContourLoopExtraction::OutputMode
int OutputMode
Definition
vtkContourLoopExtraction.h:182
vtkContourLoopExtraction::ScalarThresholding
bool ScalarThresholding
Definition
vtkContourLoopExtraction.h:179
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:180
vtkContourLoopExtraction::Normal
double Normal[3]
Definition
vtkContourLoopExtraction.h:181
vtkContourLoopExtraction::SetOutputModeToPolylines
void SetOutputModeToPolylines()
Specify the form of the output.
Definition
vtkContourLoopExtraction.h:154
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:111
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:183
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:153
vtkContourLoopExtraction::SetOutputModeToBoth
void SetOutputModeToBoth()
Specify the form of the output.
Definition
vtkContourLoopExtraction.h:155
vtkContourLoopExtraction::LoopClosure
int LoopClosure
Definition
vtkContourLoopExtraction.h:178
vtkContourLoopExtraction::SetLoopClosureToBoundary
void SetLoopClosureToBoundary()
Specify whether to close loops or not.
Definition
vtkContourLoopExtraction.h:110
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:109
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:40
vtkInformationVector
Store zero or more vtkInformation instances.
Definition
vtkInformationVector.h:42
vtkInformation
Store vtkAlgorithm input/output information.
Definition
vtkInformation.h:74
vtkPolyDataAlgorithm::vtkPolyDataAlgorithm
vtkPolyDataAlgorithm()
VTK_LOOP_CLOSURE_ALL
#define VTK_LOOP_CLOSURE_ALL
Definition
vtkContourLoopExtraction.h:82
VTK_OUTPUT_POLYLINES
#define VTK_OUTPUT_POLYLINES
Definition
vtkContourLoopExtraction.h:85
VTK_OUTPUT_POLYGONS
#define VTK_OUTPUT_POLYGONS
Definition
vtkContourLoopExtraction.h:84
VTK_LOOP_CLOSURE_BOUNDARY
#define VTK_LOOP_CLOSURE_BOUNDARY
Definition
vtkContourLoopExtraction.h:81
VTK_OUTPUT_BOTH
#define VTK_OUTPUT_BOTH
Definition
vtkContourLoopExtraction.h:86
VTK_LOOP_CLOSURE_OFF
#define VTK_LOOP_CLOSURE_OFF
Definition
vtkContourLoopExtraction.h:80
vtkPolyDataAlgorithm.h
Generated on Fri Jan 24 2025 00:00:00 for VTK by
1.13.2