1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModelAPI_ResultConstruction.h
4 // Created: 07 Jul 2014
5 // Author: Mikhail PONIKAROV
7 #ifndef ModelAPI_ResultConstruction_H_
8 #define ModelAPI_ResultConstruction_H_
10 #include "ModelAPI_Result.h"
11 #include <GeomAPI_Shape.h>
15 /**\class ModelAPI_ResultConstruction
17 * \brief The construction element result of a feature.
19 * Provides a shape that may be displayed in the viewer.
20 * Intermediate, light result that in many cases produces a result on the fly.
22 class ModelAPI_ResultConstruction : public ModelAPI_Result
25 /// Returns the group identifier of this result
26 virtual std::string groupName()
31 /// Returns the group identifier of this result
32 static std::string group()
34 static std::string MY_GROUP = "Construction";
39 virtual void setShape(std::shared_ptr<GeomAPI_Shape> theShape) = 0;
41 /// Sets the flag that it must be displayed in history (default is true)
42 virtual void setIsInHistory(const bool isInHistory) = 0;
45 //! Pointer on feature object
46 typedef std::shared_ptr<ModelAPI_ResultConstruction> ResultConstructionPtr;