VTK
vtkImageSeedConnectivity.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageSeedConnectivity.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 =========================================================================*/
34 #ifndef vtkImageSeedConnectivity_h
35 #define vtkImageSeedConnectivity_h
36 
37 #include "vtkImagingMorphologicalModule.h" // For export macro
38 #include "vtkImageAlgorithm.h"
39 
40 class vtkImageConnector;
42 
43 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSeedConnectivity : public vtkImageAlgorithm
44 {
45 public:
46  static vtkImageSeedConnectivity *New();
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
54  void RemoveAllSeeds();
55  void AddSeed(int num, int *index);
56  void AddSeed(int i0, int i1, int i2);
57  void AddSeed(int i0, int i1);
59 
61 
64  vtkSetMacro(InputConnectValue, unsigned char);
65  vtkGetMacro(InputConnectValue, unsigned char);
67 
69 
72  vtkSetMacro(OutputConnectedValue, unsigned char);
73  vtkGetMacro(OutputConnectedValue, unsigned char);
75 
77 
80  vtkSetMacro(OutputUnconnectedValue, unsigned char);
81  vtkGetMacro(OutputUnconnectedValue, unsigned char);
83 
85 
88  vtkGetObjectMacro(Connector,vtkImageConnector);
90 
92 
95  vtkSetMacro(Dimensionality,int);
96  vtkGetMacro(Dimensionality,int);
98 
99 protected:
101  ~vtkImageSeedConnectivity() override;
102 
103  unsigned char InputConnectValue;
104  unsigned char OutputConnectedValue;
105  unsigned char OutputUnconnectedValue;
109 
112 
113 private:
115  void operator=(const vtkImageSeedConnectivity&) = delete;
116 };
117 
118 
119 
120 #endif
121 
122 
123 
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:39
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.