X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FGeomAPI%2FGeomAPI_AISObject.h;h=574d39f137c26ed6688c73c77f830cc077eea80e;hb=c3abf4152cb6f2fce8a3c528f9104c0058f3cc3c;hp=d3f23859186552521fabc6af4cd2e5cb3af3e5f1;hpb=6b437d84d92c29ba8c2c843735fa2feb4f0664c7;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_AISObject.h b/src/GeomAPI/GeomAPI_AISObject.h index d3f238591..574d39f13 100644 --- a/src/GeomAPI/GeomAPI_AISObject.h +++ b/src/GeomAPI/GeomAPI_AISObject.h @@ -2,8 +2,8 @@ // Created: 25 Jun 2014 // Author: Artem ZHIDKOV -#ifndef GeomAPI_AISObject_HeaderFile -#define GeomAPI_AISObject_HeaderFile +#ifndef GeomAPI_AISObject_H_ +#define GeomAPI_AISObject_H_ #include @@ -18,6 +18,9 @@ class GeomAPI_Shape; struct GEOMAPI_EXPORT Colors { static int COLOR_BROWN; + static int COLOR_RED; + static int COLOR_GREEN; + static int COLOR_BLUE; }; /** \class GeomAPI_AISObject @@ -27,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(); @@ -44,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 @@ -53,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 @@ -64,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 @@ -74,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); @@ -88,5 +96,8 @@ public: bool empty() const; }; +//! Pointer on attribute object +typedef boost::shared_ptr AISObjectPtr; + #endif