00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00033 #ifndef __vtkImageSeedConnectivity_h
00034 #define __vtkImageSeedConnectivity_h
00035
00036 #include "vtkImageAlgorithm.h"
00037
00038 class vtkImageConnector;
00039 class vtkImageConnectorSeed;
00040
00041 class VTK_IMAGING_EXPORT vtkImageSeedConnectivity : public vtkImageAlgorithm
00042 {
00043 public:
00044 static vtkImageSeedConnectivity *New();
00045 vtkTypeMacro(vtkImageSeedConnectivity,vtkImageAlgorithm);
00046 void PrintSelf(ostream& os, vtkIndent indent);
00047
00049
00050 void RemoveAllSeeds();
00051 void AddSeed(int num, int *index);
00052 void AddSeed(int i0, int i1, int i2);
00053 void AddSeed(int i0, int i1);
00055
00057
00058 vtkSetMacro(InputConnectValue, int);
00059 vtkGetMacro(InputConnectValue, int);
00061
00063
00064 vtkSetMacro(OutputConnectedValue, int);
00065 vtkGetMacro(OutputConnectedValue, int);
00067
00069
00070 vtkSetMacro(OutputUnconnectedValue, int);
00071 vtkGetMacro(OutputUnconnectedValue, int);
00073
00075
00076 vtkGetObjectMacro(Connector,vtkImageConnector);
00078
00080
00081 vtkSetMacro(Dimensionality,int);
00082 vtkGetMacro(Dimensionality,int);
00084
00085 protected:
00086 vtkImageSeedConnectivity();
00087 ~vtkImageSeedConnectivity();
00088
00089 unsigned char InputConnectValue;
00090 unsigned char OutputConnectedValue;
00091 unsigned char OutputUnconnectedValue;
00092 vtkImageConnectorSeed *Seeds;
00093 vtkImageConnector *Connector;
00094 int Dimensionality;
00095
00096 virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00097 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00098
00099 private:
00100 vtkImageSeedConnectivity(const vtkImageSeedConnectivity&);
00101 void operator=(const vtkImageSeedConnectivity&);
00102 };
00103
00104
00105
00106 #endif
00107
00108
00109