Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CAMP
campvis-public
Commits
ab883817
Commit
ab883817
authored
Mar 05, 2014
by
Christian Schulte zu Berge
Browse files
Fixed GenericImageReader::updateResult() not validating the processor.
parent
08460271
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/io/processors/genericimagereader.cpp
View file @
ab883817
...
...
@@ -72,6 +72,7 @@ namespace campvis {
if
(
nullptr
!=
it
->
second
)
delete
it
->
second
;
}
}
void
GenericImageReader
::
updateResult
(
DataContainer
&
data
)
{
std
::
map
<
AbstractImageReader
*
,
MetaProperty
*>::
iterator
it
=
std
::
find_if
(
this
->
_readers
.
begin
(),
this
->
_readers
.
end
(),
checkExt
(
this
->
_ext
));
if
(
it
!=
this
->
_readers
.
end
())
{
...
...
@@ -84,8 +85,10 @@ namespace campvis {
}
(
it
->
first
)
->
process
(
data
);
}
return
;
validate
(
INVALID_RESULT
);
}
void
GenericImageReader
::
setVisibibility
(
const
std
::
string
&
extention
,
bool
visibility
)
{
std
::
string
_ext
=
extention
;
std
::
map
<
AbstractImageReader
*
,
MetaProperty
*>::
iterator
it
=
std
::
find_if
(
this
->
_readers
.
begin
(),
this
->
_readers
.
end
(),
checkExt
(
_ext
));
...
...
@@ -97,8 +100,8 @@ namespace campvis {
this
->
_currentlyVisible
=
it
->
second
;
//(it->first)->process(data);
}
return
;
}
void
GenericImageReader
::
setURL
(
std
::
string
p_url
)
{
this
->
p_url
.
setValue
(
p_url
);
...
...
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