Shapeworks Studio  2.1
Shape analysis software suite
tool.h
1 /*=========================================================================
2  Program: ShapeWorks: Particle-based Shape Correspondence & Visualization
3  Module: $RCSfile: tool.h,v $
4  Date: $Date: 2011/03/24 01:17:36 $
5  Version: $Revision: 1.2 $
6  Author: $Author: wmartin $
7 
8  Copyright (c) 2009 Scientific Computing and Imaging Institute.
9  See ShapeWorksLicense.txt for details.
10 
11  This software is distributed WITHOUT ANY WARRANTY; without even
12  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13  PURPOSE. See the above copyright notices for more information.
14 =========================================================================*/
15 #ifndef __st__tool_h
16 #define __st__tool_h
17 
18 #include "itkImage.h"
19 
20 namespace shapetools
21 {
28 template <class T, unsigned int D>
29 class tool
30 {
31 public:
32  typedef T PixelType;
33  typedef itk::Image<T, D> ImageType;
34 
35  tool() {}
36  virtual ~tool() {}
37 
38  virtual void operator()(typename ImageType::Pointer) = 0;
39 
40 private:
41  tool &operator=(const tool &); // purposely unimplemented
42  tool(const tool &); // purposely unimplemented
43 };
44 
45 
46 }// end namespace
47 
48 #endif