X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkDicomRT_Contour.h;h=3e9ad8cf4edb6be410a9a16fe94e7cd1b8ae1978;hb=1a13aa34de4f99334b27050c18b32e6e4c8f0650;hp=b59976969eaac0d6ce3808f25ef0bf88c2f60189;hpb=163fa80ef3873595f3e3cf75fb03e53536d1a6ee;p=clitk.git diff --git a/common/clitkDicomRT_Contour.h b/common/clitkDicomRT_Contour.h index b599769..3e9ad8c 100644 --- a/common/clitkDicomRT_Contour.h +++ b/common/clitkDicomRT_Contour.h @@ -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 - 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 - std::vector parse_string(std::string str,char delim) { - std::istringstream ss(str); - std::string token; - std::vector result; - while (getline(ss,token,delim)) - { - result.push_back(parse_value(token)); - } - return result; - } - //-------------------------------------------------------------------- } // end namespace clitk