20 #ifndef Model_ResultConstruction_H_
21 #define Model_ResultConstruction_H_
24 #include <ModelAPI_ResultConstruction.h>
39 std::shared_ptr<ModelAPI_Feature> myOwner;
40 std::shared_ptr<GeomAPI_Shape> myShape;
43 MODEL_EXPORT
virtual void colorConfigInfo(std::string& theSection, std::string& theName,
44 std::string& theDefault);
49 MODEL_EXPORT
virtual void setShape(std::shared_ptr<GeomAPI_Shape> theShape);
51 MODEL_EXPORT
virtual std::shared_ptr<GeomAPI_Shape>
shape();
54 MODEL_EXPORT
virtual void setIsInHistory(
const bool myIsInHistory);
58 MODEL_EXPORT
virtual int facesNum(
const bool theUpdateNaming =
true);
60 MODEL_EXPORT
virtual std::shared_ptr<GeomAPI_Face>
face(
const int theIndex);
63 virtual void setFacesOrder(
const std::list<std::shared_ptr<GeomAPI_Face> >& theFaces);
68 MODEL_EXPORT
virtual void setInfinite(
const bool theInfinite);
70 MODEL_EXPORT
virtual void setIsConcealed(
const bool theValue,
const bool theForced =
false);
81 void storeShape(std::shared_ptr<GeomAPI_Shape> theShape);
Document for internal data structure of any object storage.
Definition: ModelAPI_Document.h:52
The construction element result of a feature.
Definition: ModelAPI_ResultConstruction.h:37
Manager of objects of the document.
Definition: Model_Objects.h:46
The construction element result of a feature.
Definition: Model_ResultConstruction.h:38
virtual bool isInfinite()
By default object is not infinite.
Definition: Model_ResultConstruction.cpp:205
virtual void colorConfigInfo(std::string &theSection, std::string &theName, std::string &theDefault)
Retuns the parameters of color definition in the resources config manager.
Definition: Model_ResultConstruction.cpp:99
virtual std::shared_ptr< GeomAPI_Shape > shape()
Returns the shape-result produced by this feature.
Definition: Model_ResultConstruction.cpp:119
void storeShape(std::shared_ptr< GeomAPI_Shape > theShape)
Stores shape in the data structure to allow identification it by the naming.
Definition: Model_ResultConstruction.cpp:269
virtual void setFacesOrder(const std::list< std::shared_ptr< GeomAPI_Face > > &theFaces)
Change the order of faces.
Definition: Model_ResultConstruction.cpp:379
virtual void setIsInHistory(const bool myIsInHistory)
Sets the flag that it must be displayed in history (default is true)
Definition: Model_ResultConstruction.cpp:194
virtual std::shared_ptr< GeomAPI_Face > face(const int theIndex)
if the construction result may be used as faces, this method returns face by zero based index
Definition: Model_ResultConstruction.cpp:239
virtual void setInfinite(const bool theInfinite)
Sets the flag that it is infinite.
Definition: Model_ResultConstruction.cpp:214
virtual void setIsConcealed(const bool theValue, const bool theForced=false)
The construction element may be concealed only by "delete" feature.
Definition: Model_ResultConstruction.cpp:261
virtual bool updateShape()
Updates the shape taking the current value from the data structure, returns true if update has been c...
Definition: Model_ResultConstruction.cpp:143
virtual void setShape(std::shared_ptr< GeomAPI_Shape > theShape)
Sets the result.
Definition: Model_ResultConstruction.cpp:107
virtual int facesNum(const bool theUpdateNaming=true)
if the construction result may be used as faces, this method returns not zero number of faces
Definition: Model_ResultConstruction.cpp:225
Model_ResultConstruction()
Makes a body on the given feature.
Definition: Model_ResultConstruction.cpp:181
virtual bool isInHistory()
By default object is displayed in the object browser.
Definition: Model_ResultConstruction.cpp:185