From 561d0f4bdde3b9489095f5de838c0fb269a0c8d5 Mon Sep 17 00:00:00 2001
From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org>
Date: Wed, 3 Dec 2008 14:25:12 +0800
Subject: [PATCH] ENH: adding useful output to the printself of polyline

---
 Code/Common/otbPolyLineParametricPathWithValue.txx | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Code/Common/otbPolyLineParametricPathWithValue.txx b/Code/Common/otbPolyLineParametricPathWithValue.txx
index ed4d60b6ed..8724e8d56a 100644
--- a/Code/Common/otbPolyLineParametricPathWithValue.txx
+++ b/Code/Common/otbPolyLineParametricPathWithValue.txx
@@ -81,6 +81,13 @@ namespace otb
   ::PrintSelf(std::ostream& os, itk::Indent indent) const
   {
     Superclass::PrintSelf(os, indent);
+    VertexListConstIteratorType it =  this->GetVertexList()->Begin();
+    while(it != this->GetVertexList()->End())
+    {
+      os << it.Value() << " - ";
+      it++;
+    }
+    os << std::endl;
   }
   
 } // end namespace otb
-- 
GitLab