20 #ifndef GeomData_Point_H_
21 #define GeomData_Point_H_
24 #include "GeomDataAPI_Point.h"
26 #include <TDF_Label.hxx>
36 enum { NUM_COMPONENTS = 3 };
38 std::shared_ptr<ModelAPI_ExpressionDouble> myExpression[NUM_COMPONENTS];
41 GEOMDATA_EXPORT
virtual void setValue(
const double theX,
const double theY,
const double theZ);
43 GEOMDATA_EXPORT
virtual void setValue(
const std::shared_ptr<GeomAPI_Pnt>& thePoint);
46 GEOMDATA_EXPORT
virtual double x()
const;
48 GEOMDATA_EXPORT
virtual double y()
const;
50 GEOMDATA_EXPORT
virtual double z()
const;
52 GEOMDATA_EXPORT
void setX(
const double theX);
54 GEOMDATA_EXPORT
void setY(
const double theY);
56 GEOMDATA_EXPORT
void setZ(
const double theZ);
59 GEOMDATA_EXPORT
virtual std::shared_ptr<GeomAPI_Pnt>
pnt();
62 GEOMDATA_EXPORT
virtual
66 GEOMDATA_EXPORT
virtual void setText(
const std::wstring& theX,
67 const std::wstring& theY,
68 const std::wstring& theZ);
70 GEOMDATA_EXPORT
virtual void setTextX(
const std::wstring& theX);
72 GEOMDATA_EXPORT
virtual void setTextY(
const std::wstring& theY);
74 GEOMDATA_EXPORT
virtual void setTextZ(
const std::wstring& theZ);
77 GEOMDATA_EXPORT
virtual std::wstring
textX();
79 GEOMDATA_EXPORT
virtual std::wstring
textY();
81 GEOMDATA_EXPORT
virtual std::wstring
textZ();
90 GEOMDATA_EXPORT
virtual void setExpressionError(
int theComponent,
const std::string& theError);
97 const std::set<std::wstring>& theUsedParameters);
100 GEOMDATA_EXPORT
virtual std::set<std::wstring>
usedParameters(
int theComponent)
const;
Attribute that contains 3D point coordinates.
Definition: GeomDataAPI_Point.h:36
Attribute that contains 3D point.
Definition: GeomData_Point.h:35
virtual std::wstring textX()
Returns the X text value.
Definition: GeomData_Point.cpp:179
virtual std::wstring textZ()
Returns the Z text value.
Definition: GeomData_Point.cpp:187
virtual bool expressionInvalid(int)
Returns true if text is invalid.
Definition: GeomData_Point.cpp:199
void setX(const double theX)
Defines the X coordinate value.
Definition: GeomData_Point.cpp:82
virtual void setExpressionError(int theComponent, const std::string &theError)
Allows to set expression (text) error (by the parameters listener)
Definition: GeomData_Point.cpp:205
GeomData_Point()
Initializes attributes.
Definition: GeomData_Point.cpp:31
virtual double y() const
Returns the Y double value.
Definition: GeomData_Point.cpp:72
virtual std::wstring textY()
Returns the Y text value.
Definition: GeomData_Point.cpp:183
virtual void reinit()
Reinitializes the internal state of the attribute (may be needed on undo/redo, abort,...
Definition: GeomData_Point.cpp:36
virtual void setExpressionInvalid(int, const bool theFlag)
Allows to set expression (text) as invalid (by the parameters listener)
Definition: GeomData_Point.cpp:192
virtual void setTextY(const std::wstring &theY)
Defines the Y text value.
Definition: GeomData_Point.cpp:151
virtual std::string expressionError(int theComponent)
Returns an expression error.
Definition: GeomData_Point.cpp:212
virtual void setTextZ(const std::wstring &theZ)
Defines the Z text value.
Definition: GeomData_Point.cpp:165
void setZ(const double theZ)
Defines the Z coordinate value.
Definition: GeomData_Point.cpp:104
virtual std::set< std::wstring > usedParameters(int theComponent) const
Returns the used parameters.
Definition: GeomData_Point.cpp:225
virtual void setCalculatedValue(const double theX, const double theY, const double theZ)
Defines the calculated double value.
Definition: GeomData_Point.cpp:45
virtual double z() const
Returns the Z double value.
Definition: GeomData_Point.cpp:77
virtual std::shared_ptr< GeomAPI_Pnt > pnt()
Returns the 3D point.
Definition: GeomData_Point.cpp:117
virtual void setTextX(const std::wstring &theX)
Defines the X text value.
Definition: GeomData_Point.cpp:137
void setY(const double theY)
Defines the Y coordinate value.
Definition: GeomData_Point.cpp:93
virtual void setText(const std::wstring &theX, const std::wstring &theY, const std::wstring &theZ)
Defines the text values.
Definition: GeomData_Point.cpp:123
virtual void setValue(const double theX, const double theY, const double theZ)
Defines the double value.
Definition: GeomData_Point.cpp:55
virtual void setUsedParameters(int theComponent, const std::set< std::wstring > &theUsedParameters)
Defines the used parameters.
Definition: GeomData_Point.cpp:218
virtual double x() const
Returns the X double value.
Definition: GeomData_Point.cpp:67
Expression for calculated double values.
Definition: ModelAPI_Expression.h:101
General object of the application that allows to get/set attributes from the document and compute res...
Definition: Model_Data.h:62