]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelAPI/ModelAPI_Object.h
Salome HOME
add Picture import
[modules/shaper.git] / src / ModelAPI / ModelAPI_Object.h
index a905e6d2978f30e71519e9b6e40961f8ff005e5f..a8b08adc6020fcb80fe61d24be15e6b42b935f85 100644 (file)
@@ -45,6 +45,7 @@ class ModelAPI_Object: public ModelAPI_Entity
 {
   std::shared_ptr<ModelAPI_Data> myData;  ///< manager of the data model of a feature
   std::shared_ptr<ModelAPI_Document> myDoc;  ///< document this object belongs to
+  std::string textureFile = "";
  public:
 #ifdef DEBUG_NAMES
   std::wstring myName; // name of this object
@@ -100,6 +101,21 @@ class ModelAPI_Object: public ModelAPI_Entity
   /// signal.
   MODELAPI_EXPORT virtual void setDisplayed(const bool theDisplay);
 
+  MODELAPI_EXPORT bool hasTextureFile()
+  {
+    return (textureFile != "");
+  }
+
+  MODELAPI_EXPORT void setTextureFile(const std::string & theTextureFile)
+  {
+    textureFile = theTextureFile;
+  }
+
+  MODELAPI_EXPORT const std::string & getTextureFile()
+  {
+    return  textureFile;
+  }
+
  protected:
   /// This method is called just after creation of the object: it must initialize
   /// all fields, normally initialized in the constructor