3 #include "vvToolBaseBase.h"
4 #include "vvToolCreator.h"
6 //------------------------------------------------------------------------------
7 template<class ToolType>
8 class vvToolBase : public vvToolBaseBase {
10 vvToolBase(vvMainWindowBase * m);
11 static void Initialize(); // can't be virtual, must be overwritten
13 static void SetToolName(QString n) { vvToolCreator<ToolType>::mSingleton->mToolName = n; }
14 static void SetToolMenuName(QString n) { vvToolCreator<ToolType>::mSingleton->mToolMenuName = n; }
15 static void SetToolIconFilename(QString n) { vvToolCreator<ToolType>::mSingleton->mToolIconFilename = n; }
16 static void SetToolTip(QString n) { vvToolCreator<ToolType>::mSingleton->mToolTip = n; }
17 static void SetToolExperimental(bool exp) { vvToolCreator<ToolType>::mSingleton->mExperimental = exp; }
19 void AddImage(vvImage::Pointer image,std::string filename) {
20 CREATOR(ToolType)->GetMainWindow()->AddImage(image,filename);
24 //------------------------------------------------------------------------------
26 #include "vvToolBase.txx"