VTK  9.3.20240424
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
28#include "vtkFiltersParallelDIY2Module.h" // for export macros
29
30VTK_ABI_NAMESPACE_BEGIN
32
33class VTKFILTERSPARALLELDIY2_EXPORT vtkExtractSubsetWithSeed : public vtkDataObjectAlgorithm
34{
35public:
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,
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
79 vtkGetObjectMacro(Controller, vtkMultiProcessController);
81protected:
84
85 int FillInputPortInformation(int port, vtkInformation* info) override;
87 vtkInformationVector* outputVector) override;
90 vtkInformationVector* outputVector) override;
91
92private:
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
101VTK_ABI_NAMESPACE_END
102#endif
Superclass for algorithms that produce only data object as output.
extract a line or plane in the ijk space starting with a seed
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetDirectionToPlaneIJ()
Get/Set the directions in the ijk spaced to extract starting with the seed.
int RequestInformation(vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
void SetController(vtkMultiProcessController *)
Get/Set the controller to use.
void SetDirectionToLineK()
Get/Set the directions in the ijk spaced to extract starting with the seed.
~vtkExtractSubsetWithSeed() override
void SetDirectionToPlaneJK()
Get/Set the directions in the ijk spaced to extract starting with the seed.
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetDirectionToLineJ()
Get/Set the directions in the ijk spaced to extract starting with the seed.
void SetDirectionToLineI()
Get/Set the directions in the ijk spaced to extract starting with the seed.
static vtkExtractSubsetWithSeed * New()
void SetDirectionToPlaneKI()
Get/Set the directions in the ijk spaced to extract starting with the seed.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Multiprocessing communication superclass.