X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_AISObject.h;h=ad879d1dbc790d70d9735194bcb57bf6449f01ef;hb=7f873aed4bae5a98dca078209699b54276b46fce;hp=1477c5a139634265678b7b0ff10b4ee31f1da515;hpb=6ebb0f00477866099d80a8373d2b306d8ed0906e;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_AISObject.h b/src/GeomAPI/GeomAPI_AISObject.h index 1477c5a13..ad879d1db 100644 --- a/src/GeomAPI/GeomAPI_AISObject.h +++ b/src/GeomAPI/GeomAPI_AISObject.h @@ -87,11 +87,19 @@ class GEOMAPI_EXPORT GeomAPI_AISObject : public GeomAPI_Interface * \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 */ - void setColor(int theR, int theG, int theB); + 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 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; @@ -103,6 +111,15 @@ class GEOMAPI_EXPORT GeomAPI_AISObject : public GeomAPI_Interface /// Sets marker type for vertex. /// The type has to be defined according to Acpect_TypeOfMarker void setPointMarker(int theType, double theScale); + + /// Set line type of edges + /// Has to be defined according to Aspect_TypeOfLine + /// \returns true if the object value differs from the current + bool setLineStyle(int theStyle); + + /// Set transparency of the presentation (theVal = 0 ... 1) + /// \returns true if the object value differs from the current + bool setTransparensy(double theVal); }; //! Pointer on attribute object