Salome HOME
Sources of the application adopted to RHEL6 x64. The newest version of Eclipse IDE...
[modules/shaper.git] / src / ModelAPI / ModelAPI_ResultConstruction.h
1 // File:        ModelAPI_ResultConstruction.h
2 // Created:     07 Jul 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef ModelAPI_ResultConstruction_HeaderFile
6 #define ModelAPI_ResultConstruction_HeaderFile
7
8 #include "ModelAPI_Result.h"
9 #include <GeomAPI_Shape.h>
10
11 #include <string>
12
13 /**\class ModelAPI_ResultConstruction
14  * \ingroup DataModel
15  * \brief The construction element result of a feature.
16  *
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.
19  */
20 class ModelAPI_ResultConstruction : public ModelAPI_Result
21 {
22 public:
23   /// Returns the group identifier of this result
24   virtual std::string groupName()
25     { return group(); }
26
27   /// Returns the group identifier of this result
28   static std::string group()
29     {static std::string MY_GROUP = "Construction"; return MY_GROUP;}
30
31
32   /// Returns the shape-result produced by this feature
33   virtual boost::shared_ptr<GeomAPI_Shape>& shape() = 0;
34
35   /// Sets the result
36   virtual void setShape(boost::shared_ptr<GeomAPI_Shape> theShape) = 0;
37 };
38
39 //! Pointer on feature object
40 typedef boost::shared_ptr<ModelAPI_ResultConstruction> ResultConstructionPtr;
41
42 #endif