SHAPER
9.12.0
|
Attribute that contains list of references to features (located in the same document) or references to attributes of the features (list of AttributeRefAttr) More...
Public Member Functions | |
virtual std::string | attributeType () |
Returns the type of this class of attributes, not static method. More... | |
virtual void | append (ObjectPtr theObject)=0 |
Appends the feature to the end of a list. More... | |
virtual void | append (AttributePtr theAttr)=0 |
Appends the attribute to the end of a list. More... | |
virtual void | remove (ObjectPtr theObject)=0 |
Erases the first meet of the feature in the list. More... | |
virtual void | remove (AttributePtr theAttr)=0 |
Erases the first meet of the attribute in the list. More... | |
virtual void | clear ()=0 |
Removes all references from the list. More... | |
virtual int | size () const =0 |
Returns number of features in the list. More... | |
virtual std::list< std::pair< ObjectPtr, AttributePtr > > | list ()=0 |
Returns the list of features and attributes (if it is reference to the attribute) More... | |
virtual bool | isInList (const ObjectPtr &theObj)=0 |
Returns true if the object is in list. More... | |
virtual bool | isInList (const AttributePtr &theObj)=0 |
Returns true if the attribute is in list. More... | |
virtual bool | isAttribute (const int theIndex) const =0 |
Returns true if this is reference to an attribute, not just object. More... | |
virtual ObjectPtr | object (const int theIndex) const =0 |
Returns the referenced object by the zero-based index. More... | |
virtual AttributePtr | attribute (const int theIndex) const =0 |
Returns the referenced attribute by the zero-based index. More... | |
virtual void | removeLast ()=0 |
Removes the last element in the list. More... | |
virtual void | remove (const std::set< int > &theIndices)=0 |
Removes the elements from the list. More... | |
virtual void | setObject (const std::shared_ptr< ModelAPI_Object > &theObject) |
Sets the owner of this attribute. More... | |
const std::shared_ptr< ModelAPI_Object > & | owner () const |
Returns the owner of this attribute. More... | |
virtual bool | isInitialized () |
Returns true if attribute was initialized by some value. More... | |
void | setInitialized () |
Makes attribute initialized. More... | |
bool | blockSetInitialized (const bool theBlock) |
Blocks sending "attribute updated" if theBlock is true. More... | |
void | setIsArgument (const bool theFlag) |
Set this attribute is argument for result (change of this attribute requires update of result). More... | |
bool | isArgument () |
Returns true if attribute causes the result change. More... | |
bool | setImmutable (const bool theFlag) |
Immutable argument can not be changed programmatically (e.g. More... | |
bool | isImmutable () |
Returns true if can not be changed programmatically. More... | |
const std::string & | id () const |
ID of the attribute in Data. More... | |
virtual void | reset () |
Resets attribute to deafult state. More... | |
Static Public Member Functions | |
static std::string | typeId () |
Returns the type of this class of attributes. More... | |
Protected Member Functions | |
ModelAPI_AttributeRefAttrList () | |
Objects are created for features automatically. More... | |
virtual void | setID (const std::string theID) |
Sets the ID of the attribute in Data (called from Data) More... | |
virtual void | reinit () |
Reinitializes the internal state of the attribute (may be needed on undo/redo, abort, etc) More... | |
Protected Attributes | |
bool | myIsInitialized |
is some value assigned to this attribute More... | |
bool | mySetInitializedBlocked |
is initialized blocked More... | |
bool | myIsArgument |
is this attribute used as an argument for execution More... | |
bool | myIsImmutable |
is this attribute can be changed programmatically (e.g. by constraint) More... | |
Attribute that contains list of references to features (located in the same document) or references to attributes of the features (list of AttributeRefAttr)
|
protected |
Objects are created for features automatically.
|
inlinestatic |
Returns the type of this class of attributes.
|
virtual |
Returns the type of this class of attributes, not static method.
Implements ModelAPI_Attribute.
|
pure virtual |
Appends the feature to the end of a list.
Implemented in Model_AttributeRefAttrList.
|
pure virtual |
Appends the attribute to the end of a list.
Implemented in Model_AttributeRefAttrList.
|
pure virtual |
Erases the first meet of the feature in the list.
Implemented in Model_AttributeRefAttrList.
|
pure virtual |
Erases the first meet of the attribute in the list.
Implemented in Model_AttributeRefAttrList.
|
pure virtual |
Removes all references from the list.
Implemented in Model_AttributeRefAttrList.
|
pure virtual |
Returns number of features in the list.
Implemented in Model_AttributeRefAttrList.
|
pure virtual |
Returns the list of features and attributes (if it is reference to the attribute)
Implemented in Model_AttributeRefAttrList.
|
pure virtual |
Returns true if the object is in list.
Implemented in Model_AttributeRefAttrList.
|
pure virtual |
Returns true if the attribute is in list.
Implemented in Model_AttributeRefAttrList.
|
pure virtual |
Returns true if this is reference to an attribute, not just object.
Implemented in Model_AttributeRefAttrList.
|
pure virtual |
Returns the referenced object by the zero-based index.
theIndex | zero-based index in the list |
Implemented in Model_AttributeRefAttrList.
|
pure virtual |
Returns the referenced attribute by the zero-based index.
theIndex | zero-based index in the list |
Implemented in Model_AttributeRefAttrList.
|
pure virtual |
Removes the last element in the list.
Implemented in Model_AttributeRefAttrList.
|
pure virtual |
Removes the elements from the list.
theIndices | a list of indices of elements to be removed |
Implemented in Model_AttributeRefAttrList.
|
virtualinherited |
Sets the owner of this attribute.
Reimplemented in Model_AttributeSelection, and Model_AttributeReference.
|
inherited |
Returns the owner of this attribute.
|
virtualinherited |
Returns true if attribute was initialized by some value.
Reimplemented in Model_AttributeSelectionList, Model_AttributeSelection, Model_AttributeRefList, Model_AttributeReference, Model_AttributeRefAttrList, Model_AttributeRefAttr, and GeomData_Dir.
|
inherited |
Makes attribute initialized.
|
inherited |
Blocks sending "attribute updated" if theBlock is true.
theBlock | a block value |
|
inherited |
Set this attribute is argument for result (change of this attribute requires update of result).
By default it is true.
|
inherited |
Returns true if attribute causes the result change.
|
inherited |
Immutable argument can not be changed programmatically (e.g.
by constraint) By default it is false. Returns the previous state of the attribute's immutability.
|
inherited |
Returns true if can not be changed programmatically.
|
inherited |
ID of the attribute in Data.
|
virtualinherited |
Resets attribute to deafult state.
Reimplemented in Model_AttributeSelection, Model_AttributeDouble, GeomData_Point2D, and GeomData_Dir.
|
protectedvirtualinherited |
Sets the ID of the attribute in Data (called from Data)
Reimplemented in Model_AttributeSelection.
|
protectedvirtualinherited |
Reinitializes the internal state of the attribute (may be needed on undo/redo, abort, etc)
Reimplemented in Model_AttributeTables, Model_AttributeString, Model_AttributeSelectionList, Model_AttributeRefList, Model_AttributeReference, Model_AttributeRefAttrList, Model_AttributeRefAttr, Model_AttributeInteger, Model_AttributeIntArray, Model_AttributeImage, Model_AttributeDoubleArray, Model_AttributeDouble, Model_AttributeDocRef, Model_AttributeBoolean, GeomData_Point2DArray, GeomData_Point2D, GeomData_Point, and GeomData_Dir.
|
protectedinherited |
is some value assigned to this attribute
|
protectedinherited |
is initialized blocked
|
protectedinherited |
is this attribute used as an argument for execution
|
protectedinherited |
is this attribute can be changed programmatically (e.g. by constraint)