SHAPER
9.12.0
|
Attribute that contains list of references to the sub-shapes with possibility to manage them. More...
Public Member Functions | |
virtual void | append (const ObjectPtr &theContext, const std::shared_ptr< GeomAPI_Shape > &theSubShape, const bool theTemporarily=false) |
Adds the new reference to the end of the list. More... | |
virtual void | append (const std::wstring &theNamingName, const std::string &theType="") |
Adds the new reference to the end of the list by the naming name of the selected shape The type of shape is taken from the current selection type if the given is empty. More... | |
virtual void | append (const std::shared_ptr< GeomAPI_Pnt > &thePoint, const std::string &theType) |
Adds the new reference to the end of the list by inner point on the selected shape. More... | |
virtual void | append (const std::string &theType, const std::wstring &theContextName, const int theIndex) |
Adds the new reference to the end of the list by weak naming index. More... | |
virtual void | copyTo (AttributeSelectionListPtr theTarget) const |
Copy the selection list to the destination attribute. More... | |
virtual void | removeTemporaryValues () |
Reset temporary stored values. More... | |
virtual void | removeLast () |
Removes the last element in the list. More... | |
virtual void | remove (const std::set< int > &theIndices) |
Removes the elements from the list. More... | |
virtual int | size () |
Returns the number of selection attributes in the list. More... | |
virtual bool | isInList (const ObjectPtr &theContext, const std::shared_ptr< GeomAPI_Shape > &theSubShape, const bool theTemporarily=false) |
Returns true if the object with the shape are in list. More... | |
virtual const std::string | selectionType () const |
The type of all elements selection. More... | |
virtual void | setSelectionType (const std::string &theType) |
Sets the type of all elements selection. More... | |
virtual std::shared_ptr< ModelAPI_AttributeSelection > | value (const int theIndex) |
Returns the attribute selection by the index (zero based) More... | |
virtual void | clear () |
Returns all attributes. More... | |
virtual bool | isInitialized () |
Returns true if attribute was initialized by some value. More... | |
virtual void | cashValues (const bool theEnabled) |
Starts or stops cashing of the values in the attribute (the cash may become invalid on modification of the attribute or sub-elements, so the cash must be enabled only during non-modification operations with this attribute) More... | |
virtual void | setGeometricalSelection (const bool theIsGeometricalSelection) override |
virtual bool | isGeometricalSelection () const override |
Returns true if is geometrical selection. More... | |
virtual FiltersFeaturePtr | filters () const |
Returns a selection filters feature if it is defined for this selection list. More... | |
virtual void | setFilters (FiltersFeaturePtr theFeature) |
Sets a selection filters feature if it is defined for this selection list. More... | |
virtual std::string | attributeType () |
Returns the type of this class of attributes, not static method. More... | |
virtual const bool | isWholeResultAllowed () const |
Returns true if the whole result selection corresponds to selection of all sub-shapes. More... | |
virtual void | setWholeResultAllowed (const bool theFlag) |
Sets whether the whole result selection corresponds to selection of all sub-shapes. More... | |
virtual const bool | isMakeCopy () const |
Returns true if a copy features must be used in update in history. More... | |
virtual void | setMakeCopy (const bool theFlag) |
Sets true if a copy features must be used in update in history. 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... | |
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 | |
Model_AttributeSelectionList (TDF_Label &theLabel) | |
Objects are created for features automatically. More... | |
virtual void | reinit () |
Reinitializes the internal state of the attribute (may be needed on undo/redo, abort, etc) More... | |
bool | merge (Model_AttributeSelection *theStart) |
Tries to merge attributes in this list with the same result shape. More... | |
virtual void | setID (const std::string theID) |
Sets the ID of the attribute in Data (called from Data) 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... | |
Friends | |
class | Model_Data |
class | Model_AttributeSelection |
Attribute that contains list of references to the sub-shapes with possibility to manage them.
|
protected |
Objects are created for features automatically.
|
virtual |
Adds the new reference to the end of the list.
theContext | object where the sub-shape was selected |
theSubShape | selected sub-shape (if null, the whole context is selected) |
theTemporarily | if it is true, do not store and name the added in the data framework (used to remove immediately, without the following updates) |
Implements ModelAPI_AttributeSelectionList.
|
virtual |
Adds the new reference to the end of the list by the naming name of the selected shape The type of shape is taken from the current selection type if the given is empty.
Implements ModelAPI_AttributeSelectionList.
|
virtual |
Adds the new reference to the end of the list by inner point on the selected shape.
Implements ModelAPI_AttributeSelectionList.
|
virtual |
Adds the new reference to the end of the list by weak naming index.
Implements ModelAPI_AttributeSelectionList.
|
virtual |
Copy the selection list to the destination attribute.
Implements ModelAPI_AttributeSelectionList.
|
virtual |
Reset temporary stored values.
Implements ModelAPI_AttributeSelectionList.
|
virtual |
Removes the last element in the list.
Implements ModelAPI_AttributeSelectionList.
|
virtual |
Removes the elements from the list.
theIndices | a list of indices of elements to be removed |
Implements ModelAPI_AttributeSelectionList.
|
virtual |
Returns the number of selection attributes in the list.
Implements ModelAPI_AttributeSelectionList.
|
virtual |
Returns true if the object with the shape are in list.
theContext | object where the sub-shape was selected |
theSubShape | selected sub-shape (if null, the whole context is selected) |
theTemporarily | if it is true, it checks also the temporary added item |
Implements ModelAPI_AttributeSelectionList.
|
virtual |
The type of all elements selection.
Implements ModelAPI_AttributeSelectionList.
|
virtual |
Sets the type of all elements selection.
theType | the index of the OCCT enumeration of the type of shape |
Implements ModelAPI_AttributeSelectionList.
|
virtual |
Returns the attribute selection by the index (zero based)
Implements ModelAPI_AttributeSelectionList.
|
virtual |
Returns all attributes.
Implements ModelAPI_AttributeSelectionList.
|
virtual |
Returns true if attribute was initialized by some value.
Reimplemented from ModelAPI_Attribute.
|
virtual |
Starts or stops cashing of the values in the attribute (the cash may become invalid on modification of the attribute or sub-elements, so the cash must be enabled only during non-modification operations with this attribute)
Implements ModelAPI_AttributeSelectionList.
|
overridevirtual |
Returns true if is geometrical selection.
Implements ModelAPI_AttributeSelectionList.
|
virtual |
Returns a selection filters feature if it is defined for this selection list.
Implements ModelAPI_AttributeSelectionList.
|
virtual |
Sets a selection filters feature if it is defined for this selection list.
Implements ModelAPI_AttributeSelectionList.
|
protectedvirtual |
Reinitializes the internal state of the attribute (may be needed on undo/redo, abort, etc)
Reimplemented from ModelAPI_Attribute.
|
protected |
Tries to merge attributes in this list with the same result shape.
Returns true if theStart matches with some later attribute and theStart is removed from the list.
|
inlinestaticinherited |
Returns the type of this class of attributes.
|
virtualinherited |
Returns the type of this class of attributes, not static method.
Implements ModelAPI_Attribute.
|
inlinevirtualinherited |
Returns true if the whole result selection corresponds to selection of all sub-shapes.
|
inlinevirtualinherited |
Sets whether the whole result selection corresponds to selection of all sub-shapes.
|
inlinevirtualinherited |
Returns true if a copy features must be used in update in history.
|
inlinevirtualinherited |
Sets true if a copy features must be used in update in history.
|
virtualinherited |
Sets the owner of this attribute.
Reimplemented in Model_AttributeSelection, and Model_AttributeReference.
|
inherited |
Returns the owner of this attribute.
|
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.
|
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)