Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00032 #ifndef __vtkKWEITKPaintbrushExtractConnectedComponents_h
00033 #define __vtkKWEITKPaintbrushExtractConnectedComponents_h
00034
00035 #include "vtkAlgorithm.h"
00036 #include "VTKEdgeConfigure.h"
00037
00038 class vtkKWEPaintbrushDrawing;
00039 class vtkImageData;
00040
00041 class VTKEdge_WIDGETS_EXPORT vtkKWEITKPaintbrushExtractConnectedComponents
00042 : public vtkAlgorithm
00043 {
00044 public:
00046
00047 static vtkKWEITKPaintbrushExtractConnectedComponents *New();
00048 vtkTypeRevisionMacro(vtkKWEITKPaintbrushExtractConnectedComponents, vtkAlgorithm);
00049 void PrintSelf(ostream& os, vtkIndent indent);
00051
00053
00055 vtkSetMacro( SketchIndex, int );
00056 vtkGetMacro( SketchIndex, int );
00058
00060 virtual void SetInput( vtkKWEPaintbrushDrawing * );
00061
00063
00064 virtual int ProcessRequest(vtkInformation*,
00065 vtkInformationVector**,
00066 vtkInformationVector*);
00068
00070 vtkKWEPaintbrushDrawing* GetOutput();
00071
00072 protected:
00073 vtkKWEITKPaintbrushExtractConnectedComponents();
00074 ~vtkKWEITKPaintbrushExtractConnectedComponents();
00075
00077
00078 virtual int FillInputPortInformation(int, vtkInformation*);
00079 virtual int FillOutputPortInformation(int, vtkInformation*);
00080 virtual int RequestData(vtkInformation* request,
00081 vtkInformationVector** inputVector,
00082 vtkInformationVector* outputVector);
00083 virtual void RequestInformation (vtkInformation*,
00084 vtkInformationVector**,
00085 vtkInformationVector*);
00087
00089
00090 virtual int RequestDataObject(vtkInformation* request,
00091 vtkInformationVector** inputVector,
00092 vtkInformationVector* outputVector);
00094
00097 void ComputeSegmentExtents( int nSegments, int *e, vtkImageData *image );
00098
00099 int SketchIndex;
00100
00101 private:
00102 vtkKWEITKPaintbrushExtractConnectedComponents(
00103 const vtkKWEITKPaintbrushExtractConnectedComponents&);
00104 void operator=(const
00105 vtkKWEITKPaintbrushExtractConnectedComponents&);
00106 };
00107
00108 #endif