X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Object.h;h=46c3f34f86373d2c2e39a169b6538ae3a842dcab;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=52b7bffa0b4fe5196d9dde79bbf8a10bf6184481;hpb=c4eab94a20a0d93100549a210582d46409fec1cc;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Object.h b/src/ModelAPI/ModelAPI_Object.h index 52b7bffa0..46c3f34f8 100644 --- a/src/ModelAPI/ModelAPI_Object.h +++ b/src/ModelAPI/ModelAPI_Object.h @@ -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 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