X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModelAPI%2FModelAPI_ResultCompSolid.h;h=678594277e0cb408e3f2f4838bdf09647e4b6787;hb=5303dd1fa6ad4411e38f8d36103c72109957e05c;hp=4a0efd6fc6fbbcf79ff1fefc17121961afd6b136;hpb=5bd71db89b7a145e0e1e51b03361e7ed400b961a;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_ResultCompSolid.h b/src/ModelAPI/ModelAPI_ResultCompSolid.h index 4a0efd6fc..678594277 100755 --- a/src/ModelAPI/ModelAPI_ResultCompSolid.h +++ b/src/ModelAPI/ModelAPI_ResultCompSolid.h @@ -17,26 +17,11 @@ * * Provides a conainer of body result that may be displayed in the viewer. */ -class ModelAPI_ResultCompSolid : public ModelAPI_Result +class ModelAPI_ResultCompSolid : public ModelAPI_ResultBody { public: MODELAPI_EXPORT virtual ~ModelAPI_ResultCompSolid(); /// Returns the group identifier of this result - MODELAPI_EXPORT virtual std::string groupName(); - - /// Returns the group identifier of this result - inline static std::string group() - { - static std::string MY_GROUP = "Bodies"; - return MY_GROUP; - } - - /// Returns the feature is disabled or not. - MODELAPI_EXPORT virtual bool isDisabled() const; - - /// Adds result to the sketch and to its document - /// \param theIndex an index of the created body result in the compsolid - virtual std::shared_ptr addResult(const int theIndex) = 0; /// Returns the number of sub-elements virtual int numberOfSubs(bool forTree = false) const = 0; @@ -45,15 +30,12 @@ public: virtual std::shared_ptr subResult(const int theIndex, bool forTree = false) const = 0; - /// Returns the sub-feature unique identifier in this composite feature by zero-base index - //virtual int subResultId(const int theIndex) const = 0; - /// Returns true if feature or reuslt belong to this composite feature as subs virtual bool isSub(ObjectPtr theObject) const = 0; - /// This method to inform that sub-feature is removed and must be removed from the internal data - /// structures of the owner (the remove from the document will be done outside just after) - virtual void removeResult(std::shared_ptr theResult) = 0; + /// Set displayed flag to the result and all sub results + /// \param theDisplay a boolean value + MODELAPI_EXPORT virtual void setDisplayed(const bool theDisplay); protected: };