Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Imaging/vtkImageSeedConnectivity.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageSeedConnectivity.h,v $
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 "vtkImageToImageFilter.h"
00037 
00038 class vtkImageConnector;
00039 class vtkImageConnectorSeed;
00040 
00041 class VTK_IMAGING_EXPORT vtkImageSeedConnectivity : public vtkImageToImageFilter
00042 {
00043 public:
00044   static vtkImageSeedConnectivity *New();
00045   vtkTypeRevisionMacro(vtkImageSeedConnectivity,vtkImageToImageFilter);
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   void ComputeInputUpdateExtents(vtkDataObject *out);
00097 
00098   void ExecuteData(vtkDataObject *out); 
00099 private:
00100   vtkImageSeedConnectivity(const vtkImageSeedConnectivity&);  // Not implemented.
00101   void operator=(const vtkImageSeedConnectivity&);  // Not implemented.
00102 };
00103 
00104 
00105 
00106 #endif
00107 
00108 
00109