1 // File: ModelAPI_ResultBody.hxx
2 // Created: 07 Jul 2014
3 // Author: Mikhail PONIKAROV
5 #ifndef ModelAPI_ResultBody_H_
6 #define ModelAPI_ResultBody_H_
8 #include "ModelAPI_Result.h"
9 #include <GeomAPI_Shape.h>
13 /**\class ModelAPI_ResultBody
15 * \brief The body (shape) result of a feature.
17 * Provides a shape that may be displayed in the viewer.
18 * May provide really huge results, so, working with this kind
19 * of result must be optimized.
21 class ModelAPI_ResultBody : public ModelAPI_Result
24 /// Returns the group identifier of this result
25 virtual std::string groupName() {
29 /// Returns the group identifier of this result
30 static std::string group()
31 {static std::string MY_GROUP = "Bodies"; return MY_GROUP;}
33 /// Stores the shape (called by the execution method).
34 virtual void store(const boost::shared_ptr<GeomAPI_Shape>& theShape) = 0;
35 /// Returns the shape-result produced by this feature
36 virtual boost::shared_ptr<GeomAPI_Shape> shape() = 0;
38 /// To virtually destroy the fields of successors
39 virtual ~ModelAPI_ResultBody() {}
42 /// Use plugin manager for features creation: this method is
43 /// defined here only for SWIG-wrapping
48 //! Pointer on feature object
49 typedef boost::shared_ptr<ModelAPI_ResultBody> ResultBodyPtr;