20 #ifndef ModelAPI_ResultPart_H_
21 #define ModelAPI_ResultPart_H_
23 #include "ModelAPI_Result.h"
39 MODELAPI_EXPORT
virtual std::string
groupName();
42 inline static std::string
group()
44 static std::string MY_GROUP =
"Parts";
49 inline static const std::string&
DOC_REF()
51 static const std::string MY_DOC_REF(
"PartDocument");
58 static const std::string RESULT_BODY_COLOR(
"96,157,255");
59 return RESULT_BODY_COLOR;
63 virtual std::shared_ptr<ModelAPI_Document>
partDoc() = 0;
67 virtual std::shared_ptr<ModelAPI_ResultPart>
original() = 0;
76 virtual std::wstring
nameInPart(
const std::shared_ptr<GeomAPI_Shape>& theShape,
82 virtual void setTrsf(std::shared_ptr<ModelAPI_Result> theThis,
83 const std::shared_ptr<GeomAPI_Trsf>& theTransformation) = 0;
90 const std::wstring& theName,
const std::string& theType,
int& theIndex) = 0;
96 virtual std::shared_ptr<GeomAPI_Shape>
selectionValue(
const int theIndex) = 0;
106 typedef std::shared_ptr<ModelAPI_ResultPart> ResultPartPtr;
Keep the transformation matrix coefficients.
Definition: GeomAPI_Trsf.h:36
The Part document, result of a creation of new part feature.
Definition: ModelAPI_ResultPart.h:36
virtual bool updateInPart(const int theIndex)=0
Updates the selection inside of the part by the selection index.
virtual std::shared_ptr< ModelAPI_ResultPart > original()=0
Returns the original part result: for transformation features results this is the original Part featu...
static const std::string & DOC_REF()
part document reference attribute
Definition: ModelAPI_ResultPart.h:49
virtual std::wstring nameInPart(const std::shared_ptr< GeomAPI_Shape > &theShape, int &theIndex)=0
Returns the name of the shape inside of the part.
virtual std::string groupName()
Returns the group identifier of this result.
Definition: ModelAPI_ResultPart.cpp:24
virtual void activate()=0
Sets this document as current and if it is not loaded yet, loads it.
virtual bool isActivated()=0
Returns true if document is activated (loaded into the memory)
virtual std::shared_ptr< GeomAPI_Trsf > summaryTrsf()=0
Returns the summary transformations of all references to the origin.
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.
virtual std::shared_ptr< GeomAPI_Shape > selectionValue(const int theIndex)=0
Returns the shape selected in the selection index.
virtual void updateShape()=0
Updates the shape-result of the part (called on Part feature execution)
static std::string group()
Returns the group identifier of this result.
Definition: ModelAPI_ResultPart.h:42
static const std::string & DEFAULT_COLOR()
default color for a result body
Definition: ModelAPI_ResultPart.h:56
virtual std::shared_ptr< ModelAPI_Document > partDoc()=0
Returns the part-document of this result.
virtual bool combineGeometrical(const int theIndex, std::wstring &theNewName)=0
Updates the selection inside of the part as a geometrical selection.
virtual void loadPart()=0
Loading the part from file.
virtual void setTrsf(std::shared_ptr< ModelAPI_Result > theThis, const std::shared_ptr< GeomAPI_Trsf > &theTransformation)=0
Applies the additional transformation of the part.
The result of a feature.
Definition: ModelAPI_Result.h:35