IPAL12252.

This commit is contained in:
mzn 2006-05-03 16:31:57 +00:00
parent 3d41c01543
commit ac7a407a47
2 changed files with 1 additions and 10 deletions

View File

@ -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;
} }
//======================================================================= //=======================================================================

View File

@ -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