]> Creatis software - clitk.git/blobdiff - common/clitkImage2DicomRTStructFilter.h
QVTKOpenGLNativeWidget is available from VTK8.2
[clitk.git] / common / clitkImage2DicomRTStructFilter.h
index d570934d046f96f2d9f0e39ba4a8e180c44ad1f9..9455eabb8ba3a65fb74c1879ac6679c34bf371b0 100644 (file)
@@ -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 PixelType>
   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<std::string> );
+    virtual void SetInputFilenames (const std::vector<std::string> _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<std::string> m_InputFilenames;
+    bool m_SkipInitialStructuresFlag;
   };
   //--------------------------------------------------------------------