Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SALOME_AppStudyEditor Class Reference

#include <SALOME_AppStudyEditor.hxx>

Inheritance diagram for SALOME_AppStudyEditor:
Inheritance graph

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
 

Detailed Description

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.

Constructor & Destructor Documentation

SALOME_AppStudyEditor::SALOME_AppStudyEditor ( SalomeApp_Application salomeApp)

References _salomeApp, and updateActiveStudy().

Member Function Documentation

int SALOME_AppStudyEditor::getActiveStudyId ( SalomeApp_Application salomeApp)
static
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().

Member Data Documentation

SalomeApp_Application* SALOME_AppStudyEditor::_salomeApp
private

The documentation for this class was generated from the following files: