1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModelAPI_Result.hxx
4 // Created: 07 Jul 2014
5 // Author: Mikhail PONIKAROV
7 #ifndef ModelAPI_Result_H_
8 #define ModelAPI_Result_H_
10 #include "ModelAPI_Object.h"
11 #include <GeomAPI_Shape.h>
13 class ModelAPI_Feature;
15 /**\class ModelAPI_Result
17 * \brief The result of a feature.
19 * A generic class that .
21 class ModelAPI_Result : public ModelAPI_Object
23 bool myIsConcealed; ///< the result is concealed from the data tree (referenced by other objects)
25 /// Returns true if the result is concealed from the data tree (referenced by other objects)
26 inline bool isConcealed()
31 /// Returns true if the result is concealed from the data tree (referenced by other objects)
32 inline void setIsConcealed(const bool theValue)
34 myIsConcealed = theValue;
37 /// To virtually destroy the fields of successors
38 MODELAPI_EXPORT virtual ~ModelAPI_Result();
40 /// Returns the shape-result produced by this feature (or null if no shapes)
41 MODELAPI_EXPORT virtual std::shared_ptr<GeomAPI_Shape> shape();
44 //! Pointer on feature object
45 typedef std::shared_ptr<ModelAPI_Result> ResultPtr;