|
SHAPER
9.15.0
|
A Data Model class provides a connection of SALOME data structure and OpenParts application data model. More...

Public Member Functions | |
| SHAPERGUI_DataModel (SHAPERGUI *theModule) | |
| Constructor. More... | |
| virtual bool | open (const QString &thePath, CAM_Study *theStudy, QStringList theFiles) |
| Open a data file. More... | |
| virtual bool | save (QStringList &theFiles, bool isBackup=false) |
| Save module data to file. More... | |
| virtual bool | saveAs (const QString &thePath, CAM_Study *theStudy, QStringList &theFiles, bool isBackup=false) |
| Save module data to a file. More... | |
| virtual bool | close () |
| Close data structure. More... | |
| virtual bool | create (CAM_Study *theStudy) |
| Create data structure. More... | |
| virtual bool | isModified () const |
| Returns True if the data structure has been modified. More... | |
| virtual bool | isSaved () const |
| Returns True if the data structure is already saved. More... | |
| virtual void | initRootObject () override |
| Creates a module root object if it has not been created yet and append it to the active study. More... | |
| virtual void | update (LightApp_DataObject *theObj=0, LightApp_Study *theStudy=0) |
| Update data object. More... | |
| virtual bool | dumpPython (const QString &, CAM_Study *, bool, QStringList &) |
| Redefinition of virtual method: include the module dump in the common SALOME dump. More... | |
Static Protected Member Functions | |
| static void | removeDirectory (const QString &theDirectoryName) |
| Removes the directory with content if it exists. More... | |
A Data Model class provides a connection of SALOME data structure and OpenParts application data model.
| SHAPERGUI_DataModel::SHAPERGUI_DataModel | ( | SHAPERGUI * | theModule | ) |
Constructor.
| theModule | a module instance |
|
virtual |
Open a data file.
| thePath | a path to the directory |
| theStudy | a current study |
| theFiles | a list of files to open |
|
virtual |
Save module data to file.
| theFiles | list of created files |
|
virtual |
Save module data to a file.
| thePath | a path to the directory |
| theStudy | a current study |
| theFiles | a list of files to open |
|
virtual |
Close data structure.
|
virtual |
Create data structure.
| theStudy | a current study |
|
virtual |
Returns True if the data structure has been modified.
|
virtual |
Returns True if the data structure is already saved.
|
overridevirtual |
Creates a module root object if it has not been created yet and append it to the active study.
It is necessary for correct persistent of the model.
|
virtual |
Update data object.
| theObj | an data object |
| theStudy | a current study |
|
virtual |
Redefinition of virtual method: include the module dump in the common SALOME dump.
|
staticprotected |
Removes the directory with content if it exists.
| theDirectoryName | a directory name |