VISU_ScalarMapPL
::AddGeometry(vtkDataSet* theGeometry)
{
+ // rnv: to fix issue 0020167 (AddMeshOnGroup is not fully taken into account)
+ // clear all inpust of the this->myAppendFilter in case if presentation
+ // constructed on the entire mesh.
+ if(!IsExternalGeometryUsed())
+ ClearGeometry();
myAppendFilter->AddInput(theGeometry);
return GetNumberOfGeometry();
}
#include "VISU_Prs3dUtils.hh"
#include "VISU_Result_i.hh"
+#include "VISU_ResultUtils.hh"
#include "VISU_ScalarMapAct.h"
#include "VISU_ScalarMapPL.hxx"
aPixmap->SetPixMap(GetIconName());
// Update Object Browser
+ //rnv: to fix issue 0020167 (crash then AddMeshOnGroup called from
+ //python script). Solution: update object browser using UpdateObjBrowser event.
+ /*
SUIT_Session* aSession = SUIT_Session::session();
QList<SUIT_Application*> anApplications = aSession->applications();
QList<SUIT_Application*>::Iterator anIter = anApplications.begin();
}
anIter++;
}
+ */
+ bool done = true;
+ ProcessVoidEvent(new TUpdateObjBrowser(aStudyDocument->StudyId(),&done));
}
//----------------------------------------------------------------------------