]> Creatis software - creaContours.git/blobdiff - lib/Interface_ManagerContour_NDimensions/wxContourViewPanel.cxx
#3322 creaContours Feature New Normal - Feference contour Befor After actual slice
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / wxContourViewPanel.cxx
index 1da23fc1608255c5ce64e5b2e4934806f890f210..f0d33dd4656755af22c7b25f9ca7ff6b874ebc86 100644 (file)
@@ -710,11 +710,47 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHANGE )
 
        void wxContourViewPanel::addNameWrapperToScene()
        {
-               int size = wxContourMainFrame::getInstance()->getNamesWrappingSize();
-               for(int i = 0; i < size;i++){
+               int i,size = wxContourMainFrame::getInstance()->getNamesWrappingSize();
+               for(i = 0; i < size;i++)
+               {
                        std::string name = wxContourMainFrame::getInstance()->getNameWrapping(i);
                        _sceneManager->addToScene(name, true, true, true, false, false );
-               }
+               } // for i
+
+
+printf("EED \wxContourViewPanel::addNameWrapperToScene   Clean this part of code ...\n");
+printf("EED \wxContourViewPanel::addNameWrapperToScene   Clean this part of code ...\n");
+printf("EED \wxContourViewPanel::addNameWrapperToScene   Clean this part of code ...\n");
+printf("EED \wxContourViewPanel::addNameWrapperToScene   Clean this part of code ...\n");
+printf("EED \wxContourViewPanel::addNameWrapperToScene   Clean this part of code ...\n");
+printf("EED \wxContourViewPanel::addNameWrapperToScene   Clean this part of code ...\n");
+//EED 2019-12-05
+// falta buscar slice antes y despues para encontrar elementos
+// falta cambiar de colores para antes y despues
+// falta un flag que active y desactive esta opcion
+
+               std::vector<int> tempVector;
+               wxContourMainFrame::getInstance()->getInstantVector( tempVector );
+
+               // Contours Befor
+               std::vector<std::string> lstNameBefor = wxContourMainFrame::getInstance()->getOutlinesName(tempVector[1]-10);
+               size = lstNameBefor.size();
+               for(i = 0; i < size;i++)
+               {
+                       //                                                    ctrol  active showCtr
+                       _sceneManager->addToScene(lstNameBefor[i], true, true, false, false, false );
+               } // for i
+
+               // Contours After
+               std::vector<std::string> lstNameAfter = wxContourMainFrame::getInstance()->getOutlinesName(tempVector[1]+10);
+               size = lstNameAfter.size();
+               for(i = 0; i < size;i++)
+               {
+                       //                                                    ctrol  active showCtr
+                       _sceneManager->addToScene(lstNameAfter[i], true, true, false, false, false );
+               } // for i
+
+
        }
 
        std::vector<std::string> wxContourViewPanel::getSelectedObjects(){