]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGBlackBoxView.cxx
Bug #1362, Bug #1361
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / vtkGBlackBoxView.cxx
index ea07a9ae76c6fbdd76ad9e8d33246b338c27a35b..97c2605f7bbaefc5739dfe1e9bd53ccfdf5d1471 100644 (file)
@@ -190,8 +190,15 @@ namespace bbtk
                //------------
 
                _boxTextActor           = vtkTextActor3D::New();
-               _boxTextActor->GetTextProperty()->SetFontSize(80);
+               vtkTextProperty *prop =  vtkTextProperty::New();
+               prop->BoldOn();
+               prop->SetFontFamilyToArial();
                _boxTextActor->GetTextProperty()->BoldOn();
+               prop->SetFontSize(80);
+               _boxTextActor->SetTextProperty(prop);
+       
+       //      _boxTextActor->GetTextProperty()->SetFontSize(80);
+               
 
                //------------
 
@@ -202,9 +209,10 @@ namespace bbtk
 
        void vtkGBlackBoxView::addVtkActors()//virtual
        {
+               
                _baseView->GetRenderer()->AddActor(_borderObjectActor);
-               _baseView->GetRenderer()->AddActor(_boxTextActor);
                vtkGObjectView::addVtkActors();
+               _baseView->GetRenderer()->AddActor(_boxTextActor);
        }
 
        //=========================================================================
@@ -224,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);
        }