X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_AISObject.h;h=574d39f137c26ed6688c73c77f830cc077eea80e;hb=c3abf4152cb6f2fce8a3c528f9104c0058f3cc3c;hp=a874e5d3e8440f89b26c93f2468eb6b9371e0f21;hpb=2c4f7de06341fa7af89f47ba405fe188f13e3600;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_AISObject.h b/src/GeomAPI/GeomAPI_AISObject.h index a874e5d3e..574d39f13 100644 --- a/src/GeomAPI/GeomAPI_AISObject.h +++ b/src/GeomAPI/GeomAPI_AISObject.h @@ -30,7 +30,7 @@ struct GEOMAPI_EXPORT Colors class GEOMAPI_EXPORT GeomAPI_AISObject : public GeomAPI_Interface { -public: + public: /// \brief Creation of empty AIS object GeomAPI_AISObject(); @@ -47,8 +47,7 @@ public: void createDistance(boost::shared_ptr theStartPoint, boost::shared_ptr theEndPoint, boost::shared_ptr theFlyoutPoint, - boost::shared_ptr thePlane, - double theDistance); + boost::shared_ptr thePlane, double theDistance); /** \brief Creates AIS_RadiusDimension object * \param[in] theCircle the radius is created for this circle @@ -56,8 +55,7 @@ public: * \param[in] theRadius value of the radius to be shown */ void createRadius(boost::shared_ptr theCircle, - boost::shared_ptr theFlyoutPoint, - double theRadius); + boost::shared_ptr theFlyoutPoint, double theRadius); /** \brief Creates AIS_ParallelRelation object for two lines * \param[in] theLine1 first parallel line @@ -67,8 +65,8 @@ public: */ void createParallel(boost::shared_ptr theLine1, boost::shared_ptr theLine2, - boost::shared_ptr theFlyoutPoint, - boost::shared_ptr thePlane); + boost::shared_ptr theFlyoutPoint, + boost::shared_ptr thePlane); /** \brief Creates AIS_PerpendicularRelation object for two lines * \param[in] theLine1 first parallel line @@ -77,13 +75,20 @@ public: */ void createPerpendicular(boost::shared_ptr theLine1, boost::shared_ptr theLine2, - boost::shared_ptr thePlane); + boost::shared_ptr thePlane); /** \brief Assigns the color for the shape * \param[in] theColor index of the color */ 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 + */ + void setColor(int theR, int theG, int theB); + /// \brief Assigns the width of the lines of shape void setWidth(const double& theWidth); @@ -91,5 +96,8 @@ public: bool empty() const; }; +//! Pointer on attribute object +typedef boost::shared_ptr AISObjectPtr; + #endif