]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.cxx
Properties panel and black box text info
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / wxVtkSceneManager.cxx
index 3c79b612fdb903cd3395cce040e00b83d389ba1d..005c52fb096f9494682bfd3d9321946fe05d88dc 100644 (file)
@@ -97,7 +97,15 @@ namespace bbtk
 
                        getRenderer()->AddActor(_pointVtkActor);
 
-                       
+                       // Create a vector text
+                       vtkVectorText* vecText = vtkVectorText::New();
+                       vecText->SetText("vtkVectorText");
+
+                       vtkPolyDataMapper* txtMapper = vtkPolyDataMapper::New();
+                       txtMapper->SetInputConnection( vecText->GetOutputPort());
+                       vtkActor* txtActor = vtkActor::New();
+                       txtActor->SetMapper(txtMapper);
+                       //getRenderer()->AddActor(txtActor);
                        
                        // ******* TO ERASE *******
                        /////////////////////
@@ -164,6 +172,15 @@ namespace bbtk
                _baseView->TransCoordScreenToWorld(xx,yy,zz);
                model->setInicPoint(xx,yy,zz);
                
+               int cantObjects = _objects.size();
+               cantObjects++;
+               std::stringstream stream;
+               stream << "Object " << cantObjects;
+               std::string arraystring = stream.str();
+
+               model->setBBTKName(arraystring);
+               model->setBBTKType(boxName);
+                               
                model->addObserver(view);
                model->addObserver(this);
 
@@ -341,15 +358,12 @@ namespace bbtk
                
                if(command==INIT_CREATION_CONTOUR)
                {
-                       std::cout<<"wxVtkSceneManager::update size:"<<_objects.size()<<std::endl;
                        for(int i = 0; i<_objects.size();i++)
                        {
-                               std::cout<<"wxVtkSceneManager::update type:"<<_objects[i]->getGObjectType()<<std::endl;
                                if(_objects[i]->getGObjectType() == GBLACKBOX)
                                {
                                        
                                        GPortModel* startInputPort=((GBlackBoxModel*)_objects[i])->getStartInputPort();
-                                       std::cout<<"wxVtkSceneManager::update "<<startInputPort<<std::endl;
                                        createGConnector(startInputPort);
 
                                }