Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
6ff33663
Commit
6ff33663
authored
Dec 03, 2010
by
Alexander Wiebel
Browse files
[FIX
#453
] initialize slice slider correctly
parent
418e0834
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
src/modules/teemGlyphs/WMTeemGlyphs.cpp
src/modules/teemGlyphs/WMTeemGlyphs.cpp
+13
-0
src/modules/teemGlyphs/WMTeemGlyphs.h
src/modules/teemGlyphs/WMTeemGlyphs.h
+2
-0
No files found.
src/modules/teemGlyphs/WMTeemGlyphs.cpp
View file @
6ff33663
...
@@ -224,6 +224,14 @@ void WMTeemGlyphs::moduleMain()
...
@@ -224,6 +224,14 @@ void WMTeemGlyphs::moduleMain()
}
}
if
(
m_input
->
getData
().
get
()
)
if
(
m_input
->
getData
().
get
()
)
{
{
bool
dataChanged
=
false
;
if
(
m_dataSet
!=
m_input
->
getData
()
)
{
// acquire data from the input connector
m_dataSet
=
m_input
->
getData
();
dataChanged
=
true
;
}
boost
::
shared_ptr
<
WGridRegular3D
>
gridReg
=
boost
::
shared_dynamic_cast
<
WGridRegular3D
>
(
m_input
->
getData
().
get
()
->
getGrid
()
);
boost
::
shared_ptr
<
WGridRegular3D
>
gridReg
=
boost
::
shared_dynamic_cast
<
WGridRegular3D
>
(
m_input
->
getData
().
get
()
->
getGrid
()
);
switch
(
m_sliceOrientationSelection
->
get
(
true
).
getItemIndexOfSelected
(
0
)
)
switch
(
m_sliceOrientationSelection
->
get
(
true
).
getItemIndexOfSelected
(
0
)
)
{
{
...
@@ -238,6 +246,11 @@ void WMTeemGlyphs::moduleMain()
...
@@ -238,6 +246,11 @@ void WMTeemGlyphs::moduleMain()
break
;
break
;
}
}
if
(
dataChanged
)
{
m_sliceIdProp
->
set
(
m_sliceIdProp
->
getMax
()
->
getMax
()
/
2
);
}
boost
::
shared_ptr
<
WDataSetScalar
>
gfa
=
m_inputGFA
->
getData
();
boost
::
shared_ptr
<
WDataSetScalar
>
gfa
=
m_inputGFA
->
getData
();
if
(
gfa
)
if
(
gfa
)
{
{
...
...
src/modules/teemGlyphs/WMTeemGlyphs.h
View file @
6ff33663
...
@@ -129,6 +129,8 @@ private:
...
@@ -129,6 +129,8 @@ private:
*/
*/
void
renderSlice
(
size_t
sliceId
);
void
renderSlice
(
size_t
sliceId
);
boost
::
shared_ptr
<
WDataSetSphericalHarmonics
>
m_dataSet
;
//!< Pointer to the treated data set.
boost
::
shared_ptr
<
WModuleInputData
<
WDataSetScalar
>
>
m_inputGFA
;
//!< The input for the GFA.
boost
::
shared_ptr
<
WModuleInputData
<
WDataSetScalar
>
>
m_inputGFA
;
//!< The input for the GFA.
osg
::
ref_ptr
<
WShader
>
m_shader
;
//!< The shader used for the glyph surfaces
osg
::
ref_ptr
<
WShader
>
m_shader
;
//!< The shader used for the glyph surfaces
boost
::
shared_ptr
<
WItemSelection
>
m_sliceOrientations
;
//!< A list of the selectable slice orientations, i.e x, y and z.
boost
::
shared_ptr
<
WItemSelection
>
m_sliceOrientations
;
//!< A list of the selectable slice orientations, i.e x, y and z.
...
...
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