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);
+
//------------
void vtkGBlackBoxView::addVtkActors()//virtual
{
+
_baseView->GetRenderer()->AddActor(_borderObjectActor);
- _baseView->GetRenderer()->AddActor(_boxTextActor);
vtkGObjectView::addVtkActors();
+ _baseView->GetRenderer()->AddActor(_boxTextActor);
}
//=========================================================================
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);
}
wxString fileName = openFileDialog->GetPath();
ifstream inputStream;
std::string fName = (const char*) (fileName.mb_str());
+
inputStream.open(fName.c_str());
+ assert(inputStream.good()); // fails
_tabsMgr->addNewTab(openFileDialog->GetFilename());
-
_tabsMgr->loadDiagram(inputStream, fName);
inputStream.close();