1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 #include "ModuleBase_ISelection.h"
5 QList<ModuleBase_ViewerPrs> ModuleBase_ISelection::getViewerPrs(const QObjectPtrList& theObjects)
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));