]> Creatis software - clitk.git/blobdiff - common/clitkDicomRT_Contour.h
minor fixes
[clitk.git] / common / clitkDicomRT_Contour.h
index b59976969eaac0d6ce3808f25ef0bf88c2f60189..3e9ad8cf4edb6be410a9a16fe94e7cd1b8ae1978 100644 (file)
@@ -39,6 +39,7 @@ namespace clitk {
     void Print(std::ostream & os = std::cout) const;
     bool Read(gdcm::SQItem * item);
     vtkPolyData * GetMesh();
+    vtkPoints * GetPoints() {return mData;}
     
   protected:
     void ComputeMesh();
@@ -51,33 +52,6 @@ namespace clitk {
   };
   //--------------------------------------------------------------------
 
-  //--------------------------------------------------------------------
-  template<class ElementType>
-  ElementType parse_value(std::string str)
-  {
-    std::istringstream parser(str);
-    ElementType value;
-    parser >> value;
-    if (parser.fail()) {
-      DD(str);
-      DD(value);
-    }
-    assert(!parser.fail());
-    return value;
-  }
-
-  template<class ElementType>
-  std::vector<ElementType> parse_string(std::string str,char delim) {
-    std::istringstream ss(str);
-    std::string token;
-    std::vector<ElementType> result;
-    while (getline(ss,token,delim))
-      {
-        result.push_back(parse_value<ElementType>(token));
-      }
-    return result;
-  }
-  //--------------------------------------------------------------------
 
 
 } // end namespace clitk