本文分析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