int theCommandID)
{
QStringList filter;
- string myExtension;
+ std::string myExtension;
if(theCommandID == 113){
filter.append(QObject::tr("MED files (*.med)"));
// put the whole hierarchy of sub-objects of the selected SO into a list and
// then treat them all starting from the deepest objects (at list back)
- list< _PTR(SObject) > listSO;
+ std::list< _PTR(SObject) > listSO;
listSO.push_back( aSO );
- list< _PTR(SObject) >::iterator itSO = listSO.begin();
+ std::list< _PTR(SObject) >::iterator itSO = listSO.begin();
for ( ; itSO != listSO.end(); ++itSO ) {
_PTR(ChildIterator) it = aStudy->NewChildIterator( *itSO );
for (it->InitEx(false); it->More(); it->Next())
// treat SO's in the list starting from the back
- list< _PTR(SObject) >::reverse_iterator ritSO = listSO.rbegin();
+ std::list< _PTR(SObject) >::reverse_iterator ritSO = listSO.rbegin();
for ( ; ritSO != listSO.rend(); ++ritSO ) {
_PTR(SObject) SO = *ritSO;
if ( !SO ) continue;
- string anEntry = SO->GetID();
+ std::string anEntry = SO->GetID();
/** Erase graphical object **/
if(SO->FindAttribute(anAttr, "AttributeIOR")){
bool myIsPointsLabeled;
vtkActor2D* myPointLabels;
- vector<int> myIDs;
+ std::vector<int> myIDs;
public:
TIdPreview(SVTK_ViewWindow* theViewWindow):
}
void SetElemsData( TColStd_MapOfInteger & theElemsIdMap,
- list<gp_XYZ> & aGrCentersXYZ )
+ std::list<gp_XYZ> & aGrCentersXYZ )
{
vtkPoints* aPoints = vtkPoints::New();
aPoints->SetNumberOfPoints(theElemsIdMap.Extent());
}
gp_XYZ aXYZ;
- list<gp_XYZ>::iterator coordIt = aGrCentersXYZ.begin();
+ std::list<gp_XYZ>::iterator coordIt = aGrCentersXYZ.begin();
for( int i = 0; coordIt != aGrCentersXYZ.end(); coordIt++, i++ ) {
aXYZ = *coordIt;
aPoints->SetPoint( i, aXYZ.X(), aXYZ.Y(), aXYZ.Z() );
myIdPreview->SetPointsLabeled(!anIndices.IsEmpty(), myActor->GetVisibility());
}
else {
- list< gp_XYZ > aGrCentersXYZ;
+ std::list< gp_XYZ > aGrCentersXYZ;
FindGravityCenter(anIndices, aGrCentersXYZ);
myIdPreview->SetElemsData( anIndices, aGrCentersXYZ);
myIdPreview->SetPointsLabeled(!anIndices.IsEmpty(), myActor->GetVisibility());
myIdPreview->SetPointsLabeled(!anIndices.IsEmpty(), myActor->GetVisibility());
}
else {
- list< gp_XYZ > aGrCentersXYZ;
+ std::list< gp_XYZ > aGrCentersXYZ;
FindGravityCenter(anIndices, aGrCentersXYZ);
myIdPreview->SetElemsData(anIndices, aGrCentersXYZ);
myIdPreview->SetPointsLabeled(!anIndices.IsEmpty(), myActor->GetVisibility());