Verified Commit 03d033aa authored by Tobias WEBER's avatar Tobias WEBER
Browse files

camera

parent 243f05ef
......@@ -283,7 +283,7 @@ BZDlg::BZDlg(QWidget* pParent) : QDialog{pParent},
m_sett ? m_sett->value("native_gui", false).toBool() : false);
auto menuFile = new QMenu("File", m_menu);
auto menuView = new QMenu("View", m_menu);
auto menuView = new QMenu("Brillouin Zone", m_menu);
auto acNew = new QAction("New", menuFile);
auto acLoad = new QAction("Load...", menuFile);
......
......@@ -45,6 +45,7 @@ void BZDlg::ShowBZPlot()
m_dlgPlot->setWindowTitle("Brillouin Zone - 3D View");
m_plot = std::make_shared<tl2::GlPlot>(this);
m_plot->GetRenderer()->SetRestrictCamTheta(false);
m_plot->GetRenderer()->SetCull(false);
m_plot->GetRenderer()->SetLight(0, tl2::create<t_vec3_gl>({ 5, 5, 5 }));
m_plot->GetRenderer()->SetLight(1, tl2::create<t_vec3_gl>({ -5, -5, -5 }));
......
......@@ -47,6 +47,7 @@ void MagDynDlg::ShowStructurePlot()
m_structplot_dlg->setWindowTitle("Atom Sites");
m_structplot = new tl2::GlPlot(this);
m_structplot->GetRenderer()->SetRestrictCamTheta(false);
m_structplot->GetRenderer()->SetLight(
0, tl2::create<t_vec3_gl>({ 5, 5, 5 }));
m_structplot->GetRenderer()->SetLight(
......
......@@ -515,6 +515,7 @@ MagStructFactDlg::MagStructFactDlg(QWidget* pParent) : QDialog{pParent},
m_plot = std::make_shared<tl2::GlPlot>(this);
m_plot->setFormat(tl2::gl_format(1, _GL_MAJ_VER, _GL_MIN_VER, 8, m_plot->format()));
m_plot->GetRenderer()->SetRestrictCamTheta(false);
m_plot->GetRenderer()->SetLight(0, tl2::create<t_vec3_gl>({ 5, 5, 5 }));
m_plot->GetRenderer()->SetLight(1, tl2::create<t_vec3_gl>({ -5, -5, -5 }));
m_plot->GetRenderer()->SetCoordMax(1.);
......
......@@ -46,6 +46,7 @@ void StructFactDlg::ShowStructPlot()
m_dlgPlot->setWindowTitle("Unit Cell - 3D View");
m_plot = std::make_shared<tl2::GlPlot>(this);
m_plot->GetRenderer()->SetRestrictCamTheta(false);
m_plot->GetRenderer()->SetLight(0, tl2::create<t_vec3_gl>({ 5, 5, 5 }));
m_plot->GetRenderer()->SetLight(1, tl2::create<t_vec3_gl>({ -5, -5, -5 }));
m_plot->GetRenderer()->SetCoordMax(1.);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment