- static int GetIndex(const TopoDS_Shape& subshape, const TopoDS_Shape& shape, int ShapeType);
- static TopoDS_Shape GetShapeFromIOR(QString IOR);
- static bool GetShape(const GEOM::GEOM_Object_ptr&, TopoDS_Shape&,
- const TopAbs_ShapeEnum = TopAbs_SHAPE);
- static bool GetTopoFromSelection(const SALOME_ListIO& aList, TopoDS_Shape& tds);
- static int GetNameOfSelectedIObjects(const SALOME_ListIO& aList, QString& aName,
- const bool theShapesOnly = false);
- static bool GetShapeTypeString(const TopoDS_Shape& aShape, Standard_CString& aTypeString);
-
- /* Convertions */
- static GEOM::GEOM_Object_ptr ConvertIOinGEOMShape(const Handle(SALOME_InteractiveObject)& IO,
- Standard_Boolean& testResult);
- static Handle(GEOM_AISShape) ConvertIOinGEOMAISShape(const Handle(SALOME_InteractiveObject)& IO,
- Standard_Boolean& testResult,
- bool onlyInActiveView = false);
-
- static Handle(AIS_InteractiveObject) GetAIS(const Handle(SALOME_InteractiveObject)& theIO,
- const bool isOnlyInActiveView = false);
- static void ConvertListOfIOInListOfIOR(const SALOME_ListIO& aList,
- GEOM::string_array& listIOR);
-
- static Handle(GEOM_AISShape) ConvertIORinGEOMAISShape(const char * IOR,
- Standard_Boolean& testResult,
- bool onlyInActiveView = false);
- static GEOM_Actor* ConvertIORinGEOMActor(const char * IOR, Standard_Boolean& testResult,
- bool onlyInActiveView = false);
-
- static GEOM::GEOM_Object_ptr ConvertIOinGEOMObject(const Handle(SALOME_InteractiveObject)& IO,
- Standard_Boolean& testResult);
-
- static void ConvertListOfIOInListOfGO(const SALOME_ListIO& aList,
- GEOM::ListOfGO& listGO,
- const bool theShapesOnly = false);
-
- static GEOM::GEOM_Object_ptr GetObjectFromIOR(const char* theIOR);
-
- static char* GetIORFromObject(const GEOM::GEOM_Object_ptr& theObject);
+ static int GetIndex( const TopoDS_Shape& subshape, const TopoDS_Shape& shape );
+ static TopoDS_Shape GetShapeFromIOR( const QString& IOR );
+ static bool GetShape( GEOM::GEOM_Object_ptr object,
+ TopoDS_Shape& shape,
+ const TopAbs_ShapeEnum type = TopAbs_SHAPE );
+ static TopoDS_Shape GetTopoFromSelection( const SALOME_ListIO& IObjects );
+ static int GetNameOfSelectedIObjects( const SALOME_ListIO& IObjects,
+ QString& name,
+ const bool shapesOnly = false );
+ static QString GetShapeTypeString( const TopoDS_Shape& shape );
+
+ /* Conversions */
+ static Handle(GEOM_AISShape)
+ ConvertIOinGEOMAISShape( const Handle(SALOME_InteractiveObject)& IO,
+ bool onlyInActiveView = false );
+
+ static Handle(AIS_InteractiveObject)
+ GetAIS( const Handle(SALOME_InteractiveObject)& IO,
+ bool onlyInActiveView = false,
+ bool onlyGeom = false );
+ static QStringList ConvertListOfIOInListOfIOR( const SALOME_ListIO& IObjects );
+
+ static Handle(GEOM_AISShape)
+ ConvertIORinGEOMAISShape( const QString& IOR,
+ bool onlyInActiveView = false );
+ static GEOM_Actor* ConvertIORinGEOMActor( const QString& IOR,
+ bool onlyInActiveView = false );
+
+ static GEOM::GEOM_Object_ptr
+ ConvertIOinGEOMObject( const Handle(SALOME_InteractiveObject)& IO );
+
+ static void ConvertListOfIOInListOfGO( const SALOME_ListIO& IObjects,
+ GEOM::ListOfGO& geomObjects,
+ bool shapesOnly = false );
+
+ static GEOM::GEOM_Object_ptr
+ GetObjectFromIOR( const QString& IOR );
+
+ static QString GetIORFromObject( GEOM::GEOM_Object_ptr object );