Salome HOME
updated copyright message
[modules/shaper.git] / src / ModelAPI / ModelAPI_Object.h
index 52b7bffa0b4fe5196d9dde79bbf8a10bf6184481..46c3f34f86373d2c2e39a169b6538ae3a842dcab 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -47,7 +47,7 @@ class ModelAPI_Object: public ModelAPI_Entity
   std::shared_ptr<ModelAPI_Document> myDoc;  ///< document this object belongs to
  public:
 #ifdef DEBUG_NAMES
-  std::string myName; // name of this object
+  std::wstring myName; // name of this object
 #endif
   /// By default object is displayed in the object browser.
   MODELAPI_EXPORT virtual bool isInHistory();
@@ -77,8 +77,9 @@ class ModelAPI_Object: public ModelAPI_Entity
   virtual bool isDisabled() = 0;
 
   /// Returns the parameters of color definition in the resources config manager
-  virtual void colorConfigInfo(std::string& theSection, std::string& theName,
-                               std::string& theDefault) {}
+  virtual void colorConfigInfo(std::string& /*theSection*/,
+                               std::string& /*theName*/,
+                               std::string& /*theDefault*/) {}
 
   /// Called on change of any argument-attribute of this object
   /// \param theID identifier of changed attribute
@@ -99,6 +100,11 @@ class ModelAPI_Object: public ModelAPI_Entity
   /// signal.
   MODELAPI_EXPORT virtual void setDisplayed(const bool theDisplay);
 
+  MODELAPI_EXPORT virtual bool hasTexture()
+  {
+    return false;
+  }
+
  protected:
   /// This method is called just after creation of the object: it must initialize
   /// all fields, normally initialized in the constructor