]> Creatis software - creaMaracasVisu.git/commitdiff
#3484 ShowNPoints export VOID Labels
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 7 Apr 2022 12:39:19 +0000 (14:39 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 7 Apr 2022 12:39:19 +0000 (14:39 +0200)
lib/maracasVisuLib/src/interface/wxWindows/widgets/ModelShowNPoints.cxx

index 4f7eebbbb4dfc4046bbd69ba2086be31019c5e1d..7468bfdc2bef2de9d43921ef2da7e89ff5ad17b8 100644 (file)
@@ -21,14 +21,12 @@ void ModelShowNPoints::SetRadio(double radio)
        mradio =  radio;
 }
 
-
 //------------------------------------------------------------------------
 double ModelShowNPoints::GetRadio()
 {
        return mradio;
 }
 
-
 //------------------------------------------------------------------------
 std::vector<int> ModelShowNPoints::GetLstPointsX()
 {
@@ -50,7 +48,20 @@ std::vector<int> ModelShowNPoints::GetLstPointsZ()
 //------------------------------------------------------------------------
 std::vector<std::string> ModelShowNPoints::GetLstLabels()
 {
-       return lstLabels;
+//     return lstLabels;
+       std::vector<std::string> tmpLst;
+       int i   ,size=lstLabels.size();
+       std::string tmp;
+       for (i=0; i<size; i++) 
+       {
+               tmp=lstLabels[i];
+               if (tmp.empty()==true) 
+               {
+                       tmp="VOID";     
+               }
+               tmpLst.push_back( tmp );
+       } // for i
+       return tmpLst;
 }
 
 //------------------------------------------------------------------------