]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx
*** empty log message ***
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxVtkSceneManager.cxx
index 5b409fe573c2c3054b58e0feb1b1009a9ca30e21..cf08b262520bf5eab10e9d8293b4422794f0d762 100644 (file)
@@ -830,17 +830,17 @@ printf("EED  wxVtkSceneManager::createGComplexBoxOutputPort 900-450\n");
                        } // isOverPort
 
                } else {  //_worldState
-                       
+
                        _worldState                             = DRAG_OBJECTS;
                        _startDragging                  = true;
-                       
+
                        int shiftkey            = _vtkInteractorStyleBaseView->GetInteractor()->GetShiftKey();
                        int ctrlkey             = _vtkInteractorStyleBaseView->GetInteractor()->GetControlKey();
                        ctrlkey = ctrlkey + shiftkey;
-                       
+
                        GObjectController *cont = GetGBlackBoxControlerPointedByMouse();
 
-                       
+
                        if (GetGBlackBoxControlerPointedByMouse()!=NULL)
                        {
                                int state=cont->getView()->getState() ;
@@ -859,7 +859,7 @@ printf("EED  wxVtkSceneManager::createGComplexBoxOutputPort 900-450\n");
 
                } // if _selectedObjects.size
 
-               
+
                return true;
        }
 
@@ -889,12 +889,12 @@ printf("EED  wxVtkSceneManager::createGComplexBoxOutputPort 900-450\n");
                {
                        _worldState=NOTHING_HAPPENS;
                        //int lastId = _controllers.size()-1;
-                       
+
                        GConnectorController *connector = (GConnectorController*)_controllers[_idConnectionInCreation];
                        connector->removeFromScene();
                        unregisterController(connector);
                        _controllers.erase(_idConnectionInCreation);
-                       
+
                        std::map<int, GObjectController*>::iterator it;
                        for(it = _controllers.begin(); it != _controllers.end(); ++it)
                        {
@@ -903,10 +903,10 @@ printf("EED  wxVtkSceneManager::createGComplexBoxOutputPort 900-450\n");
                                desc->getView()->setState(NOTHING_HAPPENS);
                                desc->getModel()->notifyObservers(_idManager);
                        } // for
-               }// if          
+               }// if
        }
-       
-       
+
+
        //=========================================================================
 
        bool wxVtkSceneManager::OnRightButtonUp()
@@ -1937,29 +1937,29 @@ printf("EED  wxVtkSceneManager::createGComplexBoxOutputPort 900-450\n");
                                std::string nameEndPort(result);
 
                                int idCon = configGConnetion(nameStartBox, nameStartPort, nameEndBox, nameEndPort);
-                               
+
                                if (version!="1.0")
                                {
-                                       //Readding control points of the manualContour 
+                                       //Readding control points of the manualContour
                                        //ups1
-                                       GConnectorController    *tempp  = (GConnectorController*)_controllers[idCon];                           
+                                       GConnectorController    *tempp  = (GConnectorController*)_controllers[idCon];
                                        GConnectorModel                 *conMod = (GConnectorModel*)tempp->getModel();
                                        vtkGConnectorView               *conView= (vtkGConnectorView*)tempp->getView();
                                        getline(inputStream,line); //NumberOfControlPoints:##
                                        strcpy( conns, line.c_str() );
                                        result = strtok( conns, delims );
                                        result = strtok( NULL, delims );
-                               
+
                                        int numberOfControlPoints;
                                        std::istringstream isCons(result);
                                        isCons >> numberOfControlPoints;
-                               
+
                                        for (int ii=0;ii<numberOfControlPoints;ii++)
                                        {
                                                getline(inputStream,line); //XX:YY:ZZ
                                                char connec[200];
                                                strcpy( connec, line.c_str() );
-                                       
+
                                                double px,py,pz;
                                                result = strtok( connec, delims );
                                                std::istringstream isPointX(result);
@@ -1970,16 +1970,16 @@ printf("EED  wxVtkSceneManager::createGComplexBoxOutputPort 900-450\n");
                                                result = strtok( NULL, delims );
                                                std::istringstream isPointZ(result);
                                                isPointZ >> pz;
-                                       
+
                                                conMod->getManualContourModel()->InsertPoint_id(ii+1,px,py,pz);
                                                conView->getManualContourView()->AddPoint();
                                        }
                                }// version !=1.0
-                               
+
                        } // for numConns
 
         } // start
-               
+
                refresh();
        }
        //=========================================================================
@@ -2426,7 +2426,34 @@ printf("EED  wxVtkSceneManager::createGComplexBoxOutputPort 900-450\n");
 
        }
 
+
        //=========================================================================
+    void wxVtkSceneManager::SetComplexBoxName(std::string cbName)
+    {
+        _complexBoxName=cbName;
+    }
+
+       //=========================================================================
+    std::string wxVtkSceneManager::GetComplexBoxName()
+    {
+        return _complexBoxName;
+    }
+
+
+       //=========================================================================
+    void wxVtkSceneManager::SetPackageName(std::string paName)
+    {
+        _packageName=paName;
+    }
+
+       //=========================================================================
+    std::string wxVtkSceneManager::GetPackageName()
+    {
+        return _packageName;
+    }
+
+       //=========================================================================
+
 
 }  // EO namespace bbtk