+void wxVtkSceneManager::configureBaseView()
+{
+ vtkInteractorStyleBaseView2D *interactorstylebaseview = vtkInteractorStyleBaseView2D::New();
+
+ _baseView->SetInteractorStyleBaseView(interactorstylebaseview);
+
+ // Important to activate the 2D interaction system
+ wxVTKRenderWindowInteractor *iren = _baseView->GetWxVTKRenderWindowInteractor();
+ interactorstylebaseview->SetInteractor(iren);
+ iren->SetInteractorStyle(interactorstylebaseview);
+ interactorstylebaseview->SetwxVtkBaseView(_baseView);
+
+ _baseView->GetRenderer()->GetActiveCamera()->ParallelProjectionOn();
+ _baseView->GetRenderer()->ResetCamera(-100, 100, -100, 100, -1000, 1000);
+ _baseView->GetRenderer()->GetActiveCamera()->Zoom(10);
+
+
+ _baseView->GetRenderer()->SetBackground(0.9, 0.9, 0.9);
+ _baseView->GetRenderer()->GradientBackgroundOn();
+
+ // Actos Port_Text
+ _textActor = vtkTextActor3D::New();
+// _textActor = vtkTextActor::New();
+ _textActor->SetPosition(-9999, -9999, GPOSITION_Z);
+ _textActor->SetInput("<void>");
+ _textActor->GetTextProperty()->SetFontSize(60);
+ _textActor->GetTextProperty()->BoldOn();
+ _textActor->GetTextProperty()->SetColor(PORTTEXT_NH_R, PORTTEXT_NH_G,PORTTEXT_NH_B);
+
+ _baseView->GetRenderer()->AddActor(_textActor);
+
+ // Actor Fill_Port_Text
+
+ //------------
+ double xInic = 0;
+ double yInic = 0;
+ double zInic = GPOSITION_Z;
+
+ vtkPolygon *aPolygon = vtkPolygon::New();
+ _fillObjectActor = vtkActor::New();
+
+ _pts = vtkPoints::New();
+
+ double w = 100, h = 10, b = h / 15, t = 3;
+ _pts->SetNumberOfPoints(21);
+ _pts->InsertPoint(0, xInic + w * 0.33 - t / 2, yInic, zInic);
+ _pts->InsertPoint(1, xInic + w * 0.33, yInic - t, zInic);
+ _pts->InsertPoint(2, xInic + w * 0.33 + t / 2, yInic, zInic);
+ _pts->InsertPoint(3, xInic + w * 0.33 + t / 2, yInic, zInic);
+ _pts->InsertPoint(4, xInic + w - b * 4, yInic + b * 0, zInic);
+
+ _pts->InsertPoint(5, xInic + w - b * 4, yInic + b * 0, zInic);
+ _pts->InsertPoint(6, xInic + w - b * 2, yInic + b * 1, zInic);
+ _pts->InsertPoint(7, xInic + w - b * 1, yInic + b * 2, zInic);
+ _pts->InsertPoint(8, xInic + w - b * 0, yInic + b * 4, zInic);
+
+ _pts->InsertPoint(9, xInic + w - b * 0, yInic + h - b * 4, zInic);
+ _pts->InsertPoint(10, xInic + w - b * 1, yInic + h - b * 2, zInic);
+ _pts->InsertPoint(11, xInic + w - b * 2, yInic + h - b * 1, zInic);
+ _pts->InsertPoint(12, xInic + w - b * 4, yInic + h - b * 0, zInic);
+
+ _pts->InsertPoint(13, xInic + b * 4, yInic + h - b * 0, zInic);
+ _pts->InsertPoint(14, xInic + b * 2, yInic + h - b * 1, zInic);
+ _pts->InsertPoint(15, xInic + b * 1, yInic + h - b * 2, zInic);
+ _pts->InsertPoint(16, xInic + b * 0, yInic + h - b * 4, zInic);
+
+ _pts->InsertPoint(17, xInic + b * 0, yInic + b * 4, zInic);
+ _pts->InsertPoint(18, xInic + b * 1, yInic + b * 2, zInic);
+ _pts->InsertPoint(19, xInic + b * 2, yInic + b * 1, zInic);
+ _pts->InsertPoint(20, xInic + b * 4, yInic + b * 0, zInic);
+
+ aPolygon->GetPointIds()->SetNumberOfIds(21);
+ for (int i = 0; i < 21; i++) {
+ aPolygon->GetPointIds()->SetId(i, i);
+ }