The GeomSelectionTools class gives high level tools to select Geom (and other objects) A specific attention has been given to analyze selected GEOM objects. More...
#include <GeomSelectionTools.h>
Public Member Functions | |
GeomSelectionTools (_PTR(Study)) | |
Constructor. More... | |
SALOME_ListIO * | getSelectedSalomeObjects () |
Return the list of the selected Salome Interactive Object (SALOME_ListIO*) More... | |
Handle (SALOME_InteractiveObject) getFirstSelectedSalomeObject() | |
std::string | getFirstSelectedEntry () |
Return the entry of the first selected Object. More... | |
std::string | getEntryOfObject (Handle(SALOME_InteractiveObject)) |
Return the entry of a Salome Interactive Object. More... | |
std::string | getNameFromEntry (std::string) |
Retrieve the name from the entry of the object. More... | |
std::string | getFirstSelectedComponentDataType () |
Retrieve the component type of the first selected object, it manages successfully references. More... | |
TopAbs_ShapeEnum | getFirstSelectedShapeType () |
Gives the ShapeType of the first Selected Object, return TopAbs_SHAPE if the first selected object does not define a shape. More... | |
TopAbs_ShapeEnum | entryToShapeType (std::string) |
Retrieve the shape type from the entry. More... | |
GeomAbs_SurfaceType | getFaceInformation (TopoDS_Shape) |
Print information to std output of the face and return the OCC type of face: Plane, Cylinder,Cone, Sphere, Torus, BezierSurface,BSplineSurface, SurfaceOfRevolution,SurfaceOfExtrusion, OtherSurface. More... | |
_PTR (Study) getMyStudy() | |
Static Public Member Functions | |
static SalomeApp_Application * | GetSalomeApplication () |
Allows to get the Salome Application. More... | |
static LightApp_SelectionMgr * | selectionMgr () |
Allows to get the selection manager from LightApp. More... | |
Private Member Functions | |
_PTR (Study) myStudy | |
The GeomSelectionTools class gives high level tools to select Geom (and other objects) A specific attention has been given to analyze selected GEOM objects.
myStudy | This class is specific to the study ! |
GeomSelectionTools::GeomSelectionTools | ( | _PTR(Study) | aStudy | ) |
Constructor.
aStudy | pointer to the Study |
|
private |
Referenced by entryToShapeType(), getEntryOfObject(), getFirstSelectedComponentDataType(), and getNameFromEntry().
GeomSelectionTools::_PTR | ( | Study | ) |
TopAbs_ShapeEnum GeomSelectionTools::entryToShapeType | ( | std::string | entry | ) |
Retrieve the shape type from the entry.
References _PTR(), GetSalomeApplication(), and SObject().
Referenced by getFirstSelectedShapeType().
std::string GeomSelectionTools::getEntryOfObject | ( | Handle(SALOME_InteractiveObject) | anIO | ) |
Return the entry of a Salome Interactive Object.
anIO | the Handle of the Salome Interactive Object |
References _PTR(), and SObject().
Referenced by getFirstSelectedEntry().
GeomAbs_SurfaceType GeomSelectionTools::getFaceInformation | ( | TopoDS_Shape | S | ) |
Print information to std output of the face and return the OCC type of face: Plane, Cylinder,Cone, Sphere, Torus, BezierSurface,BSplineSurface, SurfaceOfRevolution,SurfaceOfExtrusion, OtherSurface.
TopoDS_Shape | S Face we want information about. |
References Face.
std::string GeomSelectionTools::getFirstSelectedComponentDataType | ( | ) |
std::string GeomSelectionTools::getFirstSelectedEntry | ( | ) |
Return the entry of the first selected Object.
References getEntryOfObject(), and Handle().
TopAbs_ShapeEnum GeomSelectionTools::getFirstSelectedShapeType | ( | ) |
Gives the ShapeType of the first Selected Object, return TopAbs_SHAPE if the first selected object does not define a shape.
References entryToShapeType(), and Handle().
std::string GeomSelectionTools::getNameFromEntry | ( | std::string | entry | ) |
|
static |
Allows to get the Salome Application.
Referenced by entryToShapeType(), and selectionMgr().
SALOME_ListIO * GeomSelectionTools::getSelectedSalomeObjects | ( | ) |
Return the list of the selected Salome Interactive Object (SALOME_ListIO*)
References selectionMgr().
GeomSelectionTools::Handle | ( | SALOME_InteractiveObject | ) |
Referenced by getFirstSelectedComponentDataType(), getFirstSelectedEntry(), and getFirstSelectedShapeType().
|
static |
Allows to get the selection manager from LightApp.
References GetSalomeApplication().
Referenced by getSelectedSalomeObjects().