VTK
9.2.6
Filters
ParallelDIY2
vtkExtractSubsetWithSeed.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkExtractSubsetWithSeed.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
=========================================================================*/
35
36
#ifndef vtkExtractSubsetWithSeed_h
37
#define vtkExtractSubsetWithSeed_h
38
39
#include "
vtkDataObjectAlgorithm.h
"
40
#include "vtkFiltersParallelDIY2Module.h"
// for export macros
41
42
class
vtkMultiProcessController
;
43
44
class
VTKFILTERSPARALLELDIY2_EXPORT
vtkExtractSubsetWithSeed
:
public
vtkDataObjectAlgorithm
45
{
46
public
:
47
static
vtkExtractSubsetWithSeed
*
New
();
48
vtkTypeMacro(
vtkExtractSubsetWithSeed
,
vtkDataObjectAlgorithm
);
49
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
50
52
56
vtkSetVector3Macro(Seed,
double
);
57
vtkGetVector3Macro(Seed,
double
);
59
60
enum
61
{
62
LINE_I
= 0,
63
LINE_J
,
64
LINE_K
,
65
PLANE_IJ
,
66
PLANE_JK
,
67
PLANE_KI
,
68
};
70
74
vtkSetClampMacro(Direction,
int
,
LINE_I
,
PLANE_KI
);
75
vtkGetMacro(Direction,
int
);
76
void
SetDirectionToLineI
() { this->
SetDirection
(
LINE_I
); }
77
void
SetDirectionToLineJ
() { this->
SetDirection
(
LINE_J
); }
78
void
SetDirectionToLineK
() { this->
SetDirection
(
LINE_K
); }
79
void
SetDirectionToPlaneIJ
() { this->
SetDirection
(
PLANE_IJ
); }
80
void
SetDirectionToPlaneJK
() { this->
SetDirection
(
PLANE_JK
); }
81
void
SetDirectionToPlaneKI
() { this->
SetDirection
(
PLANE_KI
); }
83
85
89
void
SetController
(
vtkMultiProcessController
*);
90
vtkGetObjectMacro(Controller,
vtkMultiProcessController
);
92
protected
:
93
vtkExtractSubsetWithSeed
();
94
~vtkExtractSubsetWithSeed
()
override
;
95
96
int
FillInputPortInformation
(
int
port,
vtkInformation
* info)
override
;
97
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
** inputVector,
98
vtkInformationVector
* outputVector)
override
;
99
int
RequestDataObject
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
100
int
RequestData
(
vtkInformation
*,
vtkInformationVector
** inputVector,
101
vtkInformationVector
* outputVector)
override
;
102
103
private
:
104
vtkExtractSubsetWithSeed
(
const
vtkExtractSubsetWithSeed
&) =
delete
;
105
void
operator=(
const
vtkExtractSubsetWithSeed
&) =
delete
;
106
107
double
Seed[3] = { 0, 0, 0 };
108
int
Direction = LINE_I;
109
vtkMultiProcessController
* Controller =
nullptr
;
110
};
111
112
#endif
vtkDataObjectAlgorithm::vtkDataObjectAlgorithm
vtkDataObjectAlgorithm()
vtkExtractSubsetWithSeed::LINE_K
@ LINE_K
Definition
vtkExtractSubsetWithSeed.h:64
vtkExtractSubsetWithSeed::PLANE_JK
@ PLANE_JK
Definition
vtkExtractSubsetWithSeed.h:66
vtkExtractSubsetWithSeed::LINE_I
@ LINE_I
Definition
vtkExtractSubsetWithSeed.h:62
vtkExtractSubsetWithSeed::LINE_J
@ LINE_J
Definition
vtkExtractSubsetWithSeed.h:63
vtkExtractSubsetWithSeed::PLANE_IJ
@ PLANE_IJ
Definition
vtkExtractSubsetWithSeed.h:65
vtkExtractSubsetWithSeed::PLANE_KI
@ PLANE_KI
Definition
vtkExtractSubsetWithSeed.h:67
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:79
vtkExtractSubsetWithSeed::vtkExtractSubsetWithSeed
vtkExtractSubsetWithSeed()
vtkExtractSubsetWithSeed::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
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:78
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:80
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:77
vtkExtractSubsetWithSeed::SetDirectionToLineI
void SetDirectionToLineI()
Get/Set the directions in the ijk spaced to extract starting with the seed.
Definition
vtkExtractSubsetWithSeed.h:76
vtkExtractSubsetWithSeed::New
static vtkExtractSubsetWithSeed * New()
vtkExtractSubsetWithSeed::SetDirection
virtual void SetDirection(int)
Get/Set the directions in the ijk spaced to extract starting with the seed.
vtkExtractSubsetWithSeed::SetDirectionToPlaneKI
void SetDirectionToPlaneKI()
Get/Set the directions in the ijk spaced to extract starting with the seed.
Definition
vtkExtractSubsetWithSeed.h:81
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
vtkMultiProcessController
Multiprocessing communication superclass.
Definition
vtkMultiProcessController.h:83
vtkDataObjectAlgorithm.h
Generated on Fri Nov 8 2024 00:00:00 for VTK by
1.13.1