SHAPER
9.12.0
|
Object that knows (from the initial XML file) which plugin contains which feature, loads and stores reference to loaded plugins by the feature functionality request. More...
Public Member Functions | |
virtual bool | load (const char *theFileName)=0 |
Loads the OCAF document from the file. More... | |
virtual bool | isLoading () |
Returns true if a loading process is performed (so, no need to react on a new part creation) More... | |
virtual bool | save (const char *theFileName, std::list< std::string > &theResults)=0 |
Saves the OCAF document to the file. More... | |
virtual void | closeAll ()=0 |
Closes all documents. More... | |
virtual void | startOperation (const std::string &theId="", const bool theAttachedToNested=false)=0 |
Starts a new operation (opens a transaction) More... | |
virtual void | finishOperation ()=0 |
Finishes the previously started operation (closes the transaction) More... | |
virtual void | abortOperation ()=0 |
Aborts the operation. More... | |
virtual bool | isOperation ()=0 |
Returns true if operation has been started, but not yet finished or aborted. More... | |
virtual bool | isModified ()=0 |
Returns true if document was modified (since creation/opening) More... | |
virtual bool | canUndo ()=0 |
Returns True if there are available Undos. More... | |
virtual void | undo ()=0 |
Undoes last operation. More... | |
virtual bool | canRedo ()=0 |
Returns True if there are available Redos. More... | |
virtual void | redo ()=0 |
Redoes last operation. More... | |
virtual std::list< std::string > | undoList ()=0 |
Returns stack of performed operations (from last to first) More... | |
virtual std::list< std::string > | redoList ()=0 |
Returns stack of rolled back operations (from last rolled back to first) More... | |
virtual void | clearUndoRedo ()=0 |
Clears undo and redo lists of all documents in the session. More... | |
virtual void | registerPlugin (ModelAPI_Plugin *thePlugin)=0 |
Registers the plugin that creates features. More... | |
virtual bool | checkLicense (const std::string &thePluginName)=0 |
Verifies the license for the plugin is valid. More... | |
virtual std::shared_ptr< ModelAPI_Document > | moduleDocument ()=0 |
Returns the root document of the application (that may contains sub-documents) More... | |
virtual std::shared_ptr< ModelAPI_Document > | document (int theDocID)=0 |
Returns the document by ID. Returns null if no such document. More... | |
virtual bool | hasModuleDocument ()=0 |
Return true if root document has been already created. More... | |
virtual std::shared_ptr< ModelAPI_Document > | activeDocument ()=0 |
Returns the current document that used for current work in the application. More... | |
virtual void | setActiveDocument (std::shared_ptr< ModelAPI_Document > theDoc, bool theSendSignal=true)=0 |
Defines the current document that used for current work in the application. More... | |
virtual std::list< std::shared_ptr< ModelAPI_Document > > | allOpenedDocuments ()=0 |
Returns all the opened documents of the session (without postponed) More... | |
virtual bool | isLoadByDemand (const std::wstring theDocID, const int theDocIndex)=0 |
Returns true if document is not loaded yet. More... | |
virtual std::shared_ptr< ModelAPI_Document > | copy (std::shared_ptr< ModelAPI_Document > theSource, const int theDestID)=0 |
Copies the document to the new one with the given id. More... | |
virtual ModelAPI_ValidatorsFactory * | validators ()=0 |
Returns the validators factory: the only one instance per application. More... | |
virtual ModelAPI_FiltersFactory * | filters ()=0 |
Returns the filters factory: the only one instance per application. More... | |
virtual | ~ModelAPI_Session () |
To virtually destroy the fields of successors. More... | |
virtual int | transactionID ()=0 |
Returns the global identifier of the current transaction (needed for the update algo) More... | |
virtual bool | isAutoUpdateBlocked ()=0 |
Returns true if auto-update in the application is blocked. More... | |
virtual void | blockAutoUpdate (const bool theBlock)=0 |
Set state of the auto-update of features result in the application. More... | |
Static Public Member Functions | |
static std::shared_ptr< ModelAPI_Session > | get () |
Returns the real implementation (the alone instance per application) of the plugin manager. More... | |
Static Protected Member Functions | |
static void | setSession (std::shared_ptr< ModelAPI_Session > theManager) |
Sets the session interface implementation (once per application launch) More... | |
Protected Attributes | |
bool | myIsLoading |
keeps the state of the loading of the document More... | |
Object that knows (from the initial XML file) which plugin contains which feature, loads and stores reference to loaded plugins by the feature functionality request.
|
inlinevirtual |
To virtually destroy the fields of successors.
|
static |
Returns the real implementation (the alone instance per application) of the plugin manager.
|
pure virtual |
Loads the OCAF document from the file.
theFileName | full name of the file to load |
Implemented in Model_Session.
|
inlinevirtual |
Returns true if a loading process is performed (so, no need to react on a new part creation)
|
pure virtual |
Saves the OCAF document to the file.
theFileName | full name of the file to store |
theResults | the result full file names that were stored by "save" |
Implemented in Model_Session.
|
pure virtual |
Closes all documents.
Implemented in Model_Session.
|
pure virtual |
Starts a new operation (opens a transaction)
theId | of operation for history (optional) |
theAttachedToNested | if it is true, it means that this transaction is attached to the nested where it is located and will be committed on the next commit with the nested |
Implemented in Model_Session.
|
pure virtual |
Finishes the previously started operation (closes the transaction)
Implemented in Model_Session.
|
pure virtual |
Aborts the operation.
Implemented in Model_Session.
|
pure virtual |
Returns true if operation has been started, but not yet finished or aborted.
Implemented in Model_Session.
|
pure virtual |
Returns true if document was modified (since creation/opening)
Implemented in Model_Session.
|
pure virtual |
Returns True if there are available Undos.
Implemented in Model_Session.
|
pure virtual |
Undoes last operation.
Implemented in Model_Session.
|
pure virtual |
Returns True if there are available Redos.
Implemented in Model_Session.
|
pure virtual |
Redoes last operation.
Implemented in Model_Session.
|
pure virtual |
Returns stack of performed operations (from last to first)
Implemented in Model_Session.
|
pure virtual |
Returns stack of rolled back operations (from last rolled back to first)
Implemented in Model_Session.
|
pure virtual |
Clears undo and redo lists of all documents in the session.
Implemented in Model_Session.
|
pure virtual |
Registers the plugin that creates features.
It is obligatory for each plugin to call this function on loading to be found by the plugin manager on call of the feature)
Implemented in Model_Session.
|
pure virtual |
Verifies the license for the plugin is valid.
Implemented in Model_Session.
|
pure virtual |
Returns the root document of the application (that may contains sub-documents)
Implemented in Model_Session.
|
pure virtual |
Returns the document by ID. Returns null if no such document.
Implemented in Model_Session.
|
pure virtual |
Return true if root document has been already created.
Implemented in Model_Session.
|
pure virtual |
Returns the current document that used for current work in the application.
Implemented in Model_Session.
|
pure virtual |
Defines the current document that used for current work in the application.
Implemented in Model_Session.
|
pure virtual |
Returns all the opened documents of the session (without postponed)
Implemented in Model_Session.
|
pure virtual |
Returns true if document is not loaded yet.
Implemented in Model_Session.
|
pure virtual |
Copies the document to the new one with the given id.
Implemented in Model_Session.
|
pure virtual |
Returns the validators factory: the only one instance per application.
Implemented in Model_Session.
|
pure virtual |
Returns the filters factory: the only one instance per application.
Implemented in Model_Session.
|
pure virtual |
Returns the global identifier of the current transaction (needed for the update algo)
Implemented in Model_Session.
|
pure virtual |
Returns true if auto-update in the application is blocked.
Implemented in Model_Session.
|
pure virtual |
Set state of the auto-update of features result in the application.
Implemented in Model_Session.
|
staticprotected |
Sets the session interface implementation (once per application launch)
|
protected |
keeps the state of the loading of the document