]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGBlackBoxView.cxx
Bug #1362, Bug #1361
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / vtkGBlackBoxView.cxx
index 0eec429fa6f1b4438bee7883163b39c107f79d34..97c2605f7bbaefc5739dfe1e9bd53ccfdf5d1471 100644 (file)
@@ -193,10 +193,12 @@ namespace bbtk
                vtkTextProperty *prop =  vtkTextProperty::New();
                prop->BoldOn();
                prop->SetFontFamilyToArial();
-               prop->SetFontSize(100);
+               _boxTextActor->GetTextProperty()->BoldOn();
+               prop->SetFontSize(80);
                _boxTextActor->SetTextProperty(prop);
-               //_boxTextActor->GetTextProperty()->SetFontSize(80);
-               //_boxTextActor->GetTextProperty()->BoldOn();
+       
+       //      _boxTextActor->GetTextProperty()->SetFontSize(80);
+               
 
                //------------
 
@@ -207,9 +209,10 @@ namespace bbtk
 
        void vtkGBlackBoxView::addVtkActors()//virtual
        {
+               
                _baseView->GetRenderer()->AddActor(_borderObjectActor);
-               _baseView->GetRenderer()->AddActor(_boxTextActor);
                vtkGObjectView::addVtkActors();
+               _baseView->GetRenderer()->AddActor(_boxTextActor);
        }
 
        //=========================================================================
@@ -229,7 +232,7 @@ namespace bbtk
                temp+=":";
                temp+=_model->getBBTKName();
                _boxTextActor->SetInput(temp.c_str());
-               _boxTextActor->SetPosition(xInic+4,yInic-7,zInic);
+               _boxTextActor->SetPosition(xInic+4,yInic-7,zInic+1);
                _boxTextActor->SetScale(0.05,0.05,1);
        }