1 // File: ModelAPI_Result.hxx
2 // Created: 07 Jul 2014
3 // Author: Mikhail PONIKAROV
5 #ifndef ModelAPI_Result_H_
6 #define ModelAPI_Result_H_
8 #include "ModelAPI_Object.h"
9 #include "GeomAPI_Shape.h"
11 class ModelAPI_Feature;
13 /**\class ModelAPI_Result
15 * \brief The result of a feature.
17 * A generic class that .
19 class ModelAPI_Result : public ModelAPI_Object
21 bool myIsConcealed; ///< the result is concealed from the data tree (referenced by other objects)
23 /// Returns true if the result is concealed from the data tree (referenced by other objects)
24 inline bool isConcealed() {return myIsConcealed;}
26 /// Returns true if the result is concealed from the data tree (referenced by other objects)
27 inline void setIsConcealed(const bool theValue) {myIsConcealed = theValue;}
29 /// To virtually destroy the fields of successors
30 virtual ~ModelAPI_Result()
34 /// Returns the shape-result produced by this feature (or null if no shapes)
35 virtual std::shared_ptr<GeomAPI_Shape> shape() {return std::shared_ptr<GeomAPI_Shape>();}
38 //! Pointer on feature object
39 typedef std::shared_ptr<ModelAPI_Result> ResultPtr;