X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkImage2DicomRTStructFilter.h;h=9455eabb8ba3a65fb74c1879ac6679c34bf371b0;hb=543b72e23ad001ac2a7743b9beacf48e2d0054ac;hp=d570934d046f96f2d9f0e39ba4a8e180c44ad1f9;hpb=794be53b8efec2ddb9c3097efd559c514fb4a813;p=clitk.git diff --git a/common/clitkImage2DicomRTStructFilter.h b/common/clitkImage2DicomRTStructFilter.h index d570934..9455eab 100644 --- a/common/clitkImage2DicomRTStructFilter.h +++ b/common/clitkImage2DicomRTStructFilter.h @@ -2,7 +2,7 @@ Program: vv http://www.creatis.insa-lyon.fr/rio/vv Main authors : XX XX XX - Authors belongs to: + Authors belongs to: - University of LYON http://www.universite-lyon.fr/ - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr @@ -31,7 +31,7 @@ namespace clitk { //-------------------------------------------------------------------- template class Image2DicomRTStructFilter: public clitk::FilterBase { - + public: Image2DicomRTStructFilter(); ~Image2DicomRTStructFilter(); @@ -41,16 +41,24 @@ namespace clitk { typedef typename clitk::DicomRT_StructureSet::Pointer DicomRTStructPointer; // Set inputs - itkSetMacro(InputFilenames, std::vector ); + virtual void SetInputFilenames (const std::vector _arg) + { + if ( this->m_InputFilenames != _arg ) + { + this->m_InputFilenames = _arg; + this->Modified(); + } + } itkSetMacro(StructureSetFilename, std::string); itkSetMacro(DicomFolder, std::string); itkSetMacro(OutputFilename, std::string); void SetROIType(std::string type); itkSetMacro(ThresholdValue, PixelType); - + itkSetMacro(SkipInitialStructuresFlag, bool); + // Run filter - void Update(); - + void Update(); + protected: std::string m_StructureSetFilename; std::string m_DicomFolder; @@ -58,6 +66,7 @@ namespace clitk { std::string m_ROIType; PixelType m_ThresholdValue; std::vector m_InputFilenames; + bool m_SkipInitialStructuresFlag; }; //--------------------------------------------------------------------