#include <SALOME_AppStudyEditor.hxx>
Public Member Functions | |
SALOME_AppStudyEditor (SalomeApp_Application *salomeApp) | |
int | updateActiveStudy () |
This updates the editor with the current active study. More... | |
SALOMEDS::SObject_ptr | IObjectToSObject (const Handle(SALOME_InteractiveObject)&iobject) |
SALOME_StudyEditor::SObjectList * | getSelectedObjects () |
This function creates a list of all the "study objects" (SObject) that map with the selection in the object browser (the "interactive
objects", IObjects). More... | |
Static Public Member Functions | |
static int | getActiveStudyId (SalomeApp_Application *salomeApp) |
Private Attributes | |
SalomeApp_Application * | _salomeApp |
This class is a specialization of the KERNEL StudyEditor for the GUI context. The concept of active study is introduced here while it does not exist in the pure KERNEL context.
SALOME_AppStudyEditor::SALOME_AppStudyEditor | ( | SalomeApp_Application * | salomeApp | ) |
References _salomeApp, and updateActiveStudy().
|
static |
References _PTR(), and SUIT_Application::activeStudy().
SALOME_StudyEditor::SObjectList * SALOME_AppStudyEditor::getSelectedObjects | ( | ) |
Please note that the objects belongs to the active study.
References _salomeApp, IObjectToSObject(), LightApp_SelectionMgr::selectedObjects(), and LightApp_Application::selectionMgr().
SALOMEDS::SObject_ptr SALOME_AppStudyEditor::IObjectToSObject | ( | const Handle(SALOME_InteractiveObject)& | iobject | ) |
int SALOME_AppStudyEditor::updateActiveStudy | ( | ) |
If the active study id is identical to the study id currently associated to this object, then no update is performed.
References _salomeApp, and getActiveStudyId().
|
private |