mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-05-27 22:37:50 +05:00
IPAL12252.
This commit is contained in:
parent
3d41c01543
commit
ac7a407a47
@ -50,19 +50,13 @@
|
|||||||
using namespace boost;
|
using namespace boost;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
EntityGUI* EntityGUI::myGUIObject = 0;
|
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
// function : GetEntityGUI()
|
// function : GetEntityGUI()
|
||||||
// purpose : Get the only EntityGUI object [ static ]
|
// purpose : Get the only EntityGUI object [ static ]
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
EntityGUI* EntityGUI::GetEntityGUI( GeometryGUI* parent )
|
EntityGUI* EntityGUI::GetEntityGUI( GeometryGUI* parent )
|
||||||
{
|
{
|
||||||
if ( myGUIObject == 0 ) {
|
return new EntityGUI( parent );
|
||||||
// init EntityGUI only once
|
|
||||||
myGUIObject = new EntityGUI( parent );
|
|
||||||
}
|
|
||||||
return myGUIObject;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
@ -61,9 +61,6 @@ public :
|
|||||||
// AIS shape used only during topo/geom simulations
|
// AIS shape used only during topo/geom simulations
|
||||||
Handle(AIS_Shape) mySimulationShape1;
|
Handle(AIS_Shape) mySimulationShape1;
|
||||||
Handle(AIS_Shape) mySimulationShape2;
|
Handle(AIS_Shape) mySimulationShape2;
|
||||||
|
|
||||||
private:
|
|
||||||
static EntityGUI* myGUIObject; //!< the only EntityGUI object
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user