X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultConstruction.h;h=84f048f6d3a98c27228084747208a29fd61cee01;hb=55c9a4558cec9e3e781a0e0bc66f9d0bf418a611;hp=2fb81219d9b9989271a16aa03e03c3a78b6157d0;hpb=51946078419dc8b23701496c09e689c8abdfc897;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultConstruction.h b/src/Model/Model_ResultConstruction.h index 2fb81219d..84f048f6d 100644 --- a/src/Model/Model_ResultConstruction.h +++ b/src/Model/Model_ResultConstruction.h @@ -9,6 +9,7 @@ #include "Model.h" #include +#include /**\class Model_ResultConstruction * \ingroup DataModel @@ -21,6 +22,8 @@ class Model_ResultConstruction : public ModelAPI_ResultConstruction { std::shared_ptr myOwner; ///< owner of this result std::shared_ptr myShape; ///< shape of this result created "on the fly" + bool myFacesUpToDate; ///< is true if faces in myuFaces are computed and up to date + std::vector > myFaces; ///< stores the up to date faces if they exist bool myIsInHistory; public: /// default color for a result construction @@ -33,6 +36,10 @@ class Model_ResultConstruction : public ModelAPI_ResultConstruction /// Request for initialization of data model of the result: adding all attributes virtual void initAttributes(); + // Retuns the parameters of color definition in the resources config manager + MODEL_EXPORT virtual void colorConfigInfo(std::string& theSection, std::string& theName, + std::string& theDefault); + /// By default object is displayed in the object browser. MODEL_EXPORT virtual bool isInHistory() { @@ -47,6 +54,11 @@ class Model_ResultConstruction : public ModelAPI_ResultConstruction /// Sets the flag that it must be displayed in history (default is true) MODEL_EXPORT virtual void setIsInHistory(const bool myIsInHistory); + /// if the construction result may be used as faces, this method returns not zero number of faces + MODEL_EXPORT virtual int facesNum(); + /// if the construction result may be used as faces, this method returns face by zero based index + MODEL_EXPORT virtual std::shared_ptr face(const int theIndex); + protected: /// Makes a body on the given feature Model_ResultConstruction();