]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.cxx
Necessary changes to manage the basic action . First prototype totally completed...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / wxVtkSceneManager.cxx
index 7370b197621b13d3564a857ce4f0e97320845d33..8592cc116e55f4abbc6d408bc4d4a7fa7fa82714 100644 (file)
@@ -157,12 +157,8 @@ namespace bbtk
                iren->SetInteractorStyle(interactorstylebaseview);
                interactorstylebaseview->SetwxVtkBaseView(_baseView);
                
-               double posCamera[3];
                _baseView->GetRenderer()->GetActiveCamera()->ParallelProjectionOn();
-               _baseView->GetRenderer()->GetActiveCamera()->SetPosition(0,0,1000);
-               _baseView->GetRenderer()->GetActiveCamera()->GetPosition(posCamera);
-               _baseView->GetRenderer()->ResetCamera();
-               _baseView->GetRenderer()->ResetCameraClippingRange();
+               _baseView->GetRenderer()->ResetCamera(-100,100,-100,100,900,900);
                
 
                _baseView->GetRenderer()->SetBackground(0.9,0.9,0.9);
@@ -203,7 +199,7 @@ namespace bbtk
                int cantObjects = _objects.size();
                cantObjects++;
                std::stringstream stream;
-               stream << "Box " << cantObjects;
+               stream << "Box:Algo " << cantObjects;
                std::string arraystring = stream.str();
 
                model->setBBTKName(arraystring);
@@ -325,8 +321,8 @@ namespace bbtk
                manualContourControler* manContourControl       = new manualContourControler();
                GConnectorView* manViewerContour        = new GConnectorView();
                manualContourModel* manContourModel     = new manualContourModel();
+               manContourModel->SetCloseContour(false);
 
-               
                manViewerContour->SetModel( manContourModel );
                manViewerContour->SetWxVtkBaseView( _baseView );
                manViewerContour->SetRange( 0.5 );
@@ -340,14 +336,16 @@ namespace bbtk
                manContourControl->SetModelView( manContourModel , manViewerContour );
                manContourControl->Configure();
                int i,sizeLstPoints = manContourModel->GetSizeLstPoints();
-               //std::cout<<"RaC wxVtkSceneManager::createGConnector "<<this<<" size:"<<sizeLstPoints<<std::endl;
+
                for ( i=0; i<sizeLstPoints; i++ )
                {
                        manViewerContour->AddPoint();
                }
 
                manContourControl->CreateNewManualContour();
-               manViewerContour->RefreshContour();                     
+
+               manViewerContour->RefreshContour();
+
                registerController((InteractorStyleMaracas*) manContourControl);
 
        }