mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 10:08:35 +05:00
Fix for PAL12900.
This commit is contained in:
parent
05240b02ef
commit
0170ada804
@ -110,14 +110,16 @@ GEOM_Swig::~GEOM_Swig()
|
|||||||
// MESSAGE("Destructeur");
|
// MESSAGE("Destructeur");
|
||||||
}
|
}
|
||||||
|
|
||||||
void GEOM_Swig::createAndDisplayGO (const char* Entry)
|
void GEOM_Swig::createAndDisplayGO (const char* Entry, bool isUpdated)
|
||||||
{
|
{
|
||||||
class TEvent: public SALOME_Event
|
class TEvent: public SALOME_Event
|
||||||
{
|
{
|
||||||
std::string myEntry;
|
std::string myEntry;
|
||||||
|
bool myUpdateViewer;
|
||||||
public:
|
public:
|
||||||
TEvent(const char* theEntry):
|
TEvent(const char* theEntry, bool toUpdateViewer):
|
||||||
myEntry(theEntry)
|
myEntry(theEntry),
|
||||||
|
myUpdateViewer(toUpdateViewer)
|
||||||
{}
|
{}
|
||||||
virtual void Execute()
|
virtual void Execute()
|
||||||
{
|
{
|
||||||
@ -178,7 +180,7 @@ void GEOM_Swig::createAndDisplayGO (const char* Entry)
|
|||||||
"GEOM",
|
"GEOM",
|
||||||
const_cast<char*>( obj->GetID().c_str()));
|
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)) {
|
/*if (SVTK_ViewWindow* aViewWindow = GetSVTKViewWindow(app)) {
|
||||||
SVTK_View* aView = aViewWindow->getView();
|
SVTK_View* aView = aViewWindow->getView();
|
||||||
int aMode = aView->GetDisplayMode();
|
int aMode = aView->GetDisplayMode();
|
||||||
@ -216,7 +218,7 @@ void GEOM_Swig::createAndDisplayGO (const char* Entry)
|
|||||||
};
|
};
|
||||||
|
|
||||||
// MESSAGE("createAndDisplayGO");
|
// MESSAGE("createAndDisplayGO");
|
||||||
ProcessVoidEvent(new TEvent (Entry));
|
ProcessVoidEvent(new TEvent (Entry, isUpdated));
|
||||||
|
|
||||||
class TEventUpdateBrowser: public SALOME_Event
|
class TEventUpdateBrowser: public SALOME_Event
|
||||||
{
|
{
|
||||||
@ -233,7 +235,8 @@ void GEOM_Swig::createAndDisplayGO (const char* Entry)
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ProcessVoidEvent(new TEventUpdateBrowser ());
|
if (isUpdated)
|
||||||
|
ProcessVoidEvent(new TEventUpdateBrowser ());
|
||||||
}
|
}
|
||||||
|
|
||||||
void GEOM_Swig::createAndDisplayFitAllGO (const char* Entry)
|
void GEOM_Swig::createAndDisplayFitAllGO (const char* Entry)
|
||||||
|
@ -49,7 +49,7 @@ public:
|
|||||||
GEOM_Swig();
|
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 eraseGO(const char* Entry, bool allWindows);
|
||||||
void createAndDisplayFitAllGO(const char* Entry);
|
void createAndDisplayFitAllGO(const char* Entry);
|
||||||
void setDisplayMode(const char* Entry, int mode);
|
void setDisplayMode(const char* Entry, int mode);
|
||||||
|
@ -36,7 +36,7 @@ class GEOM_Swig
|
|||||||
GEOM_Swig();
|
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 eraseGO(const char* Entry, bool allWindows);
|
||||||
void createAndDisplayFitAllGO(const char* Entry);
|
void createAndDisplayFitAllGO(const char* Entry);
|
||||||
int getIndexTopology(const char *SubEntry, const char *Entry);
|
int getIndexTopology(const char *SubEntry, const char *Entry);
|
||||||
|
Loading…
Reference in New Issue
Block a user