00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00062 #ifndef __vtkImageSeedConnectivity_h
00063 #define __vtkImageSeedConnectivity_h
00064
00065
00066 #include "vtkImageConnector.h"
00067 #include "vtkImageToImageFilter.h"
00068
00069 class VTK_IMAGING_EXPORT vtkImageSeedConnectivity : public vtkImageToImageFilter
00070 {
00071 public:
00072 static vtkImageSeedConnectivity *New();
00073 vtkTypeMacro(vtkImageSeedConnectivity,vtkImageToImageFilter);
00074 void PrintSelf(ostream& os, vtkIndent indent);
00075
00077
00078 void RemoveAllSeeds();
00079 void AddSeed(int num, int *index);
00080 void AddSeed(int i0, int i1, int i2);
00081 void AddSeed(int i0, int i1);
00083
00085
00086 vtkSetMacro(InputConnectValue, int);
00087 vtkGetMacro(InputConnectValue, int);
00089
00091
00092 vtkSetMacro(OutputConnectedValue, int);
00093 vtkGetMacro(OutputConnectedValue, int);
00095
00097
00098 vtkSetMacro(OutputUnconnectedValue, int);
00099 vtkGetMacro(OutputUnconnectedValue, int);
00101
00103
00104 vtkGetObjectMacro(Connector,vtkImageConnector);
00106
00108
00109 vtkSetMacro(Dimensionality,int);
00110 vtkGetMacro(Dimensionality,int);
00112
00113 protected:
00114 vtkImageSeedConnectivity();
00115 ~vtkImageSeedConnectivity();
00116
00117 unsigned char InputConnectValue;
00118 unsigned char OutputConnectedValue;
00119 unsigned char OutputUnconnectedValue;
00120 vtkImageConnectorSeed *Seeds;
00121 vtkImageConnector *Connector;
00122 int Dimensionality;
00123
00124 void ComputeInputUpdateExtents(vtkDataObject *out);
00125
00126 void ExecuteData(vtkDataObject *out);
00127 private:
00128 vtkImageSeedConnectivity(const vtkImageSeedConnectivity&);
00129 void operator=(const vtkImageSeedConnectivity&);
00130 };
00131
00132
00133
00134 #endif
00135
00136
00137