本文分析SALOME中命令系統,涉及的知識點包括,
注1:限于研究水平,分析難免不當,歡迎批評指正。 注2:文章內容會不定期更新。
一、命令對象
1.1 Class Hierarchy
1.2 SUIT_Operation
SUIT_Operation
-SUIT_Application* myApp
-int myFlags
-StudyPtr myStudy
-OperationState myState
-ExecStatus myExecStat
+state() : OperationState
+isActive() : bool
+isRunning() : bool
+study()
+setStudy(SUIT_Study* theStudy) : void
+application()
+setApplication(SUIT_Application* theApp) : void
+isValid(SUIT_Operation* theOtherOp) : bool
+isGranted() : bool
+setSlot(const QObject* theReceiver, const char* theSlot) : bool
+setFlags(const int) : void
+clearFlags(const int) : void
+testFlags(const int) : bool
+operationName() : QString
+execStatus() : int
#isReadyToStart() : bool
#stopOperation() : void
#startOperation() : void
#abortOperation() : void
#commitOperation() : void
#resumeOperation() : void
#suspendOperation() : void
#openTransaction() : void
#abortTransaction() : void
#hasTransaction() : bool
#commitTransaction(const QString&) : void
#setExecStatus(const int) : void
#setState(const OperationState) : void
#start(SUIT_Operation*, const bool) : void
+start() : void
+abort() : void
+commit() : void
+resume() : void
+suspend() : void
二、文檔對象
2.1 Class Hierarchy
2.2 SUIT_Study
SUIT_Study
-int myId
-SUIT_Application* myApp
-SUIT_DataObject* myRoot
-QString myName
-bool myIsSaved
-bool myIsModified
-Operations myOperations
-bool myBlockChangeState
+id() : int
+root()
+studyName() : QString
+application()
+isSaved() : bool
+isModified() : bool
+Modified() : void
+closeDocument(bool) : void
+openDocument(const QString&) : bool
+createDocument(const QString&) : bool
+saveDocument() : bool
+saveDocumentAs(const QString&, bool isBackup) : bool
+update() : void
+sendChangesNotification() : void
+activeOperation()
+abortAllOperations() : void
+operations()
+blockingOperation(SUIT_Operation*)
+start(SUIT_Operation*, const bool check) : bool
+abort(SUIT_Operation*) : bool
+commit(SUIT_Operation*) : bool
+suspend(SUIT_Operation*) : bool
+resume(SUIT_Operation*) : bool
+restoreState(int savePoint) : void
#setIsSaved(const bool) : void
#setIsModified(const bool) : void
#setRoot(SUIT_DataObject*) : void
#setStudyName(const QString&) : void
#operationStarted(SUIT_Operation*) : void
#operationAborted(SUIT_Operation*) : void
#operationStopped(SUIT_Operation*) : void
#operationCommited(SUIT_Operation*) : void
#openTransaction() : bool
#abortTransaction() : bool
#hasTransaction() : bool
#commitTransaction(const QString&) : virtual bool
三、關鍵流程
四、FAQs
網絡資料
OCC 3D Viewer VTK 3D Viewer