31 QtViewer::QtViewer(
const std::shared_ptr<SimShell::Ws::MergedPreferences>& p,
32 QWidget* w, std::function<
void()> on_close)
33 :
SimShell::Gui::ViewerWindow(p, w, on_close),
34 m_preferences(prefs_type::Create(p)),
35 m_canvas(make_shared<QGraphicsScene>()),
36 m_drawer(m_preferences)
39 setWindowTitle(
"SimPT_Sim: Qt Viewer: " + QString::fromStdString(p->GetPath()));
41 m_canvas->setBackgroundBrush(QBrush(QColor(QString::fromStdString(m_preferences->m_background_color)).rgb()));
Namespace for SimPT shell package.
Namespace for the core simulator.
Interface for MyGraphicsView.
see the online Qt documentation
Namespace event types raised by the simulator.
Scrollable QGraphicsView with zoom functionality.
Namespace for generic graphical shell for simulators.