General object of the application that allows to get/set attributes from the document and compute result of an operation.
More...
|
| | Model_Data () |
| | The simplest constructor. "setLabel" must be called just after to initialize correctly. More...
|
| |
| virtual MODEL_EXPORT std::wstring | name () |
| | Returns the name of the feature visible by the user in the object browser. More...
|
| |
| virtual MODEL_EXPORT std::wstring | name (std::shared_ptr< GeomAPI_Shape > theSubShape) |
| | Returns the name of the shape. More...
|
| |
| virtual MODEL_EXPORT void | setName (const std::wstring &theName) |
| | Defines the name of the feature visible by the user in the object browser. More...
|
| |
| virtual MODEL_EXPORT bool | hasUserDefinedName () const |
| | Return true if the object has been renamed by the user. More...
|
| |
| virtual MODEL_EXPORT std::string | version () |
| | Returns version of the feature (empty string if not applicable) More...
|
| |
| virtual MODEL_EXPORT void | setVersion (const std::string &theVersion) |
| | Initialize the version of the feature. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_AttributeDocRef > | document (const std::string &theID) |
| | Returns the attribute that references to another document. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_AttributeDouble > | real (const std::string &theID) |
| | Returns the attribute that contains real value with double precision. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_AttributeDoubleArray > | realArray (const std::string &theID) |
| | Returns the attribute that contains double values array. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_AttributeInteger > | integer (const std::string &theID) |
| | Returns the attribute that contains integer value. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_AttributeReference > | reference (const std::string &theID) |
| | Returns the attribute that contains reference to a feature. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_AttributeSelection > | selection (const std::string &theID) |
| | Returns the attribute that contains selection to a shape. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_AttributeSelectionList > | selectionList (const std::string &theID) |
| | Returns the attribute that contains selection to a shape. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_AttributeRefAttr > | refattr (const std::string &theID) |
| | Returns the attribute that contains reference to an attribute of a feature. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_AttributeRefList > | reflist (const std::string &theID) |
| | Returns the attribute that contains list of references to features. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_AttributeRefAttrList > | refattrlist (const std::string &theID) |
| | Returns the attribute that contains list of references to features or reference to an attribute of a feature. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_AttributeBoolean > | boolean (const std::string &theID) |
| | Returns the attribute that contains boolean value. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_AttributeString > | string (const std::string &theID) |
| | Returns the attribute that contains real value with double precision. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_AttributeIntArray > | intArray (const std::string &theID) |
| | Returns the attribute that contains integer values array. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_AttributeStringArray > | stringArray (const std::string &theID) |
| | Returns the attribute that contains string values array. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_AttributeTables > | tables (const std::string &theID) |
| | Returns the attribute that contains string values array. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_AttributeImage > | image (const std::string &theID) |
| | Returns the attribute that contains image. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_Attribute > | attribute (const std::string &theID) |
| | Returns the generic attribute by identifier. More...
|
| |
| virtual MODEL_EXPORT std::list< std::shared_ptr< ModelAPI_Attribute > > | attributes (const std::string &theType) |
| | Returns all attributes of the feature of the given type or all attributes if "theType" is empty. More...
|
| |
| virtual MODEL_EXPORT std::list< std::string > | attributesIDs (const std::string &theType) |
| | Returns all attributes ids of the feature of the given type or all attributes if "theType" is empty. More...
|
| |
| virtual MODEL_EXPORT const std::string & | id (const std::shared_ptr< ModelAPI_Attribute > &theAttr) |
| | Identifier by the id (not fast, iteration by map) More...
|
| |
| virtual MODEL_EXPORT bool | isEqual (const std::shared_ptr< ModelAPI_Data > &theData) |
| | Returns true if data belongs to same features. More...
|
| |
| virtual MODEL_EXPORT bool | isValid () |
| | Returns true if it is correctly connected to the data model. More...
|
| |
| TDF_Label | shapeLab () const |
| | Returns the label where the shape must be stored (used in ResultBody) More...
|
| |
| virtual MODEL_EXPORT AttributePtr | addAttribute (const std::string &theID, const std::string theAttrType, const int theIndex=-1) |
| | Initializes object by the attributes: must be called just after the object is created for each attribute of the object. More...
|
| |
| virtual MODEL_EXPORT AttributePtr | addFloatingAttribute (const std::string &theID, const std::string theAttrType, const std::string &theGroup) |
| | Adds a floating attribute (that may be added/removed during the data life) More...
|
| |
| virtual MODEL_EXPORT void | allGroups (std::list< std::string > &theGroups) |
| | Returns all groups of this data (ordered). More...
|
| |
| virtual MODEL_EXPORT void | attributesOfGroup (const std::string &theGroup, std::list< std::shared_ptr< ModelAPI_Attribute > > &theAttrs) |
| | Returns an ordered list of attributes that belong to the given group. More...
|
| |
| virtual MODEL_EXPORT void | removeAttributes (const std::string &theGroup) |
| | Remove all attributes of the given group. More...
|
| |
| virtual MODEL_EXPORT void | sendAttributeUpdated (ModelAPI_Attribute *theAttr) |
| | Useful method for "set" methods of the attributes: sends an UPDATE event and makes attribute initialized. More...
|
| |
| virtual MODEL_EXPORT bool | blockSendAttributeUpdated (const bool theBlock, const bool theSendMessage=true) |
| | Blocks sending "attribute updated" if theBlock is true. More...
|
| |
| MODEL_EXPORT void | setLabel (TDF_Label theLab) |
| | Puts feature to the document data sub-structure. More...
|
| |
| virtual MODEL_EXPORT void | setObject (ObjectPtr theObject) |
| | Sets the object of this data. More...
|
| |
| virtual MODEL_EXPORT void | erase () |
| | Erases all the data from the data model. More...
|
| |
| virtual MODEL_EXPORT void | execState (const ModelAPI_ExecState theState) |
| | Stores the state of the object to execute it later accordingly. More...
|
| |
| virtual MODEL_EXPORT ModelAPI_ExecState | execState () |
| | Returns the state of the latest execution of the feature. More...
|
| |
| virtual MODEL_EXPORT void | setError (const std::string &theError, bool theSend=true) |
| | Registers error during the execution, causes the ExecutionFailed state. More...
|
| |
| void | eraseErrorString () |
| | Erases the error string if it is not empty. More...
|
| |
| virtual MODEL_EXPORT std::string | error () const |
| | Registers error during the execution, causes the ExecutionFailed state. More...
|
| |
| virtual MODEL_EXPORT int | featureId () const |
| | Returns the identifier of feature-owner, unique in this document. More...
|
| |
| virtual MODEL_EXPORT const std::set< AttributePtr > & | refsToMe () |
| | returns all objects referenced to this More...
|
| |
| virtual MODEL_EXPORT void | referencesToObjects (std::list< std::pair< std::string, std::list< ObjectPtr > > > &theRefs) |
| | returns all references by attributes of this data More...
|
| |
| virtual MODEL_EXPORT void | copyTo (std::shared_ptr< ModelAPI_Data > theTarget) |
| | Copies all attributes content into theTarget data. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_Data > | invalidPtr () |
| | Returns the invalid data pointer (to avoid working with NULL shared pointers in swig) More...
|
| |
| virtual MODEL_EXPORT int | updateID () |
| | Identifier of the transaction when object (feature or result) was updated last time. More...
|
| |
| virtual MODEL_EXPORT void | setUpdateID (const int theID) |
| | Identifier of the transaction when object (feature or result) was updated last time. More...
|
| |
| virtual MODEL_EXPORT std::shared_ptr< ModelAPI_Object > | owner () |
| | Returns true if the given object is owner of this data (needed for correct erase of object with duplicated data) More...
|
| |
General object of the application that allows to get/set attributes from the document and compute result of an operation.