Salome HOME
Fix for stable processing of mirror constraint (eliminating SolveSpace problems)
[modules/shaper.git] / src / GeomAPI / GeomAPI_AISObject.h
index ce2d7e0d494232ef910948fb28d0ffed96db4eb0..ad879d1dbc790d70d9735194bcb57bf6449f01ef 100644 (file)
@@ -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;
@@ -106,7 +114,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)
+  /// \returns true if the object value differs from the current
+  bool setTransparensy(double theVal);
 };
 
 //! Pointer on attribute object