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