|
SHAPER
9.15.0
|
The Part document, result of a creation of new part feature. More...

Public Member Functions | |
| virtual std::string | groupName () |
| Returns the group identifier of this result. More... | |
| virtual std::shared_ptr< ModelAPI_Document > | partDoc ()=0 |
| Returns the part-document of this result. More... | |
| virtual std::shared_ptr< ModelAPI_ResultPart > | original ()=0 |
| Returns the original part result: for transformation features results this is the original Part feature result. More... | |
| virtual void | activate ()=0 |
| Sets this document as current and if it is not loaded yet, loads it. More... | |
| virtual bool | isActivated ()=0 |
| Returns true if document is activated (loaded into the memory) More... | |
| virtual std::wstring | nameInPart (const std::shared_ptr< GeomAPI_Shape > &theShape, int &theIndex)=0 |
| Returns the name of the shape inside of the part. More... | |
| virtual bool | updateInPart (const int theIndex)=0 |
| Updates the selection inside of the part by the selection index. More... | |
| virtual void | setTrsf (std::shared_ptr< ModelAPI_Result > theThis, const std::shared_ptr< GeomAPI_Trsf > &theTransformation)=0 |
| Applies the additional transformation of the part. More... | |
| virtual std::shared_ptr< GeomAPI_Trsf > | summaryTrsf ()=0 |
| Returns the summary transformations of all references to the origin. More... | |
| virtual std::shared_ptr< GeomAPI_Shape > | shapeInPart (const std::wstring &theName, const std::string &theType, int &theIndex)=0 |
| Returns the shape by the name in the part. More... | |
| virtual void | setSubShapeColor (const std::shared_ptr< GeomAPI_Shape > &theShape, const std::vector< int > &theColor)=0 |
| Set color on subshape. More... | |
| virtual void | getSubShapeColor (const std::shared_ptr< GeomAPI_Shape > &theShape, std::vector< int > &theColor)=0 |
| Get subshape color. More... | |
| virtual void | getColoredSubShapes (std::map< std::shared_ptr< GeomAPI_Shape >, std::vector< int >> &theColoredShapes)=0 |
| Get colored subshapes from result. More... | |
| virtual void | removeSubShapeColors ()=0 |
| Forget subshapes colors. More... | |
| virtual bool | combineGeometrical (const int theIndex, std::wstring &theNewName)=0 |
| Updates the selection inside of the part as a geometrical selection. More... | |
| virtual std::shared_ptr< GeomAPI_Shape > | selectionValue (const int theIndex)=0 |
| Returns the shape selected in the selection index. More... | |
| virtual void | updateShape ()=0 |
| Updates the shape-result of the part (called on Part feature execution) More... | |
| virtual std::shared_ptr< ModelAPI_AttributeSelection > | selection ()=0 |
| Return Attribute selection. More... | |
| virtual void | loadPart ()=0 |
| Loading the part from file. More... | |
| virtual bool | isConcealed () |
| Returns true if the result is concealed from the data tree (referenced by other objects) More... | |
| virtual void | setIsConcealed (const bool theValue, const bool theForced=false) |
| Sets the result as concealed in the data tree (referenced by other objects) More... | |
| virtual bool | setDisabled (std::shared_ptr< ModelAPI_Result > theThis, const bool theFlag) |
| Enables/disables the result. More... | |
| virtual bool | isDisabled () |
| Returns the result is disabled or not. More... | |
| virtual void | initAttributes () |
| Request for initialization of data model of the result: adding all attributes. More... | |
| virtual std::shared_ptr< GeomAPI_Shape > | shape () |
| Returns the shape-result produced by this feature (or null if no shapes) More... | |
| virtual ListOfShape | vertices (const bool theOnlyUnique=false) |
| Returns all the vertices of this result. More... | |
| virtual ListOfShape | edges (const bool theOnlyUnique=false) |
| Returns all the edges of this result. More... | |
| virtual ListOfShape | wires (const bool theOnlyUnique=false) |
| Returns all the wires of this result. More... | |
| virtual ListOfShape | faces (const bool theOnlyUnique=false) |
| Returns all the faces of this result. More... | |
| virtual ListOfShape | shells (const bool theOnlyUnique=false) |
| Returns all the shells of this result. More... | |
| virtual ListOfShape | solids (const bool theOnlyUnique=false) |
| Returns all the solids of this result. More... | |
| virtual void | attributeChanged (const std::string &theID) |
| On change of attribute of the result update presentation of this result: for the current moment there are only presentation attributes assigned to results. More... | |
| virtual bool | isInHistory () |
| By default object is displayed in the object browser. More... | |
| virtual void | setInHistory (const std::shared_ptr< ModelAPI_Object > theObject, const bool theFlag) |
| Makes object presented or not in the history of the created objects. More... | |
| virtual std::shared_ptr< ModelAPI_Data > | data () const |
| Returns the data manager of this object: attributes. More... | |
| virtual bool | isSame (const std::shared_ptr< ModelAPI_Object > &theObject) |
| Returns true if object refers to the same data model instance. More... | |
| virtual std::shared_ptr< ModelAPI_Document > | document () const |
| Returns document this feature belongs to. More... | |
| virtual void | colorConfigInfo (std::string &, std::string &, std::string &) |
| Returns the parameters of color definition in the resources config manager. More... | |
| virtual bool | isDisplayed () |
| Returns true if object must be displayed in the viewer: flag is stored in the data model, so on undo/redo, open/save or recreation of object by history-playing it keeps the original state in the current transaction. More... | |
| virtual void | setDisplayed (const bool theDisplay) |
| Sets the displayed/hidden state of the object. More... | |
| virtual bool | hasTexture () |
| virtual void | emptyFunction () const |
| Empty function which is added for virtualiation of the interface. More... | |
Static Public Member Functions | |
| static std::string | group () |
| Returns the group identifier of this result. More... | |
| static const std::string & | DOC_REF () |
| part document reference attribute More... | |
| static const std::string & | DEFAULT_COLOR () |
| default color for a result body More... | |
| static const std::string & | COLOR_ID () |
| Reference to the color of the result. More... | |
| static const std::string & | DEFLECTION_ID () |
| Reference to the deflection of the result. More... | |
| static const std::string & | TRANSPARENCY_ID () |
| Reference to the transparency of the result. More... | |
| static const std::string & | ISO_LINES_ID () |
| Reference to the transparency of the result. More... | |
| static const std::string & | SHOW_ISO_LINES_ID () |
| Reference to the transparency of the result. More... | |
| static const std::string & | SHOW_EDGES_DIRECTION_ID () |
| Reference to the transparency of the result. More... | |
| static const std::string & | BRING_TO_FRONT_ID () |
| Reference to the BringToFront flag of the result. More... | |
Protected Member Functions | |
| virtual void | init () |
| This method is called just after creation of the object: it must initialize all fields, normally initialized in the constructor. More... | |
| virtual void | setData (std::shared_ptr< ModelAPI_Data > theData) |
| Sets the data manager of an object (document does) More... | |
| virtual void | setDoc (std::shared_ptr< ModelAPI_Document > theDoc) |
| Sets the data manager of an object (document does) More... | |
| virtual void | erase () |
| removes all fields from this feature More... | |
Protected Attributes | |
| bool | myIsDisabled |
| the result is disabled: removed for the user, but keeps the general info More... | |
The Part document, result of a creation of new part feature.
This result leaves without feature: no parametricity for this element, only add/remove, undo/redo.
|
virtual |
Returns the group identifier of this result.
Implements ModelAPI_Object.
|
inlinestatic |
Returns the group identifier of this result.
|
inlinestatic |
part document reference attribute
|
inlinestatic |
default color for a result body
|
pure virtual |
Returns the part-document of this result.
Implemented in Model_ResultPart.
|
pure virtual |
Returns the original part result: for transformation features results this is the original Part feature result.
Implemented in Model_ResultPart.
|
pure virtual |
Sets this document as current and if it is not loaded yet, loads it.
Implemented in Model_ResultPart.
|
pure virtual |
Returns true if document is activated (loaded into the memory)
Implemented in Model_ResultPart.
|
pure virtual |
Returns the name of the shape inside of the part.
Implemented in Model_ResultPart.
|
pure virtual |
Updates the selection inside of the part by the selection index.
Implemented in Model_ResultPart.
|
pure virtual |
Applies the additional transformation of the part.
Implemented in Model_ResultPart.
|
pure virtual |
Returns the summary transformations of all references to the origin.
Implemented in Model_ResultPart.
|
pure virtual |
Returns the shape by the name in the part.
Implemented in Model_ResultPart.
|
pure virtual |
Set color on subshape.
Implemented in Model_ResultPart.
|
pure virtual |
Get subshape color.
Implemented in Model_ResultPart.
|
pure virtual |
Get colored subshapes from result.
Implemented in Model_ResultPart.
|
pure virtual |
Forget subshapes colors.
Implemented in Model_ResultPart.
|
pure virtual |
Updates the selection inside of the part as a geometrical selection.
Implemented in Model_ResultPart.
|
pure virtual |
Returns the shape selected in the selection index.
Implemented in Model_ResultPart.
|
pure virtual |
Updates the shape-result of the part (called on Part feature execution)
Implemented in Model_ResultPart.
|
pure virtual |
Return Attribute selection.
Implemented in Model_ResultPart.
|
pure virtual |
Loading the part from file.
Implemented in Model_ResultPart.
|
inlinestaticinherited |
Reference to the color of the result.
The integer array is used. It contains three values for red, green and blue values. The values are in [0, 255] range
|
inlinestaticinherited |
Reference to the deflection of the result.
The double value is used. The value is in [0, 1] range
|
inlinestaticinherited |
Reference to the transparency of the result.
The double value is used. The value is in [0, 1] range
|
inlinestaticinherited |
Reference to the transparency of the result.
The double value is used. The value is in [0, 1] range
|
inlinestaticinherited |
Reference to the transparency of the result.
The double value is used. The value is in [0, 1] range
|
inlinestaticinherited |
Reference to the transparency of the result.
The double value is used. The value is in [0, 1] range
|
inlinestaticinherited |
Reference to the BringToFront flag of the result.
The bool value is used.
|
virtualinherited |
Returns true if the result is concealed from the data tree (referenced by other objects)
Reimplemented in Model_ResultBody.
|
virtualinherited |
Sets the result as concealed in the data tree (referenced by other objects)
Reimplemented in Model_ResultConstruction, and Model_ResultBody.
|
virtualinherited |
Enables/disables the result.
The disabled result does not participate in any calculation and visualization: like it was removed. But it keeps the general parameters: colors, visibility, etc.
| theThis | pointer to this object, needed to generate all events if it is necessary |
| theFlag | makes disabled if it is true |
Reimplemented in Model_ResultPart, and Model_ResultBody.
|
virtualinherited |
Returns the result is disabled or not.
Implements ModelAPI_Object.
|
virtualinherited |
Request for initialization of data model of the result: adding all attributes.
Implements ModelAPI_Object.
Reimplemented in ModelAPI_ResultParameter, Model_ResultPart, Model_ResultParameter, and Model_ResultBody.
|
virtualinherited |
Returns the shape-result produced by this feature (or null if no shapes)
Reimplemented in ModelAPI_ResultBody, Model_ResultPart, Model_ResultGroup, Model_ResultField, and Model_ResultConstruction.
|
virtualinherited |
Returns all the vertices of this result.
|
virtualinherited |
Returns all the edges of this result.
|
virtualinherited |
Returns all the wires of this result.
|
virtualinherited |
Returns all the faces of this result.
|
virtualinherited |
Returns all the shells of this result.
|
virtualinherited |
Returns all the solids of this result.
|
virtualinherited |
On change of attribute of the result update presentation of this result: for the current moment there are only presentation attributes assigned to results.
Reimplemented from ModelAPI_Object.
|
protectedvirtualinherited |
This method is called just after creation of the object: it must initialize all fields, normally initialized in the constructor.
Implements ModelAPI_Object.
|
virtualinherited |
By default object is displayed in the object browser.
Reimplemented in SketchPlugin_Sketch, SketchPlugin_Feature, ParametersPlugin_ParametersMgr, ParametersPlugin_Parameter, Model_ResultConstruction, FiltersPlugin_Selection, FeaturesPlugin_RemoveResults, ExchangePlugin_ExportPart, and ExchangePlugin_ExportFeature.
|
virtualinherited |
Makes object presented or not in the history of the created objects.
| theObject | is shared pointer to "this" |
| theFlag | is boolean value: to add or remove from the history |
|
virtualinherited |
Returns the data manager of this object: attributes.
|
virtualinherited |
Returns true if object refers to the same data model instance.
|
virtualinherited |
Returns document this feature belongs to.
Reimplemented in ModelAPI_Feature, and Model_ResultField::Model_FieldStep.
|
inlinevirtualinherited |
Returns the parameters of color definition in the resources config manager.
Reimplemented in SketchPlugin_ConstraintRadius, SketchPlugin_ConstraintLength, SketchPlugin_ConstraintDistance, SketchPlugin_ConstraintAngle, Model_ResultPart, Model_ResultGroup, Model_ResultField, Model_ResultConstruction, and Model_ResultBody.
|
virtualinherited |
Returns true if object must be displayed in the viewer: flag is stored in the data model, so on undo/redo, open/save or recreation of object by history-playing it keeps the original state in the current transaction.
Reimplemented in ModelAPI_ResultField::ModelAPI_FieldStep.
|
virtualinherited |
Sets the displayed/hidden state of the object.
If it is changed, sends the "redisplay" signal.
Reimplemented in ModelAPI_ResultField, ModelAPI_ResultField::ModelAPI_FieldStep, and ModelAPI_ResultBody.
|
protectedvirtualinherited |
Sets the data manager of an object (document does)
|
protectedvirtualinherited |
Sets the data manager of an object (document does)
|
protectedvirtualinherited |
removes all fields from this feature
Reimplemented in SketchPlugin_MultiTranslation, SketchPlugin_MultiRotation, SketchPlugin_ConstraintMirror, PartSetPlugin_Part, ModelAPI_Feature, and ModelAPI_CompositeFeature.
|
inlinevirtualinherited |
Empty function which is added for virtualiation of the interface.
|
protectedinherited |
the result is disabled: removed for the user, but keeps the general info