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
d4926109
Commit
d4926109
authored
Dec 01, 2010
by
Alexander Wiebel
Browse files
[ADD
#453
] added progress indication
parent
5343e566
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
src/modules/readSphericalHarmonics/WMReadSphericalHarmonics.cpp
...dules/readSphericalHarmonics/WMReadSphericalHarmonics.cpp
+9
-0
No files found.
src/modules/readSphericalHarmonics/WMReadSphericalHarmonics.cpp
View file @
d4926109
...
...
@@ -103,9 +103,16 @@ void WMReadSphericalHarmonics::moduleMain()
}
std
::
string
fileName
=
m_dataFile
->
get
().
string
();
boost
::
shared_ptr
<
WProgress
>
progress
;
progress
=
boost
::
shared_ptr
<
WProgress
>
(
new
WProgress
(
"Glyph Generation"
,
2
)
);
m_progress
->
addSubProgress
(
progress
);
WReaderNIfTI
niiLoader
(
fileName
);
boost
::
shared_ptr
<
WDataSet
>
data
;
data
=
niiLoader
.
load
(
W_DATASET_SPHERICALHARMONICS
);
++*
progress
;
if
(
data
)
{
m_data
=
boost
::
shared_dynamic_cast
<
WDataSetSphericalHarmonics
>
(
data
);
...
...
@@ -116,5 +123,7 @@ void WMReadSphericalHarmonics::moduleMain()
}
}
m_readTriggerProp
->
set
(
WPVBaseTypes
::
PV_TRIGGER_READY
,
false
);
progress
->
finish
();
}
}
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