Starting from 2021-07-01, all LRZ GitLab users will be required to explicitly accept the GitLab Terms of Service. Please see the detailed information at https://doku.lrz.de/display/PUBLIC/GitLab and make sure that your projects conform to the requirements.

Commit 7c829bae authored by schultezub's avatar schultezub
Browse files

* little fix in DataContainerInspectorCanvas

git-svn-id: https://camplinux.in.tum.de/svn/campvis/trunk@454 bb408c1c-ae56-11e1-83d9-df6b3e0c105e
parent d2d403bc
......@@ -110,6 +110,9 @@ namespace campvis {
void DataContainerInspectorCanvas::paint() {
tbb::mutex::scoped_lock lock(_localMutex);
if (_texturesDirty)
updateTextures();
if (_textures.empty())
return;
......@@ -262,7 +265,7 @@ namespace campvis {
for (std::vector< std::pair<QString, QtDataHandle> >::const_iterator it = handles.begin(); it != handles.end(); ++it)
_handles.insert(*it);
updateTextures();
_texturesDirty = true;
}
invalidate();
......@@ -288,6 +291,7 @@ namespace campvis {
if (maxSlices == 1)
maxSlices = -1;
p_currentSlice.setMaxValue(maxSlices);
_texturesDirty = false;
}
void DataContainerInspectorCanvas::onPropertyChanged(const AbstractProperty* prop) {
......
......@@ -164,6 +164,7 @@ namespace campvis {
std::map<QString, QtDataHandle> _handles;
std::vector<const tgt::Texture*> _textures;
bool _texturesDirty;
DataContainer* _dataContainer; ///< The DataContainer this widget is inspecting
tbb::mutex _localMutex; ///< Mutex protecting the local members
......
......@@ -200,6 +200,9 @@ namespace campvis {
if (!_usDenoiseilter.getInvalidationLevel().isValid()) {
SimpleJobProc.enqueueJob(makeJob<AdvancedUsVis, AbstractProcessor*>(this, &AdvancedUsVis::executeProcessor, &_usDenoiseilter));
}
if (!_confidenceGenerator.getInvalidationLevel().isValid()) {
SimpleJobProc.enqueueJob(makeJob<AdvancedUsVis, AbstractProcessor*>(this, &AdvancedUsVis::executeProcessor, &_confidenceGenerator));
}
for (std::vector<AbstractProcessor*>::iterator it = _processors.begin(); it != _processors.end(); ++it) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment