Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
Takin
mag-core
Commits
03d033aa
Verified
Commit
03d033aa
authored
May 29, 2022
by
Tobias WEBER
Browse files
camera
parent
243f05ef
Changes
5
Hide whitespace changes
Inline
Side-by-side
tools/bz/bz.cpp
View file @
03d033aa
...
...
@@ -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
);
...
...
tools/bz/bz_plot.cpp
View file @
03d033aa
...
...
@@ -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
}));
...
...
tools/magdyn/magdyn_structplot.cpp
View file @
03d033aa
...
...
@@ -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
(
...
...
tools/magstructfact/magstructfact.cpp
View file @
03d033aa
...
...
@@ -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.
);
...
...
tools/structfact/structfact_plot.cpp
View file @
03d033aa
...
...
@@ -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.
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment