Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound 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   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00048 #ifndef __vtkImageSeedConnectivity_h
00049 #define __vtkImageSeedConnectivity_h
00050 
00051 #include "vtkImageToImageFilter.h"
00052 
00053 class vtkImageConnector;
00054 class vtkImageConnectorSeed;
00055 
00056 class VTK_IMAGING_EXPORT vtkImageSeedConnectivity : public vtkImageToImageFilter
00057 {
00058 public:
00059   static vtkImageSeedConnectivity *New();
00060   vtkTypeRevisionMacro(vtkImageSeedConnectivity,vtkImageToImageFilter);
00061   void PrintSelf(ostream& os, vtkIndent indent);
00062   
00064 
00065   void RemoveAllSeeds();
00066   void AddSeed(int num, int *index);
00067   void AddSeed(int i0, int i1, int i2);
00068   void AddSeed(int i0, int i1);
00070 
00072 
00073   vtkSetMacro(InputConnectValue, int);
00074   vtkGetMacro(InputConnectValue, int);
00076 
00078 
00079   vtkSetMacro(OutputConnectedValue, int);
00080   vtkGetMacro(OutputConnectedValue, int);
00082 
00084 
00085   vtkSetMacro(OutputUnconnectedValue, int);
00086   vtkGetMacro(OutputUnconnectedValue, int);
00088   
00090 
00091   vtkGetObjectMacro(Connector,vtkImageConnector);
00093 
00095 
00096   vtkSetMacro(Dimensionality,int);
00097   vtkGetMacro(Dimensionality,int);
00099   
00100 protected:
00101   vtkImageSeedConnectivity();
00102   ~vtkImageSeedConnectivity();
00103 
00104   unsigned char InputConnectValue;
00105   unsigned char OutputConnectedValue;
00106   unsigned char OutputUnconnectedValue;
00107   vtkImageConnectorSeed *Seeds;
00108   vtkImageConnector *Connector;
00109   int Dimensionality;
00110   
00111   void ComputeInputUpdateExtents(vtkDataObject *out);
00112 
00113   void ExecuteData(vtkDataObject *out); 
00114 private:
00115   vtkImageSeedConnectivity(const vtkImageSeedConnectivity&);  // Not implemented.
00116   void operator=(const vtkImageSeedConnectivity&);  // Not implemented.
00117 };
00118 
00119 
00120 
00121 #endif
00122 
00123 
00124