SHAPER
9.12.0
|
The Part document, result of a creation of new part feature. More...
Public Member Functions | |
virtual void | initAttributes () |
Request for initialization of data model of the result: adding all attributes. More... | |
virtual std::shared_ptr< ModelAPI_Document > | partDoc () |
Returns the part-document of this result. More... | |
virtual std::shared_ptr< ModelAPI_ResultPart > | original () |
Returns the original part result: for transformation features results this is the original Part feature result. More... | |
virtual void | activate () |
Sets this document as current and if it is not loaded yet, loads it. More... | |
virtual bool | setDisabled (std::shared_ptr< ModelAPI_Result > theThis, const bool theFlag) |
disable all feature of the part on disable of the part result More... | |
virtual std::shared_ptr< GeomAPI_Shape > | shape () |
Result shape of part document is compound of bodies inside of this part. More... | |
virtual std::wstring | nameInPart (const std::shared_ptr< GeomAPI_Shape > &theShape, int &theIndex) |
Returns the name of the shape inside of the part. More... | |
virtual bool | updateInPart (const int theIndex) |
Updates the selection inside of the part by the selection index. More... | |
virtual std::shared_ptr< GeomAPI_Shape > | shapeInPart (const std::wstring &theName, const std::string &theType, int &theIndex) |
Returns the shape by the name in the part. More... | |
virtual bool | combineGeometrical (const int theIndex, std::wstring &theNewName) |
Updates the selection inside of the part as a geometrical selection. More... | |
virtual void | updateShape () |
Updates the shape-result of the part (called on Part feature execution) More... | |
virtual void | setTrsf (std::shared_ptr< ModelAPI_Result > theThis, const std::shared_ptr< GeomAPI_Trsf > &theTransformation) |
Applies the additional transformation of the part. More... | |
virtual std::shared_ptr< GeomAPI_Trsf > | summaryTrsf () |
Returns the summary transformations of all references to the origin. More... | |
virtual void | colorConfigInfo (std::string &theSection, std::string &theName, std::string &theDefault) |
Returns the parameters of color definition in the resources config manager. More... | |
virtual std::shared_ptr< GeomAPI_Shape > | selectionValue (const int theIndex) |
Returns the shape selected in the selection index. More... | |
virtual void | loadPart () |
Loading the part from file. More... | |
virtual std::string | groupName () |
Returns the group identifier of this result. 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 | isDisabled () |
Returns the result is disabled or not. 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 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 const std::string & | BASE_REF_ID () |
the reference to the base result document, may be null if this is the root, others make sequence of references More... | |
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 | |
Model_ResultPart () | |
makes a result on a temporary feature (an action) More... | |
gp_Trsf | sumTrsf () |
returns sum of transformations of the whole sequence of transformation-parts More... | |
virtual bool | isActivated () |
Returns true if document is activated (loaded into the memory) More... | |
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... | |
Friends | |
class | Model_Objects |
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.
|
protected |
makes a result on a temporary feature (an action)
|
inlinestatic |
the reference to the base result document, may be null if this is the root, others make sequence of references
|
virtual |
Request for initialization of data model of the result: adding all attributes.
Reimplemented from ModelAPI_Result.
|
virtual |
Returns the part-document of this result.
Implements ModelAPI_ResultPart.
|
virtual |
Returns the original part result: for transformation features results this is the original Part feature result.
Implements ModelAPI_ResultPart.
|
virtual |
Sets this document as current and if it is not loaded yet, loads it.
Implements ModelAPI_ResultPart.
|
virtual |
disable all feature of the part on disable of the part result
Reimplemented from ModelAPI_Result.
|
virtual |
Result shape of part document is compound of bodies inside of this part.
Reimplemented from ModelAPI_Result.
|
virtual |
Returns the name of the shape inside of the part.
theShape | selected shape in this document |
theIndex | is returned as one-based index if selection was required, "0" otherwise |
Implements ModelAPI_ResultPart.
|
virtual |
Updates the selection inside of the part by the selection index.
Implements ModelAPI_ResultPart.
|
virtual |
Returns the shape by the name in the part.
Implements ModelAPI_ResultPart.
|
virtual |
Updates the selection inside of the part as a geometrical selection.
Implements ModelAPI_ResultPart.
|
virtual |
Updates the shape-result of the part (called on Part feature execution)
Implements ModelAPI_ResultPart.
|
virtual |
Applies the additional transformation of the part.
Implements ModelAPI_ResultPart.
|
virtual |
Returns the summary transformations of all references to the origin.
Implements ModelAPI_ResultPart.
|
virtual |
Returns the parameters of color definition in the resources config manager.
Reimplemented from ModelAPI_Object.
|
virtual |
Returns the shape selected in the selection index.
Implements ModelAPI_ResultPart.
|
virtual |
Loading the part from file.
Implements ModelAPI_ResultPart.
|
protected |
returns sum of transformations of the whole sequence of transformation-parts
|
protectedvirtual |
Returns true if document is activated (loaded into the memory)
Implements ModelAPI_ResultPart.
|
virtualinherited |
Returns the group identifier of this result.
Implements ModelAPI_Object.
|
inlinestaticinherited |
Returns the group identifier of this result.
|
inlinestaticinherited |
part document reference attribute
|
inlinestaticinherited |
default color for a result body
|
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 |
Returns the result is disabled or not.
Implements ModelAPI_Object.
|
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.
|
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