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 =========================================================================*/
33 #ifndef vtkImageSeedConnectivity_h
34 #define vtkImageSeedConnectivity_h
35 
36 #include "vtkImagingMorphologicalModule.h" // For export macro
37 #include "vtkImageAlgorithm.h"
38 
39 class vtkImageConnector;
41 
43 {
44 public:
45  static vtkImageSeedConnectivity *New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
51  void RemoveAllSeeds();
52  void AddSeed(int num, int *index);
53  void AddSeed(int i0, int i1, int i2);
54  void AddSeed(int i0, int i1);
56 
58 
59  vtkSetMacro(InputConnectValue, unsigned char);
60  vtkGetMacro(InputConnectValue, unsigned char);
62 
64 
65  vtkSetMacro(OutputConnectedValue, unsigned char);
66  vtkGetMacro(OutputConnectedValue, unsigned char);
68 
70 
71  vtkSetMacro(OutputUnconnectedValue, unsigned char);
72  vtkGetMacro(OutputUnconnectedValue, unsigned char);
74 
76 
77  vtkGetObjectMacro(Connector,vtkImageConnector);
79 
81 
82  vtkSetMacro(Dimensionality,int);
83  vtkGetMacro(Dimensionality,int);
85 
86 protected:
89 
90  unsigned char InputConnectValue;
91  unsigned char OutputConnectedValue;
92  unsigned char OutputUnconnectedValue;
96 
99 
100 private:
101  vtkImageSeedConnectivity(const vtkImageSeedConnectivity&); // Not implemented.
102  void operator=(const vtkImageSeedConnectivity&); // Not implemented.
103 };
104 
105 
106 
107 #endif
108 
109 
110 
Create a binary image of a sphere.
vtkImageConnectorSeed * Seeds
Store vtkAlgorithm input/output information.
#define VTKIMAGINGMORPHOLOGICAL_EXPORT
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
a simple class to control print indentation
Definition: vtkIndent.h:38
SeedConnectivity with user defined seeds.
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)