X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_AISObject.h;h=06bc2e9050705e5158656a341c5d1cbdf55627c2;hb=aa48919bb1ecb71f07d9ac5fcd1bad170e7ed547;hp=a76016bd6d738989f04238cb02037f5b291f17bb;hpb=7bf19255421b34594c7b0a76d0ce28166d0ce895;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_AISObject.h b/src/GeomAPI/GeomAPI_AISObject.h index a76016bd6..06bc2e905 100644 --- a/src/GeomAPI/GeomAPI_AISObject.h +++ b/src/GeomAPI/GeomAPI_AISObject.h @@ -28,6 +28,8 @@ class GEOMAPI_EXPORT GeomAPI_AISObject : public GeomAPI_Interface /// \brief Creation of empty AIS object GeomAPI_AISObject(); + ~GeomAPI_AISObject(); + /// \brief Creates AIS_Shape object using specified shape void createShape(std::shared_ptr theShape); @@ -84,14 +86,22 @@ class GEOMAPI_EXPORT GeomAPI_AISObject : public GeomAPI_Interface void setColor(const int& theColor); /** \brief Assigns the color for the shape + * \param[in] theR value of the red component + * \param[in] theG value of the green component + * \param[in] theB value of the blue component + * \returns true if the presentation color is changed + */ + bool setColor(int theR, int theG, int theB); + + /** \brief Returns the color for the shape * \param[in] theR value of the red component * \param[in] theG value of the green component * \param[in] theB value of the blue component */ - void setColor(int theR, int theG, int theB); + void getColor(int& theR, int& theG, int& theB); /// \brief Assigns the width of the lines of shape - void setWidth(const double& theWidth); + bool setWidth(const double& theWidth); /// \brief Checks if the object is empty bool empty() const; @@ -106,10 +116,12 @@ class GEOMAPI_EXPORT GeomAPI_AISObject : public GeomAPI_Interface /// Set line type of edges /// Has to be defined according to Aspect_TypeOfLine - void setLineStyle(int theStyle); + /// \returns true if the object value differs from the current + bool setLineStyle(int theStyle); /// Set transparency of the presentation (theVal = 0 ... 1) - void setTransparensy(double theVal); + /// \returns true if the object value differs from the current + bool setTransparensy(double theVal); }; //! Pointer on attribute object