Skip to content
Snippets Groups Projects
Commit b6a6fd38 authored by Julien Malik's avatar Julien Malik
Browse files

ENH: activate output image parameter when a filename is given

parent bc197df7
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,16 @@ public:
/** Return true if a filename is set */
bool HasValue() const;
itkSetStringMacro(FileName);
void SetFileName (const char* filename)
{
m_FileName = filename;
SetActive(true);
}
void SetFileName (const std::string& filename)
{
this->SetFileName(filename.c_str());
}
itkGetStringMacro(FileName);
void Write();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment