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
ddb54075
Commit
ddb54075
authored
Nov 30, 2010
by
Alexander Wiebel
Browse files
[CHANGE
#450
] Automatic determination of maximum slice
parent
263f6ca8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
src/modules/teemGlyphs/WMTeemGlyphs.cpp
src/modules/teemGlyphs/WMTeemGlyphs.cpp
+18
-2
No files found.
src/modules/teemGlyphs/WMTeemGlyphs.cpp
View file @
ddb54075
...
@@ -216,7 +216,24 @@ void WMTeemGlyphs::moduleMain()
...
@@ -216,7 +216,24 @@ void WMTeemGlyphs::moduleMain()
m_moduleState
.
wait
();
m_moduleState
.
wait
();
continue
;
continue
;
}
}
renderSlice
(
m_sliceIdProp
->
get
()
);
if
(
m_input
->
getData
().
get
()
)
{
boost
::
shared_ptr
<
WGridRegular3D
>
gridReg
=
boost
::
shared_dynamic_cast
<
WGridRegular3D
>
(
m_input
->
getData
().
get
()
->
getGrid
()
);
switch
(
m_sliceOrientationSelection
->
get
(
true
).
getItemIndexOfSelected
(
0
)
)
{
case
0
:
m_sliceIdProp
->
setMax
(
gridReg
->
getNbCoordsX
()
-
1
);
break
;
case
1
:
m_sliceIdProp
->
setMax
(
gridReg
->
getNbCoordsY
()
-
1
);
break
;
case
2
:
m_sliceIdProp
->
setMax
(
gridReg
->
getNbCoordsZ
()
-
1
);
break
;
}
renderSlice
(
m_sliceIdProp
->
get
()
);
}
m_moduleState
.
wait
();
m_moduleState
.
wait
();
}
}
...
@@ -362,7 +379,6 @@ WMTeemGlyphs::GlyphGeneration::GlyphGeneration( boost::shared_ptr< WDataSetSpher
...
@@ -362,7 +379,6 @@ WMTeemGlyphs::GlyphGeneration::GlyphGeneration( boost::shared_ptr< WDataSetSpher
m_nX
=
m_grid
->
getNbCoordsX
();
m_nX
=
m_grid
->
getNbCoordsX
();
m_nY
=
m_grid
->
getNbCoordsY
();
m_nY
=
m_grid
->
getNbCoordsY
();
m_nZ
=
m_grid
->
getNbCoordsZ
();
m_nZ
=
m_grid
->
getNbCoordsZ
();
WAssert
(
sliceId
<
m_nX
,
"Slice id to large."
);
m_sliceId
=
sliceId
;
m_sliceId
=
sliceId
;
switch
(
sliceType
)
switch
(
sliceType
)
...
...
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