VTK  9.3.1
vtkImageSeedConnectivity.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
22 #ifndef vtkImageSeedConnectivity_h
23 #define vtkImageSeedConnectivity_h
24 
25 #include "vtkImageAlgorithm.h"
26 #include "vtkImagingMorphologicalModule.h" // For export macro
27 
28 VTK_ABI_NAMESPACE_BEGIN
29 class vtkImageConnector;
31 
32 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSeedConnectivity : public vtkImageAlgorithm
33 {
34 public:
35  static vtkImageSeedConnectivity* New();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
43  void RemoveAllSeeds();
44  void AddSeed(int num, int* index);
45  void AddSeed(int i0, int i1, int i2);
46  void AddSeed(int i0, int i1);
48 
50 
53  vtkSetMacro(InputConnectValue, unsigned char);
54  vtkGetMacro(InputConnectValue, unsigned char);
56 
58 
61  vtkSetMacro(OutputConnectedValue, unsigned char);
62  vtkGetMacro(OutputConnectedValue, unsigned char);
64 
66 
69  vtkSetMacro(OutputUnconnectedValue, unsigned char);
70  vtkGetMacro(OutputUnconnectedValue, unsigned char);
72 
74 
77  vtkGetObjectMacro(Connector, vtkImageConnector);
79 
81 
84  vtkSetMacro(Dimensionality, int);
85  vtkGetMacro(Dimensionality, int);
87 
88 protected:
90  ~vtkImageSeedConnectivity() override;
91 
92  unsigned char InputConnectValue;
93  unsigned char OutputConnectedValue;
94  unsigned char OutputUnconnectedValue;
98 
101 
102 private:
104  void operator=(const vtkImageSeedConnectivity&) = delete;
105 };
106 
107 VTK_ABI_NAMESPACE_END
108 #endif
Create a binary image of a sphere.
vtkImageConnectorSeed * Seeds
Store vtkAlgorithm input/output information.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
a simple class to control print indentation
Definition: vtkIndent.h:28
SeedConnectivity with user defined seeds.
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.