Salome HOME
Fix for the issue #593: do not remove naming attribute, but use TNaming_Builder for...
[modules/shaper.git] / src / ModuleBase / ModuleBase_ISelection.cpp
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 #include "ModuleBase_ISelection.h"
4
5 QList<ModuleBase_ViewerPrs> ModuleBase_ISelection::getViewerPrs(const QObjectPtrList& theObjects)
6 {
7   QList<ModuleBase_ViewerPrs> aSelectedPrs;
8   QObjectPtrList::const_iterator anIt = theObjects.begin(), aLast = theObjects.end();
9   for (; anIt != aLast; anIt++) {
10     ObjectPtr anObject = *anIt;
11     if (anObject.get() != NULL) {
12       aSelectedPrs.append(ModuleBase_ViewerPrs(anObject, TopoDS_Shape(), NULL));
13     }
14   }
15   return aSelectedPrs;
16 }