VTK
dox/Imaging/Morphological/vtkImageSeedConnectivity.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageSeedConnectivity.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00033 #ifndef __vtkImageSeedConnectivity_h
00034 #define __vtkImageSeedConnectivity_h
00035 
00036 #include "vtkImagingMorphologicalModule.h" // For export macro
00037 #include "vtkImageAlgorithm.h"
00038 
00039 class vtkImageConnector;
00040 class vtkImageConnectorSeed;
00041 
00042 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSeedConnectivity : public vtkImageAlgorithm
00043 {
00044 public:
00045   static vtkImageSeedConnectivity *New();
00046   vtkTypeMacro(vtkImageSeedConnectivity,vtkImageAlgorithm);
00047   void PrintSelf(ostream& os, vtkIndent indent);
00048 
00050 
00051   void RemoveAllSeeds();
00052   void AddSeed(int num, int *index);
00053   void AddSeed(int i0, int i1, int i2);
00054   void AddSeed(int i0, int i1);
00056 
00058 
00059   vtkSetMacro(InputConnectValue, int);
00060   vtkGetMacro(InputConnectValue, int);
00062 
00064 
00065   vtkSetMacro(OutputConnectedValue, int);
00066   vtkGetMacro(OutputConnectedValue, int);
00068 
00070 
00071   vtkSetMacro(OutputUnconnectedValue, int);
00072   vtkGetMacro(OutputUnconnectedValue, int);
00074 
00076 
00077   vtkGetObjectMacro(Connector,vtkImageConnector);
00079 
00081 
00082   vtkSetMacro(Dimensionality,int);
00083   vtkGetMacro(Dimensionality,int);
00085 
00086 protected:
00087   vtkImageSeedConnectivity();
00088   ~vtkImageSeedConnectivity();
00089 
00090   unsigned char InputConnectValue;
00091   unsigned char OutputConnectedValue;
00092   unsigned char OutputUnconnectedValue;
00093   vtkImageConnectorSeed *Seeds;
00094   vtkImageConnector *Connector;
00095   int Dimensionality;
00096 
00097   virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00098   virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00099 
00100 private:
00101   vtkImageSeedConnectivity(const vtkImageSeedConnectivity&);  // Not implemented.
00102   void operator=(const vtkImageSeedConnectivity&);  // Not implemented.
00103 };
00104 
00105 
00106 
00107 #endif
00108 
00109 
00110