18 #ifndef sitkImageViewer_h
19 #define sitkImageViewer_h
57 virtual std::string
GetName()
const {
return std::string(
"ImageViewer"); }
63 static void SetGlobalDefaultSearchPath(
const std::vector<std::string> & path );
64 static const std::vector<std::string> & GetGlobalDefaultSearchPath();
70 static void SetGlobalDefaultExecutableNames(
const std::vector<std::string> & names );
71 static const std::vector<std::string> & GetGlobalDefaultExecutableNames();
80 static void SetGlobalDefaultFileExtension(
const std::string & ext );
81 static const std::string & GetGlobalDefaultFileExtension();
87 static void SetGlobalDefaultApplication(
const std::string & app );
88 static const std::string & GetGlobalDefaultApplication();
101 void SetApplication(
const std::string & app,
const std::string & command =
"%a %f" );
104 const std::string & GetApplication()
const;
145 void SetCommand(
const std::string & command );
148 const std::string & GetCommand()
const;
157 void SetFileExtension(
const std::string & ext );
158 const std::string & GetFileExtension()
const;
167 static void SetGlobalDefaultDebug(
const bool dbg );
168 static bool GetGlobalDefaultDebug();
170 static void SetGlobalDefaultDebugOn();
171 static void SetGlobalDefaultDebugOff();
180 static void SetProcessDelay(
const unsigned int delay);
181 static unsigned int GetProcessDelay();
187 void SetTitle(
const std::string & t );
188 const std::string & GetTitle()
const;
193 void Execute (
const Image &image );
197 std::string ToString()
const;
227 static void initializeDefaults();
229 static std::string FindViewingApplication();
static std::string m_GlobalDefaultViewCommand
Display an image in an external viewer (Fiji by default)
std::string m_FileExtension
std::string m_CustomCommand
static bool m_GlobalDefaultDebug
static std::vector< std::string > m_GlobalDefaultExecutableNames
std::string m_Application
static bool m_GlobalAreDefaultsInitialized
static std::vector< std::string > m_GlobalDefaultSearchPath
static std::string m_GlobalDefaultFileExtension
static unsigned int m_GlobalProcessDelay
static std::string m_GlobalDefaultApplication
The Image class for SimpleITK.
std::string m_ViewCommand
virtual std::string GetName() const
static int m_GlobalViewerImageCount