vtkImageSeedConnectivity.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00046 #ifndef __vtkImageSeedConnectivity_h
00047 #define __vtkImageSeedConnectivity_h
00048
00049 #include "vtkImageToImageFilter.h"
00050
00051 class vtkImageConnector;
00052 class vtkImageConnectorSeed;
00053
00054 class VTK_IMAGING_EXPORT vtkImageSeedConnectivity : public vtkImageToImageFilter
00055 {
00056 public:
00057 static vtkImageSeedConnectivity *New();
00058 vtkTypeRevisionMacro(vtkImageSeedConnectivity,vtkImageToImageFilter);
00059 void PrintSelf(ostream& os, vtkIndent indent);
00060
00062
00063 void RemoveAllSeeds();
00064 void AddSeed(int num, int *index);
00065 void AddSeed(int i0, int i1, int i2);
00066 void AddSeed(int i0, int i1);
00068
00070
00071 vtkSetMacro(InputConnectValue, int);
00072 vtkGetMacro(InputConnectValue, int);
00074
00076
00077 vtkSetMacro(OutputConnectedValue, int);
00078 vtkGetMacro(OutputConnectedValue, int);
00080
00082
00083 vtkSetMacro(OutputUnconnectedValue, int);
00084 vtkGetMacro(OutputUnconnectedValue, int);
00086
00088
00089 vtkGetObjectMacro(Connector,vtkImageConnector);
00091
00093
00094 vtkSetMacro(Dimensionality,int);
00095 vtkGetMacro(Dimensionality,int);
00097
00098 protected:
00099 vtkImageSeedConnectivity();
00100 ~vtkImageSeedConnectivity();
00101
00102 unsigned char InputConnectValue;
00103 unsigned char OutputConnectedValue;
00104 unsigned char OutputUnconnectedValue;
00105 vtkImageConnectorSeed *Seeds;
00106 vtkImageConnector *Connector;
00107 int Dimensionality;
00108
00109 void ComputeInputUpdateExtents(vtkDataObject *out);
00110
00111 void ExecuteData(vtkDataObject *out);
00112 private:
00113 vtkImageSeedConnectivity(const vtkImageSeedConnectivity&);
00114 void operator=(const vtkImageSeedConnectivity&);
00115 };
00116
00117
00118
00119 #endif
00120
00121
00122