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) VTK_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() VTK_OVERRIDE;
102 
103  unsigned char InputConnectValue;
104  unsigned char OutputConnectedValue;
105  unsigned char OutputUnconnectedValue;
107  vtkImageConnector *Connector;
108  int Dimensionality;
109 
110  int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
111  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
112 
113 private:
114  vtkImageSeedConnectivity(const vtkImageSeedConnectivity&) VTK_DELETE_FUNCTION;
115  void operator=(const vtkImageSeedConnectivity&) VTK_DELETE_FUNCTION;
116 };
117 
118 
119 
120 #endif
121 
122 
123 
Create a binary image of a sphere.
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.