// -----------------------------------------------------------------------
bool HasReadyActorsFor (int subShapeID, GEOM::GEOM_Object_var aMainShape )
{
- string mainEntry;
+ std::string mainEntry;
if ( !aMainShape->_is_nil() )
mainEntry = aMainShape->GetStudyEntry();
return ( myMainEntry == mainEntry &&
void Show( int subShapeID, GEOM::GEOM_Object_var aMainShape, bool only = false)
{
SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( SMESHGUI::GetSMESHGUI() );
- string mainEntry;
+ std::string mainEntry;
if ( !aMainShape->_is_nil() )
mainEntry = aMainShape->GetStudyEntry();
if ( myMainEntry != mainEntry || aViewWindow != myViewWindow ) { // remove actors
TActorVec myActors;
TActorVec myShownActors;
TopTools_IndexedMapOfShape myIndexToShape;
- string myMainEntry;
+ std::string myMainEntry;
SVTK_ViewWindow* myViewWindow;
vtkProperty* myProperty;
std::set<int> myBuiltSubs;
// Init list of available hypotheses, if needed
InitAvailableHypotheses();
- list<HypothesesSet*>::iterator hypoSet = myListOfHypothesesSets.begin();
+ std::list<HypothesesSet*>::iterator hypoSet = myListOfHypothesesSets.begin();
for ( ; hypoSet != myListOfHypothesesSets.end(); ++hypoSet )
{
HypothesesSet* aSet = *hypoSet;
HypothesesSet* GetHypothesesSet(const QString& theSetName)
{
- list<HypothesesSet*>::iterator hypoSet = myListOfHypothesesSets.begin();
+ std::list<HypothesesSet*>::iterator hypoSet = myListOfHypothesesSets.begin();
for ( ; hypoSet != myListOfHypothesesSets.end(); ++hypoSet )
{
HypothesesSet* aSet = *hypoSet;
while(1) {
if (mainObj->_is_nil())
return false;
- if (string(mainObj->GetEntry()) == string(mainGeom->GetEntry()))
+ if (std::string(mainObj->GetEntry()) == std::string(mainGeom->GetEntry()))
return true;
mainObj = op->GetMainShape(mainObj);
}
myGeomObj = GEOM::GEOM_Object::_nil();
myHasSolids = false;
- vector< bool > hasElement (myDlg->myElemTypeGroup->buttons().count(), false);
+ std::vector< bool > hasElement (myDlg->myElemTypeGroup->buttons().count(), false);
if (!myMesh->_is_nil() )
{
// _PTR(SObject) aSobj = SMESH::FindSObject(myMesh.in());
// SUIT_DataOwnerPtr anIObj (new LightApp_DataOwner(aSobj->GetID().c_str()));
- vector< int > nbShapes( TopAbs_SHAPE, 0 );
+ std::vector< int > nbShapes( TopAbs_SHAPE, 0 );
int shapeDim = 0; // max dim with several shapes
//if ( /*mySelectionMgr*/ selectionMgr()->isOk(anIObj) ) // check that the mesh has a valid shape
{
if(FindActorByEntry(theIO->getEntry())){
TColStd_IndexedMapOfInteger aMapIndex;
theMgr->GetIndexes(theIO,aMapIndex);
- typedef set<int> TIdContainer;
+ typedef std::set<int> TIdContainer;
TIdContainer anIdContainer;
for( int i = 1; i <= aMapIndex.Extent(); i++)
anIdContainer.insert(aMapIndex(i));
}
setAxisScale( myDensity->xAxis(), min_x, max_x );
- setAxisScale( myDensity->yAxis(), min( 0.0, min_y ), max( 0.0, max_y ) );
+ setAxisScale( myDensity->yAxis(), std::min( 0.0, min_y ), std::max( 0.0, max_y ) );
myDensity->setData( x, y, size );
if( x )
delete[] x;
if ( !CORBA::is_nil( obj ))
sobj = SMESH::FindSObject (obj);
if ( sobj ) {
- string name = sobj->GetName();
+ std::string name = sobj->GetName();
myObjNameLineEdit->setText( name.c_str() );
myObject = CORBA::Object::_duplicate( obj );
myParamValue = sobj->GetID().c_str();