Fix for PAL12900.

This commit is contained in:
mzn 2006-07-14 11:17:02 +00:00
parent 05240b02ef
commit 0170ada804
3 changed files with 11 additions and 8 deletions

View File

@ -110,14 +110,16 @@ GEOM_Swig::~GEOM_Swig()
// MESSAGE("Destructeur");
}
void GEOM_Swig::createAndDisplayGO (const char* Entry)
void GEOM_Swig::createAndDisplayGO (const char* Entry, bool isUpdated)
{
class TEvent: public SALOME_Event
{
std::string myEntry;
bool myUpdateViewer;
public:
TEvent(const char* theEntry):
myEntry(theEntry)
TEvent(const char* theEntry, bool toUpdateViewer):
myEntry(theEntry),
myUpdateViewer(toUpdateViewer)
{}
virtual void Execute()
{
@ -178,7 +180,7 @@ void GEOM_Swig::createAndDisplayGO (const char* Entry)
"GEOM",
const_cast<char*>( obj->GetID().c_str()));
GEOM_Displayer(ActiveStudy).Display(anIO, true);
GEOM_Displayer(ActiveStudy).Display(anIO, myUpdateViewer);
/*if (SVTK_ViewWindow* aViewWindow = GetSVTKViewWindow(app)) {
SVTK_View* aView = aViewWindow->getView();
int aMode = aView->GetDisplayMode();
@ -216,7 +218,7 @@ void GEOM_Swig::createAndDisplayGO (const char* Entry)
};
// MESSAGE("createAndDisplayGO");
ProcessVoidEvent(new TEvent (Entry));
ProcessVoidEvent(new TEvent (Entry, isUpdated));
class TEventUpdateBrowser: public SALOME_Event
{
@ -233,6 +235,7 @@ void GEOM_Swig::createAndDisplayGO (const char* Entry)
}
};
if (isUpdated)
ProcessVoidEvent(new TEventUpdateBrowser ());
}

View File

@ -49,7 +49,7 @@ public:
GEOM_Swig();
~GEOM_Swig();
void createAndDisplayGO(const char* Entry);
void createAndDisplayGO(const char* Entry, bool isUpdated = true);
void eraseGO(const char* Entry, bool allWindows);
void createAndDisplayFitAllGO(const char* Entry);
void setDisplayMode(const char* Entry, int mode);

View File

@ -36,7 +36,7 @@ class GEOM_Swig
GEOM_Swig();
~GEOM_Swig();
void createAndDisplayGO(const char* Entry);
void createAndDisplayGO(const char* Entry, bool isUpdated =true);
void eraseGO(const char* Entry, bool allWindows);
void createAndDisplayFitAllGO(const char* Entry);
int getIndexTopology(const char *SubEntry, const char *Entry);