1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: Model_ResultBody.h
4 // Created: 08 Jul 2014
5 // Author: Mikhail PONIKAROV
7 #ifndef Model_ResultBody_H_
8 #define Model_ResultBody_H_
11 #include <ModelAPI_ResultBody.h>
12 //#include <GeomAlgoAPI_MakeShape.h>
13 //#include <GeomAPI_DataMapOfShapeShape.h>
16 //class TNaming_Builder;
18 /**\class Model_ResultBody
20 * \brief The body (shape) result of a feature.
22 * Provides a shape that may be displayed in the viewer.
23 * May provide really huge results, so, working with this kind
24 * of result must be optimized.
26 class Model_ResultBody : public ModelAPI_ResultBody
28 /// builders that tores the naming history: one per label to allow store several shapes to one
29 /// label; index in vector corresponds to the label tag
30 //std::vector<TNaming_Builder*> myBuilders;
32 /// Request for initialization of data model of the result: adding all attributes
33 virtual void initAttributes();
35 /// Returns the parameters of color definition in the resources config manager
36 MODEL_EXPORT virtual void colorConfigInfo(std::string& theSection, std::string& theName,
37 std::string& theDefault);
39 /// Disables the result body: keeps the resulting shape as selection, but erases the underlaying
40 /// naming data structure if theFlag if false. Or restores everything on theFlag is true.
41 MODEL_EXPORT virtual bool setDisabled(std::shared_ptr<ModelAPI_Result> theThis,
44 /// Returns true if the latest modification of this body in the naming history
45 // is equal to the given shape
46 MODEL_EXPORT virtual bool isLatestEqual(const std::shared_ptr<GeomAPI_Shape>& theShape);
48 /// Removes the stored builders
49 MODEL_EXPORT virtual ~Model_ResultBody() {};
52 /// Makes a body on the given feature
55 friend class Model_Objects;