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
f41af087
Commit
f41af087
authored
Nov 30, 2010
by
Alexander Wiebel
Browse files
[CHANGE
#421
] renaming of variables
parent
e4a519d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
src/modules/vectorPlot/WMVectorPlot.cpp
src/modules/vectorPlot/WMVectorPlot.cpp
+7
-7
src/modules/vectorPlot/WMVectorPlot.h
src/modules/vectorPlot/WMVectorPlot.h
+3
-3
No files found.
src/modules/vectorPlot/WMVectorPlot.cpp
View file @
f41af087
...
...
@@ -104,9 +104,9 @@ void WMVectorPlot::properties()
"This color is used if direction coloring is deactivated."
,
WColor
(
1.0
,
0.0
,
0.0
,
1.0
)
);
m_show
onX
=
m_properties
->
addProperty
(
"Show sagittal"
,
"Show vectors on sagittal slice."
,
true
);
m_show
onY
=
m_properties
->
addProperty
(
"Show coronal"
,
"Show vectors on coronal slice."
,
true
);
m_show
onZ
=
m_properties
->
addProperty
(
"Show axial"
,
"Show vectors on axial slice."
,
true
);
m_show
OnSagittal
=
m_properties
->
addProperty
(
"Show sagittal"
,
"Show vectors on sagittal slice."
,
true
);
m_show
OnCoronal
=
m_properties
->
addProperty
(
"Show coronal"
,
"Show vectors on coronal slice."
,
true
);
m_show
OnAxial
=
m_properties
->
addProperty
(
"Show axial"
,
"Show vectors on axial slice."
,
true
);
m_xSlice
->
setMin
(
0
);
m_xSlice
->
setMax
(
160
);
...
...
@@ -216,7 +216,7 @@ osg::ref_ptr<osg::Geometry> WMVectorPlot::buildPlotSlices()
int
maxY
=
m_ySlice
->
getMax
()
->
getMax
();
int
maxZ
=
m_zSlice
->
getMax
()
->
getMax
();
if
(
m_show
onZ
->
get
(
true
)
)
if
(
m_show
OnAxial
->
get
(
true
)
)
{
for
(
int
x
=
0
;
x
<
maxX
;
++
x
)
{
...
...
@@ -268,7 +268,7 @@ osg::ref_ptr<osg::Geometry> WMVectorPlot::buildPlotSlices()
++*
progress
;
if
(
m_show
onY
->
get
(
true
)
)
if
(
m_show
OnCoronal
->
get
(
true
)
)
{
for
(
int
x
=
0
;
x
<
maxX
;
++
x
)
{
...
...
@@ -320,7 +320,7 @@ osg::ref_ptr<osg::Geometry> WMVectorPlot::buildPlotSlices()
++*
progress
;
if
(
m_show
onX
->
get
(
true
)
)
if
(
m_show
OnSagittal
->
get
(
true
)
)
{
for
(
int
y
=
0
;
y
<
maxY
;
++
y
)
{
...
...
@@ -403,7 +403,7 @@ void WMVectorPlot::updateCallback()
wmath
::
WPosition
current
=
WKernel
::
getRunningKernel
()
->
getSelectionManager
()
->
getCrosshair
()
->
getPosition
();
if
(
(
m_oldPos
!=
current
)
||
m_coloringMode
->
changed
()
||
m_aColor
->
changed
()
||
m_projectOnSlice
->
changed
()
||
m_show
onX
->
changed
()
||
m_show
onY
->
changed
()
||
m_show
onZ
->
changed
()
)
m_show
OnSagittal
->
changed
()
||
m_show
OnCoronal
->
changed
()
||
m_show
OnAxial
->
changed
()
)
{
m_oldPos
=
current
;
// for next run
osg
::
ref_ptr
<
osg
::
Drawable
>
old
=
osg
::
ref_ptr
<
osg
::
Drawable
>
(
m_rootNode
->
getDrawable
(
0
)
);
...
...
src/modules/vectorPlot/WMVectorPlot.h
View file @
f41af087
...
...
@@ -152,11 +152,11 @@ private:
WPropDouble
m_zSlice
;
//!< z position of the slice
WPropBool
m_show
onX
;
//!< indicates whether the vector should be shown on slice
X
WPropBool
m_show
OnSagittal
;
//!< indicates whether the vector should be shown on
sagittal
slice
WPropBool
m_show
onY
;
//!< indicates whether the vector should be shown on slice
Y
WPropBool
m_show
OnCoronal
;
//!< indicates whether the vector should be shown on
coronal
slice
WPropBool
m_show
onZ
;
//!< indicates whether the vector should be shown on slice
Z
WPropBool
m_show
OnAxial
;
//!< indicates whether the vector should be shown on
axial
slice
WPropColor
m_aColor
;
//!< color
...
...
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