20 #ifndef ModelAPI_ResultConstruction_H_
21 #define ModelAPI_ResultConstruction_H_
23 #include "ModelAPI_Result.h"
24 #include <GeomAPI_Shape.h>
25 #include <GeomAPI_Face.h>
40 MODELAPI_EXPORT
virtual std::string
groupName();
43 inline static std::string
group()
45 static std::string MY_GROUP =
"Construction";
52 static const std::string RESULT_CONSTRUCTION_COLOR(
"120,120,120");
53 return RESULT_CONSTRUCTION_COLOR;
59 static const std::string COLOR_NAME(
"result_construction_color");
70 virtual void setShape(std::shared_ptr<GeomAPI_Shape> theShape) = 0;
81 virtual int facesNum(
const bool theUpdateNaming =
true) = 0;
83 virtual std::shared_ptr<GeomAPI_Face>
face(
const int theIndex) = 0;
85 virtual void setFacesOrder(
const std::list<std::shared_ptr<GeomAPI_Face> >& theFaces) = 0;
94 typedef std::shared_ptr<ModelAPI_ResultConstruction> ResultConstructionPtr;
virtual bool isInHistory()
By default object is displayed in the object browser.
Definition: ModelAPI_Object.cpp:26
The construction element result of a feature.
Definition: ModelAPI_ResultConstruction.h:37
virtual bool isInfinite()=0
By default object is not infinite.
virtual int facesNum(const bool theUpdateNaming=true)=0
if the construction result may be used as faces, this method returns not zero number of faces
static std::string group()
Returns the group identifier of this result.
Definition: ModelAPI_ResultConstruction.h:43
virtual void setShape(std::shared_ptr< GeomAPI_Shape > theShape)=0
Sets the result.
virtual void setFacesOrder(const std::list< std::shared_ptr< GeomAPI_Face > > &theFaces)=0
Change the order of faces.
virtual std::shared_ptr< GeomAPI_Face > face(const int theIndex)=0
if the construction result may be used as faces, this method returns face by zero based index
static const std::string DEFAULT_DEFLECTION()
default deflection for a result construction
Definition: ModelAPI_ResultConstruction.h:64
virtual bool updateShape()=0
Updates the shape taking the current value from the data structure, returns true if update has been c...
virtual void setIsInHistory(const bool isInHistory)=0
Sets the flag that it must be displayed in history (default is true)
virtual std::string groupName()
Returns the group identifier of this result.
Definition: ModelAPI_ResultConstruction.cpp:23
virtual void setInfinite(const bool theInfinite)=0
Sets the flag that it is infinite.
static const std::string & DEFAULT_COLOR()
default color for a result construction
Definition: ModelAPI_ResultConstruction.h:50
static const std::string & RESULT_COLOR_NAME()
default color for a result construction
Definition: ModelAPI_ResultConstruction.h:57
The result of a feature.
Definition: ModelAPI_Result.h:35