18 #ifndef sitkImageViewer_h
19 #define sitkImageViewer_h
59 virtual std::string
GetName()
const {
return std::string(
"ImageViewer"); }
65 static void SetGlobalDefaultSearchPath(
const std::vector<std::string> & path );
66 static const std::vector<std::string> & GetGlobalDefaultSearchPath();
72 static void SetGlobalDefaultExecutableNames(
const std::vector<std::string> & names );
73 static const std::vector<std::string> & GetGlobalDefaultExecutableNames();
82 static void SetGlobalDefaultFileExtension(
const std::string & ext );
83 static const std::string & GetGlobalDefaultFileExtension();
89 static void SetGlobalDefaultApplication(
const std::string & app );
90 static const std::string & GetGlobalDefaultApplication();
103 void SetApplication(
const std::string & app,
const std::string & command =
"%a %f" );
106 const std::string & GetApplication()
const;
147 void SetCommand(
const std::string & command );
150 const std::string & GetCommand()
const;
159 void SetFileExtension(
const std::string & ext );
160 const std::string & GetFileExtension()
const;
169 static void SetGlobalDefaultDebug(
const bool dbg );
170 static bool GetGlobalDefaultDebug();
172 static void SetGlobalDefaultDebugOn();
173 static void SetGlobalDefaultDebugOff();
182 static void SetProcessDelay(
const unsigned int delay);
183 static unsigned int GetProcessDelay();
189 void SetTitle(
const std::string & t );
190 const std::string & GetTitle()
const;
195 void Execute (
const Image &image );
199 std::string ToString()
const;
229 static void initializeDefaults();
231 static std::string FindViewingApplication();