]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGBlackBoxView.cxx
Connection with BBTK and capturing black bbox descriptor
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / vtkGBlackBoxView.cxx
index 1dc1d7657aafdfcdba96730fa007b4834ae2301f..684670cc4c31f3d8fbd5e7f70a5920f03964210e 100644 (file)
@@ -54,6 +54,15 @@ namespace bbtk
        void vtkGBlackBoxView::refresh()
        {
                //paint();
+               if(_model->getState()==HIGHLIGHTED)
+               {
+                       _objectActor->GetProperty()->SetColor(0.0,0.2,0.5);
+               }
+               else
+               {
+                       _objectActor->GetProperty()->SetColor(0.3,0.2,0.2);
+               }
+               _baseView->GetRenderer()->Render();
        }
 
        //=========================================================================
@@ -93,6 +102,8 @@ namespace bbtk
                _bboxMapper->SetInput(_pd);
                _objectActor->SetMapper(_bboxMapper);
 
+               _objectActor->GetProperty()->SetColor(0.3,0.2,0.2);
+
        }
 
        //=========================================================================