X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomData%2FGeomData_Point.h;h=30ac5310ff695d4ef5e15d055ce7b073e66013b9;hb=b6f308f901ef00da365c40bab25c5f03b547adf0;hp=507227f1b6970da0bdf6f75424d365e2885a8df5;hpb=4783f146b71a48c651523fcf0e12367bcf3d1fa8;p=modules%2Fshaper.git diff --git a/src/GeomData/GeomData_Point.h b/src/GeomData/GeomData_Point.h index 507227f1b..30ac5310f 100644 --- a/src/GeomData/GeomData_Point.h +++ b/src/GeomData/GeomData_Point.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: GeomData_Point.h // Created: 24 Apr 2014 // Author: Mikhail PONIKAROV @@ -8,6 +10,8 @@ #include "GeomData.h" #include "GeomDataAPI_Point.h" #include +#include +#include #include /**\class GeomData_Point @@ -18,6 +22,8 @@ class GeomData_Point : public GeomDataAPI_Point { Handle_TDataStd_RealArray myCoords; ///< X, Y and Z doubles as real array attribute [0; 2] + Handle_TDataStd_ExtStringArray myTextArray; ///< Text representation of the X, Y and Z attributes [0; 2] + Handle_TDataStd_BooleanArray myExpressionInvalidArray; ///< Flag of invalid expression of the X, Y and Z attributes [0; 2] public: /// Defines the double value GEOMDATA_EXPORT virtual void setValue(const double theX, const double theY, const double theZ); @@ -33,6 +39,24 @@ class GeomData_Point : public GeomDataAPI_Point /// Returns the 3D point GEOMDATA_EXPORT virtual std::shared_ptr pnt(); + /// Defines the text values + GEOMDATA_EXPORT virtual void setText(const std::string& theX, + const std::string& theY, + const std::string& theZ); + + /// Returns the X text value + GEOMDATA_EXPORT virtual std::string textX(); + /// Returns the Y text value + GEOMDATA_EXPORT virtual std::string textY(); + /// Returns the Z text value + GEOMDATA_EXPORT virtual std::string textZ(); + + /// Allows to set expression (text) as invalid (by the parameters listener) + GEOMDATA_EXPORT virtual void setExpressionInvalid(int, const bool theFlag); + + /// Returns true if text is invalid + GEOMDATA_EXPORT virtual bool expressionInvalid(int); + protected: /// Initializes attributes GEOMDATA_EXPORT GeomData_Point(TDF_Label& theLabel);