1 // File: ModelAPI_ResultConstruction.h
2 // Created: 07 Jul 2014
3 // Author: Mikhail PONIKAROV
5 #ifndef ModelAPI_ResultConstruction_H_
6 #define ModelAPI_ResultConstruction_H_
8 #include "ModelAPI_Result.h"
9 #include <GeomAPI_Shape.h>
13 /**\class ModelAPI_ResultConstruction
15 * \brief The construction element result of a feature.
17 * Provides a shape that may be displayed in the viewer.
18 * Intermediate, light result that in many cases produces a result on the fly.
20 class ModelAPI_ResultConstruction : public ModelAPI_Result
23 /// Returns the group identifier of this result
24 virtual std::string groupName()
27 /// Returns the group identifier of this result
28 static std::string group()
29 {static std::string MY_GROUP = "Construction"; return MY_GROUP;}
32 /// Returns the shape-result produced by this feature
33 virtual boost::shared_ptr<GeomAPI_Shape>& shape() = 0;
36 virtual void setShape(boost::shared_ptr<GeomAPI_Shape> theShape) = 0;
38 /// Sets the flag that it must be displayed in history (default is true)
39 virtual void setIsInHistory(const bool isInHistory) = 0;
42 //! Pointer on feature object
43 typedef boost::shared_ptr<ModelAPI_ResultConstruction> ResultConstructionPtr;