VTK
9.3.1
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
Filters
ParallelDIY2
vtkExtractSubsetWithSeed.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
24
#ifndef vtkExtractSubsetWithSeed_h
25
#define vtkExtractSubsetWithSeed_h
26
27
#include "
vtkDataObjectAlgorithm.h
"
28
#include "vtkFiltersParallelDIY2Module.h"
// for export macros
29
30
VTK_ABI_NAMESPACE_BEGIN
31
class
vtkMultiProcessController
;
32
33
class
VTKFILTERSPARALLELDIY2_EXPORT
vtkExtractSubsetWithSeed
:
public
vtkDataObjectAlgorithm
34
{
35
public
:
36
static
vtkExtractSubsetWithSeed
*
New
();
37
vtkTypeMacro(
vtkExtractSubsetWithSeed
,
vtkDataObjectAlgorithm
);
38
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
39
41
45
vtkSetVector3Macro(Seed,
double
);
46
vtkGetVector3Macro(Seed,
double
);
48
49
enum
50
{
51
LINE_I = 0,
52
LINE_J
,
53
LINE_K
,
54
PLANE_IJ
,
55
PLANE_JK
,
56
PLANE_KI
,
57
};
59
63
vtkSetClampMacro(Direction,
int
, LINE_I, PLANE_KI);
64
vtkGetMacro(Direction,
int
);
65
void
SetDirectionToLineI
() { this->SetDirection(LINE_I); }
66
void
SetDirectionToLineJ
() { this->SetDirection(LINE_J); }
67
void
SetDirectionToLineK
() { this->SetDirection(LINE_K); }
68
void
SetDirectionToPlaneIJ
() { this->SetDirection(PLANE_IJ); }
69
void
SetDirectionToPlaneJK
() { this->SetDirection(PLANE_JK); }
70
void
SetDirectionToPlaneKI
() { this->SetDirection(PLANE_KI); }
72
74
78
void
SetController
(
vtkMultiProcessController
*);
79
vtkGetObjectMacro(Controller,
vtkMultiProcessController
);
81
protected
:
82
vtkExtractSubsetWithSeed
();
83
~vtkExtractSubsetWithSeed
()
override
;
84
85
int
FillInputPortInformation
(
int
port,
vtkInformation
* info)
override
;
86
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
** inputVector,
87
vtkInformationVector
* outputVector)
override
;
88
int
RequestDataObject
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
89
int
RequestData
(
vtkInformation
*,
vtkInformationVector
** inputVector,
90
vtkInformationVector
* outputVector)
override
;
91
92
private
:
93
vtkExtractSubsetWithSeed
(
const
vtkExtractSubsetWithSeed
&) =
delete
;
94
void
operator=(
const
vtkExtractSubsetWithSeed
&) =
delete
;
95
96
double
Seed[3] = { 0, 0, 0 };
97
int
Direction = LINE_I;
98
vtkMultiProcessController
* Controller =
nullptr
;
99
};
100
101
VTK_ABI_NAMESPACE_END
102
#endif
vtkDataObjectAlgorithm
Superclass for algorithms that produce only data object as output.
Definition
vtkDataObjectAlgorithm.h:33
vtkExtractSubsetWithSeed
extract a line or plane in the ijk space starting with a seed
Definition
vtkExtractSubsetWithSeed.h:34
vtkExtractSubsetWithSeed::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkExtractSubsetWithSeed::SetDirectionToPlaneIJ
void SetDirectionToPlaneIJ()
Get/Set the directions in the ijk spaced to extract starting with the seed.
Definition
vtkExtractSubsetWithSeed.h:68
vtkExtractSubsetWithSeed::vtkExtractSubsetWithSeed
vtkExtractSubsetWithSeed()
vtkExtractSubsetWithSeed::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
vtkExtractSubsetWithSeed::LINE_K
@ LINE_K
Definition
vtkExtractSubsetWithSeed.h:53
vtkExtractSubsetWithSeed::PLANE_JK
@ PLANE_JK
Definition
vtkExtractSubsetWithSeed.h:55
vtkExtractSubsetWithSeed::LINE_J
@ LINE_J
Definition
vtkExtractSubsetWithSeed.h:52
vtkExtractSubsetWithSeed::PLANE_IJ
@ PLANE_IJ
Definition
vtkExtractSubsetWithSeed.h:54
vtkExtractSubsetWithSeed::PLANE_KI
@ PLANE_KI
Definition
vtkExtractSubsetWithSeed.h:56
vtkExtractSubsetWithSeed::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractSubsetWithSeed::RequestData
int RequestData(vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
vtkExtractSubsetWithSeed::SetController
void SetController(vtkMultiProcessController *)
Get/Set the controller to use.
vtkExtractSubsetWithSeed::SetDirectionToLineK
void SetDirectionToLineK()
Get/Set the directions in the ijk spaced to extract starting with the seed.
Definition
vtkExtractSubsetWithSeed.h:67
vtkExtractSubsetWithSeed::~vtkExtractSubsetWithSeed
~vtkExtractSubsetWithSeed() override
vtkExtractSubsetWithSeed::SetDirectionToPlaneJK
void SetDirectionToPlaneJK()
Get/Set the directions in the ijk spaced to extract starting with the seed.
Definition
vtkExtractSubsetWithSeed.h:69
vtkExtractSubsetWithSeed::RequestDataObject
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkExtractSubsetWithSeed::SetDirectionToLineJ
void SetDirectionToLineJ()
Get/Set the directions in the ijk spaced to extract starting with the seed.
Definition
vtkExtractSubsetWithSeed.h:66
vtkExtractSubsetWithSeed::SetDirectionToLineI
void SetDirectionToLineI()
Get/Set the directions in the ijk spaced to extract starting with the seed.
Definition
vtkExtractSubsetWithSeed.h:65
vtkExtractSubsetWithSeed::New
static vtkExtractSubsetWithSeed * New()
vtkExtractSubsetWithSeed::SetDirectionToPlaneKI
void SetDirectionToPlaneKI()
Get/Set the directions in the ijk spaced to extract starting with the seed.
Definition
vtkExtractSubsetWithSeed.h:70
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:29
vtkInformationVector
Store zero or more vtkInformation instances.
Definition
vtkInformationVector.h:31
vtkInformation
Store vtkAlgorithm input/output information.
Definition
vtkInformation.h:63
vtkMultiProcessController
Multiprocessing communication superclass.
Definition
vtkMultiProcessController.h:72
vtkDataObjectAlgorithm.h
Generated on Fri Oct 25 2024 00:00:00 for VTK by
1.12.0