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(){