Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
Takin
mag-core
Commits
d9c56e60
Verified
Commit
d9c56e60
authored
Jun 22, 2021
by
Tobias WEBER
Browse files
gl surface format bugfix
parent
1540d752
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/magstructfact/magstructfact.cpp
View file @
d9c56e60
...
@@ -491,6 +491,9 @@ MagStructFactDlg::MagStructFactDlg(QWidget* pParent) : QDialog{pParent},
...
@@ -491,6 +491,9 @@ MagStructFactDlg::MagStructFactDlg(QWidget* pParent) : QDialog{pParent},
auto
ac3DView
=
new
QAction
(
"Unit Cell / Fourier Components..."
,
menuFile
);
auto
ac3DView
=
new
QAction
(
"Unit Cell / Fourier Components..."
,
menuFile
);
auto
ac3DViewSC
=
new
QAction
(
"Super Cell / Magnetic Moments..."
,
menuFile
);
auto
ac3DViewSC
=
new
QAction
(
"Super Cell / Magnetic Moments..."
,
menuFile
);
// not yet implemented
acImportCIF
->
setEnabled
(
false
);
menuFile
->
addAction
(
acNew
);
menuFile
->
addAction
(
acNew
);
menuFile
->
addSeparator
();
menuFile
->
addSeparator
();
menuFile
->
addAction
(
acLoad
);
menuFile
->
addAction
(
acLoad
);
...
@@ -533,6 +536,8 @@ MagStructFactDlg::MagStructFactDlg(QWidget* pParent) : QDialog{pParent},
...
@@ -533,6 +536,8 @@ MagStructFactDlg::MagStructFactDlg(QWidget* pParent) : QDialog{pParent},
m_dlgPlot
->
setWindowTitle
(
"Unit Cell"
);
m_dlgPlot
->
setWindowTitle
(
"Unit Cell"
);
m_plot
=
std
::
make_shared
<
tl2
::
GlPlot
>
(
this
);
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
()
->
SetLight
(
0
,
tl2
::
create
<
t_vec3_gl
>
({
5
,
5
,
5
}));
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
()
->
SetLight
(
1
,
tl2
::
create
<
t_vec3_gl
>
({
-
5
,
-
5
,
-
5
}));
m_plot
->
GetRenderer
()
->
SetCoordMax
(
1.
);
m_plot
->
GetRenderer
()
->
SetCoordMax
(
1.
);
...
@@ -593,6 +598,8 @@ MagStructFactDlg::MagStructFactDlg(QWidget* pParent) : QDialog{pParent},
...
@@ -593,6 +598,8 @@ MagStructFactDlg::MagStructFactDlg(QWidget* pParent) : QDialog{pParent},
m_dlgPlotSC
->
setWindowTitle
(
"Super Cell"
);
m_dlgPlotSC
->
setWindowTitle
(
"Super Cell"
);
m_plotSC
=
std
::
make_shared
<
tl2
::
GlPlot
>
(
this
);
m_plotSC
=
std
::
make_shared
<
tl2
::
GlPlot
>
(
this
);
m_plotSC
->
setFormat
(
tl2
::
gl_format
(
1
,
_GL_MAJ_VER
,
_GL_MIN_VER
,
8
,
m_plotSC
->
format
()));
m_plotSC
->
GetRenderer
()
->
SetLight
(
0
,
tl2
::
create
<
t_vec3_gl
>
({
5
,
5
,
5
}));
m_plotSC
->
GetRenderer
()
->
SetLight
(
0
,
tl2
::
create
<
t_vec3_gl
>
({
5
,
5
,
5
}));
m_plotSC
->
GetRenderer
()
->
SetLight
(
1
,
tl2
::
create
<
t_vec3_gl
>
({
-
5
,
-
5
,
-
5
}));
m_plotSC
->
GetRenderer
()
->
SetLight
(
1
,
tl2
::
create
<
t_vec3_gl
>
({
-
5
,
-
5
,
-
5
}));
m_plotSC
->
GetRenderer
()
->
SetCoordMax
(
1.
);
m_plotSC
->
GetRenderer
()
->
SetCoordMax
(
1.
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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