|
virtual MODEL_EXPORT const std::string & | kind () const |
| Returns the kind of the document: "PartSet", "Part", or something else. More...
|
|
virtual MODEL_EXPORT bool | load (const char *theDirName, const char *theFileName, DocumentPtr theThis) |
| Loads the OCAF document from the file. More...
|
|
virtual MODEL_EXPORT bool | importPart (const char *theFileName, std::list< std::shared_ptr< ModelAPI_Feature > > &theImported, bool theCheckOnly=false) |
| Loads the OCAF document from the file into the current document. More...
|
|
virtual MODEL_EXPORT bool | save (const char *theDirName, const char *theFileName, std::list< std::string > &theResults) |
| Saves the OCAF document to the file. More...
|
|
virtual MODEL_EXPORT bool | save (const char *theFilename, const std::list< std::shared_ptr< ModelAPI_Feature > > &theExportFeatures) const |
| Export the list of features to the file. More...
|
|
virtual MODEL_EXPORT void | close (const bool theForever=false) |
| Removes document data. More...
|
|
virtual MODEL_EXPORT void | startOperation () |
| Starts a new operation (opens a transaction) More...
|
|
virtual MODEL_EXPORT bool | finishOperation () |
| Finishes the previously started operation (closes the transaction) More...
|
|
virtual MODEL_EXPORT void | abortOperation () |
| Aborts the operation. More...
|
|
virtual MODEL_EXPORT bool | isOperation () const |
| Returns true if operation has been started, but not yet finished or aborted. More...
|
|
virtual MODEL_EXPORT bool | isModified () |
| Returns true if document was modified (since creation/opening) More...
|
|
virtual MODEL_EXPORT bool | canUndo () |
| Returns True if there are available Undo-s. More...
|
|
virtual MODEL_EXPORT void | undo () |
| Undoes last operation. More...
|
|
virtual MODEL_EXPORT bool | canRedo () |
| Returns True if there are available Redo-s. More...
|
|
virtual MODEL_EXPORT void | redo () |
| Redoes last operation. More...
|
|
virtual MODEL_EXPORT void | clearUndoRedo () |
| Clears undo/redo lists. More...
|
|
virtual MODEL_EXPORT FeaturePtr | addFeature (std::string theID, const bool theMakeCurrent=true) |
| Adds to the document the new feature of the given feature id. More...
|
|
virtual MODEL_EXPORT void | refsToFeature (FeaturePtr theFeature, std::set< FeaturePtr > &theRefs, const bool isSendError=true) |
| Return a list of features, which refers to the feature. More...
|
|
virtual MODEL_EXPORT void | removeFeature (FeaturePtr theFeature) |
| Removes the feature from the document (with result) It is necessary to flush REDISPLAY signal manually after this method because the method sends it, but for the performance purpose does not flush it. More...
|
|
virtual MODEL_EXPORT void | moveFeature (FeaturePtr theMoved, FeaturePtr theAfterThis, const bool theSplit=false) |
| Moves the feature to make it after the given one in the history. More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_Object > | objectByName (const std::string &theGroupID, const std::wstring &theName) |
| Returns the first found object in the group by the object name. More...
|
|
virtual MODEL_EXPORT const int | index (std::shared_ptr< ModelAPI_Object > theObject, const bool theAllowFolder=false) |
| Returns the object index in the group. More...
|
|
virtual MODEL_EXPORT std::shared_ptr< Model_Document > | subDoc (int theDocID) |
| Internal sub-document by ID. More...
|
|
virtual MODEL_EXPORT const int | id () const |
| ! Returns the id of the document More...
|
|
virtual MODEL_EXPORT ObjectPtr | object (const std::string &theGroupID, const int theIndex, const bool theAllowFolder=false) |
| Returns the feature in the group by the index (started from zero) More...
|
|
virtual MODEL_EXPORT int | size (const std::string &theGroupID, const bool theAllowFolder=false) |
| Returns the number of features in the group. More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_Object > | parent (const std::shared_ptr< ModelAPI_Object > theChild) |
| Returns the parent object of this child. More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_Feature > | currentFeature (const bool theVisible) |
| Returns the feature that is currently edited in this document, normally this is the latest created feature. More...
|
|
virtual MODEL_EXPORT void | setCurrentFeature (std::shared_ptr< ModelAPI_Feature > theCurrent, const bool theVisible) |
| Sets the current feature: all features below will be disabled, new features will be appended after this one. More...
|
|
virtual MODEL_EXPORT void | setCurrentFeatureUp () |
| Makes the current feature one feature upper. More...
|
|
virtual MODEL_EXPORT int | numInternalFeatures () |
| Returns the number of all features: in the history or not. More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_Feature > | internalFeature (const int theIndex) |
| Returns the feature by zero-based index: features in the history or not. More...
|
|
virtual MODEL_EXPORT void | synchronizeTransactions () |
| Performs synchronization of transactions with the module document: If some document is not active (by undo of activation) but in memory, on activation the transactions must be synchronized because all redo-s performed without this participation. More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_ResultConstruction > | createConstruction (const std::shared_ptr< ModelAPI_Data > &theFeatureData, const int theIndex=0) |
| Creates construction results. More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_ResultBody > | createBody (const std::shared_ptr< ModelAPI_Data > &theFeatureData, const int theIndex=0) |
| Creates a body results. More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_ResultPart > | createPart (const std::shared_ptr< ModelAPI_Data > &theFeatureData, const int theIndex=0) |
| Creates a part results. More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_ResultPart > | copyPart (const std::shared_ptr< ModelAPI_ResultPart > &theOrigin, const std::shared_ptr< ModelAPI_Data > &theFeatureData, const int theIndex=0) |
| Copies a part result, keeping the reference to origin. More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_ResultGroup > | createGroup (const std::shared_ptr< ModelAPI_Data > &theFeatureData, const int theIndex=0) |
| Creates a group result. More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_ResultField > | createField (const std::shared_ptr< ModelAPI_Data > &theFeatureData, const int theIndex=0) |
| Creates a field result. More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_ResultParameter > | createParameter (const std::shared_ptr< ModelAPI_Data > &theFeatureData, const int theIndex=0) |
| Creates a parameter result. More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_Feature > | feature (const std::shared_ptr< ModelAPI_Result > &theResult) |
| Returns a feature by result (owner of result) More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_Folder > | addFolder (std::shared_ptr< ModelAPI_Feature > theAddBefore=std::shared_ptr< ModelAPI_Feature >()) |
| Creates a folder (group of the features in the object browser) More...
|
|
virtual MODEL_EXPORT void | removeFolder (std::shared_ptr< ModelAPI_Folder > theFolder) |
| Removes the folder from the document (all features in the folder will be kept). More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_Folder > | findFolderAbove (const std::list< std::shared_ptr< ModelAPI_Feature > > &theFeatures) |
| Search a folder above the list of features applicable to store them (it means the list of features stored in the folder should be consequential) More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_Folder > | findFolderBelow (const std::list< std::shared_ptr< ModelAPI_Feature > > &theFeatures) |
| Search a folder below the list of features applicable to store them (it means the list of features stored in the folder should be consequential) More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_Folder > | findContainingFolder (const std::shared_ptr< ModelAPI_Feature > &theFeature, int &theIndexInFolder) |
| Search a folder containing the given feature. More...
|
|
virtual MODEL_EXPORT bool | moveToFolder (const std::list< std::shared_ptr< ModelAPI_Feature > > &theFeatures, const std::shared_ptr< ModelAPI_Folder > &theFolder) |
| Add a list of features to the folder. More...
|
|
virtual MODEL_EXPORT bool | removeFromFolder (const std::list< std::shared_ptr< ModelAPI_Feature > > &theFeatures, const bool theBefore=true) |
| Remove features from the folder. More...
|
|
bool | executeFeatures () |
| ! Returns true if parametric updater need to execute feature on recomputation On abort, undo or redo it is not necessary: results in document are updated automatically More...
|
|
void | setExecuteFeatures (const bool theFlag) |
| ! On abort, undo or redo it is not necessary: results in document are updated automatically More...
|
|
void | addNamingName (const TDF_Label theLabel, std::wstring theName) |
| Registers the name of the shape for the topological naming needs. More...
|
|
void | changeNamingName (std::wstring theOldName, const std::wstring theNewName, const TDF_Label &theLabel) |
| Updates the name of some object. More...
|
|
TDF_Label | findNamingName (std::wstring theName, ResultPtr theContext) |
| Returns the label, keeper of the name for the topological naming needs. More...
|
|
int | numberOfNameInHistory (const ObjectPtr &theNameObject, const TDF_Label &theStartFrom) |
| Returns the number of the name in the history relatively to the given object (by label). More...
|
|
ResultPtr | findByName (std::wstring &theName, std::wstring &theSubShapeName, bool &theUniqueContext) |
| Returns the result by name of the result (names of results must be unique, used for naming selection by name. More...
|
|
virtual MODEL_EXPORT std::list< std::shared_ptr< ModelAPI_Feature > > | allFeatures () |
| ! Returns all features of the document including the hidden features which are not in history. More...
|
|
virtual MODEL_EXPORT std::list< std::shared_ptr< ModelAPI_Object > > | allObjects () |
| Returns all objects of the document including the hidden features which are not in history. More...
|
|
virtual MODEL_EXPORT int | transactionID () |
| Returns the global identifier of the current transaction (needed for the update algo) More...
|
|
virtual MODEL_EXPORT void | incrementTransactionID () |
| Increases the transaction ID. More...
|
|
virtual MODEL_EXPORT bool | isOpened () |
| Returns true if document is opened and valid. More...
|
|
FeaturePtr | lastFeature () |
| Returns the last feature in the document (even not visible or disabled) More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_Feature > | producedByFeature (std::shared_ptr< ModelAPI_Result > theResult, const std::shared_ptr< GeomAPI_Shape > &theShape) |
| Returns the feature that produced the given face of the given result. More...
|
|
virtual MODEL_EXPORT bool | isLater (FeaturePtr theLater, FeaturePtr theCurrent) const |
| Returns true if theLater is in history of features creation later than theCurrent. More...
|
|
virtual MODEL_EXPORT void | eraseAllFeatures () |
| Just removes all features without touching the document data (to be able undo) More...
|
|
virtual MODEL_EXPORT std::shared_ptr< ModelAPI_Feature > | nextFeature (std::shared_ptr< ModelAPI_Feature > theCurrent, const bool theReverse=false) const |
| Returns the next (from the history point of view) feature, any: invisible or disabled. More...
|
|
| ~Model_Document () |
| Erases the document structure. More...
|
|
virtual void | emptyFunction () const |
| Empty function which is added for virtualiation of the interface. More...
|
|
|
TDF_Label | generalLabel () const |
| Returns (creates if needed) the general label. More...
|
|
| Model_Document (const int theID, const std::string theKind) |
| Creates new document with binary file format. More...
|
|
Handle_TDocStd_Document | document () |
| Returns the internal OCCT document of this interface. More...
|
|
void | compactNested () |
| performs compactification of all nested operations into one More...
|
|
const std::set< int > | subDocuments () const |
| Returns all loaded sub documents. More...
|
|
void | undoInternal (const bool theWithSubs, const bool theSynchronize) |
| The implementation of undo: with or without recursive calls in the sub-documents. More...
|
|
void | operationId (const std::string &theId) |
| Stores the Id of the current operation (normally is called for the root document) More...
|
|
std::list< std::string > | undoList () const |
| Returns the list of Ids of the operations that can be undone (called for the root document) More...
|
|
std::list< std::string > | redoList () const |
| Returns the list of Ids of the operations that can be redone (called for the root document) More...
|
|
virtual void | updateHistory (const std::shared_ptr< ModelAPI_Object > theObject) |
| Internally makes document know that feature was removed or added in history after creation. More...
|
|
virtual void | updateHistory (const std::string theGroup) |
| Internally makes document know that feature was removed or added in history after creation. More...
|
|
bool | isRoot () const |
| Returns true if the document is root module document. More...
|
|
void | setThis (DocumentPtr theDoc) |
| Sets shared pointer to this. More...
|
|
Model_Objects * | objects () |
| Returns the objects manager. More...
|
|
virtual void | setActive (const bool theFlag) |
| ! Informs the document that it becomes active and some actions must be performed More...
|
|
virtual bool | isActive () const |
| Returns true if this document is currently active. More...
|
|
std::shared_ptr< ModelAPI_AttributeSelectionList > | selectionInPartFeature () |
| Returns the selection attribute that is used for calculation of selection externally from the document. More...
|
|
virtual void | storeNodesState (const std::list< bool > &theStates) |
| Stores in the document boolean flags: states of the nodes in the object browser. More...
|
|
virtual void | restoreNodesState (std::list< bool > &theStates) const |
| Returns the stored nodes states. More...
|
|
TDF_Label | extConstructionsLabel () const |
| Label that contains structures for selection of constructions of another document. More...
|
|
FeaturePtr | featureByLab (const TDF_Label &theLab) |
| searches in this document feature that contains this label More...
|
|
ResultPtr | resultByLab (const TDF_Label &theLab) |
| searches in this document result that contains this label More...
|
|
bool | isLaterByDep (FeaturePtr theThis, FeaturePtr theOther) |
| returns true if theThis is later in the features tree and dependencies than theOther More...
|
|
void | appendTransactionToPrevious () |
| appends the latest transaction to the previous one (used for AutoUpdate enabling transaction) More...
|
|
void | setAutoRecomutationState (const bool theState) |
| Sets the automatic recomputation flag: true means enabled. More...
|
|
bool | autoRecomutationState () const |
| Returns the current automatic recomputation flag: true means enabled. More...
|
|