- {
- int anImageId = 1;
- while( anImageId < 100 )
- {
- anImageName = QString( "Image_%1" ).arg( QString::number( anImageId++ ) );
-
- // check that there are no other objects with the same name in the document
- Handle(HYDROData_Object) anObject = findObjectByName( anImageName, KIND_UNKNOWN );
- if( anObject.IsNull() )
- break;
- }
- }