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
7fde4f5b
Commit
7fde4f5b
authored
Apr 09, 2015
by
Christian Schulte zu Berge
Browse files
Introducing AbstractPipeline::forceExecuteProcessor().
parent
0806d758
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/pipeline/abstractpipeline.cpp
View file @
7fde4f5b
...
...
@@ -276,6 +276,17 @@ namespace campvis {
return
_processors
[
index
];
}
void
AbstractPipeline
::
forceExecuteProcessor
(
AbstractProcessor
*
processor
)
{
bool
enabledState
=
processor
->
getEnabled
();
int
invalidationLevel
=
processor
->
getInvalidationLevel
();
processor
->
setEnabled
(
true
);
processor
->
invalidate
(
AbstractProcessor
::
INVALID_RESULT
);
executeProcessor
(
processor
);
processor
->
setEnabled
(
enabledState
);
}
}
core/pipeline/abstractpipeline.h
View file @
7fde4f5b
...
...
@@ -206,6 +206,12 @@ namespace campvis {
*/
void
setPipelineDirty
();
/**
* Forces the execution of the given processor regardless of its invalidation or enabled state.
* \param processor Processor to execute.
*/
void
forceExecuteProcessor
(
AbstractProcessor
*
processor
);
/**
* Executes the processor \a processor on the pipeline's data and locks its properties meanwhile.
* \param processor Processor to execute.
...
...
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