00001 //============================================================================= 00002 // This file is part of VTKEdge. See vtkedge.org for more information. 00003 // 00004 // Copyright (c) 2010 Kitware, Inc. 00005 // 00006 // VTKEdge may be used under the terms of the BSD License 00007 // Please see the file Copyright.txt in the root directory of 00008 // VTKEdge for further information. 00009 // 00010 // Alternatively, you may see: 00011 // 00012 // http://www.vtkedge.org/vtkedge/project/license.html 00013 // 00014 // 00015 // For custom extensions, consulting services, or training for 00016 // this or any other Kitware supported open source project, please 00017 // contact Kitware at sales@kitware.com. 00018 // 00019 // 00020 //============================================================================= 00026 #ifndef __vtkKWEITKPaintbrushOperation_h 00027 #define __vtkKWEITKPaintbrushOperation_h 00028 00029 #include "vtkKWEPaintbrushOperation.h" 00030 #include "vtkKWEITKImageToStencilFilter.h" 00031 00032 typedef double RealType; 00033 00034 class vtkImageStencilData; 00035 00036 class VTKEdge_WIDGETS_EXPORT vtkKWEITKPaintbrushOperation 00037 : public vtkKWEPaintbrushOperation 00038 { 00039 public: 00040 00042 00043 vtkTypeRevisionMacro(vtkKWEITKPaintbrushOperation, vtkKWEPaintbrushOperation); 00044 void PrintSelf(ostream& os, vtkIndent indent); 00046 00047 //BTX 00048 typedef vtkitk::vtkKWEITKImageToStencilFilter InternalFilterType; 00049 InternalFilterType::Pointer InternalFilter; 00050 //ETX 00051 00052 vtkSetVector3Macro( FilterHalfWidth, double ); 00053 vtkGetVector3Macro( FilterHalfWidth, double ); 00054 00055 protected: 00056 vtkKWEITKPaintbrushOperation(); 00057 ~vtkKWEITKPaintbrushOperation(); 00058 00059 double FilterHalfWidth[3]; 00060 00063 virtual void DoOperationOnStencil(vtkImageStencilData *, double p[3]) = 0; 00064 00065 private: 00066 vtkKWEITKPaintbrushOperation(const vtkKWEITKPaintbrushOperation&); //Not implemented 00067 void operator=(const vtkKWEITKPaintbrushOperation&); //Not implemented 00068 }; 00069 00070 #endif
1.7.1