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

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 =========================================================================*/
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&);  // Not implemented.
00114   void operator=(const vtkImageSeedConnectivity&);  // Not implemented.
00115 };
00116 
00117 
00118 
00119 #endif
00120 
00121 
00122