X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_AISObject.h;h=7e4ebc98b9ab91376d15e39d6965f2bfd5494423;hb=c57d2a7f1a57af01656e47e2e510990492404fce;hp=5a4cd78e98bc30304d48eab3c85c828d5a4572d9;hpb=87b6a30a3afb8fb32e7e43ade8d9c947d9eb1684;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_AISObject.h b/src/GeomAPI/GeomAPI_AISObject.h index 5a4cd78e9..7e4ebc98b 100644 --- a/src/GeomAPI/GeomAPI_AISObject.h +++ b/src/GeomAPI/GeomAPI_AISObject.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #ifndef GeomAPI_AISObject_H_ @@ -50,7 +49,7 @@ class GeomAPI_AISObject : public GeomAPI_Interface GEOMAPI_EXPORT void createShape(std::shared_ptr theShape); - /// Reyirns shape used for the presentation creation (can be NULL) + /// Returns shape used for the presentation creation (can be NULL) GEOMAPI_EXPORT std::shared_ptr getShape() const; /** \brief Creates AIS_LengthDimension object @@ -148,6 +147,18 @@ class GeomAPI_AISObject : public GeomAPI_Interface GEOMAPI_EXPORT double getDeflection() const; + /** \brief Assigns the transparency to the shape + * \param[in] theTransparency value of transparency + */ + GEOMAPI_EXPORT + bool setTransparency(const double theTransparency); + + /** \brief Returns deflection for the shape + * \return double value + */ + GEOMAPI_EXPORT + double getTransparency() const; + /// \return Current width of the lines of shape GEOMAPI_EXPORT double width();