VTK  9.0.1
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 =========================================================================*/
33 #ifndef vtkExtractSubsetWithSeed_h
34 #define vtkExtractSubsetWithSeed_h
35 
36 #include "vtkDataObjectAlgorithm.h"
37 #include "vtkFiltersParallelDIY2Module.h" // for export macros
38 
40 
41 class VTKFILTERSPARALLELDIY2_EXPORT vtkExtractSubsetWithSeed : public vtkDataObjectAlgorithm
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
53  vtkSetVector3Macro(Seed, double);
54  vtkGetVector3Macro(Seed, double);
56 
57  enum
58  {
59  LINE_I = 0,
65  };
67 
71  vtkSetClampMacro(Direction, int, LINE_I, PLANE_KI);
72  vtkGetMacro(Direction, int);
73  void SetDirectionToLineI() { this->SetDirection(LINE_I); }
74  void SetDirectionToLineJ() { this->SetDirection(LINE_J); }
75  void SetDirectionToLineK() { this->SetDirection(LINE_K); }
76  void SetDirectionToPlaneIJ() { this->SetDirection(PLANE_IJ); }
77  void SetDirectionToPlaneJK() { this->SetDirection(PLANE_JK); }
78  void SetDirectionToPlaneKI() { this->SetDirection(PLANE_KI); }
80 
82 
87  vtkGetObjectMacro(Controller, vtkMultiProcessController);
89 protected:
92 
95  vtkInformationVector* outputVector) override;
98  vtkInformationVector* outputVector) override;
99 
100 private:
102  void operator=(const vtkExtractSubsetWithSeed&) = delete;
103 
104  double Seed[3] = { 0, 0, 0 };
105  int Direction = LINE_I;
106  vtkMultiProcessController* Controller = nullptr;
107 };
108 
109 #endif
vtkExtractSubsetWithSeed::PLANE_IJ
@ PLANE_IJ
Definition: vtkExtractSubsetWithSeed.h:62
vtkExtractSubsetWithSeed::~vtkExtractSubsetWithSeed
~vtkExtractSubsetWithSeed() override
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkExtractSubsetWithSeed::PLANE_KI
@ PLANE_KI
Definition: vtkExtractSubsetWithSeed.h:64
vtkDataObjectAlgorithm
Superclass for algorithms that produce only data object as output.
Definition: vtkDataObjectAlgorithm.h:44
vtkExtractSubsetWithSeed::SetDirectionToPlaneJK
void SetDirectionToPlaneJK()
Definition: vtkExtractSubsetWithSeed.h:77
vtkExtractSubsetWithSeed::SetDirectionToLineI
void SetDirectionToLineI()
Definition: vtkExtractSubsetWithSeed.h:73
vtkExtractSubsetWithSeed::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractSubsetWithSeed::LINE_J
@ LINE_J
Definition: vtkExtractSubsetWithSeed.h:60
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkExtractSubsetWithSeed
extract a line or plane in the ijk space starting with a seed
Definition: vtkExtractSubsetWithSeed.h:42
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:76
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkExtractSubsetWithSeed::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
vtkExtractSubsetWithSeed::vtkExtractSubsetWithSeed
vtkExtractSubsetWithSeed()
vtkExtractSubsetWithSeed::LINE_K
@ LINE_K
Definition: vtkExtractSubsetWithSeed.h:61
vtkExtractSubsetWithSeed::SetDirectionToLineJ
void SetDirectionToLineJ()
Definition: vtkExtractSubsetWithSeed.h:74
vtkExtractSubsetWithSeed::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:65
vtkExtractSubsetWithSeed::SetDirectionToPlaneKI
void SetDirectionToPlaneKI()
Definition: vtkExtractSubsetWithSeed.h:78
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkExtractSubsetWithSeed::SetDirectionToLineK
void SetDirectionToLineK()
Definition: vtkExtractSubsetWithSeed.h:75
vtkDataObjectAlgorithm.h
vtkExtractSubsetWithSeed::RequestData
int RequestData(vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
vtkExtractSubsetWithSeed::PLANE_JK
@ PLANE_JK
Definition: vtkExtractSubsetWithSeed.h:63
vtkExtractSubsetWithSeed::SetController
void SetController(vtkMultiProcessController *)
Get/Set the controller to use.
vtkExtractSubsetWithSeed::New
static vtkExtractSubsetWithSeed * New()
vtkExtractSubsetWithSeed::SetDirectionToPlaneIJ
void SetDirectionToPlaneIJ()
Definition: vtkExtractSubsetWithSeed.h:76
vtkExtractSubsetWithSeed::RequestDataObject
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.