20 #ifndef GeomDataAPI_Point_H_
21 #define GeomDataAPI_Point_H_
23 #include "GeomDataAPI.h"
24 #include <ModelAPI_Attribute.h>
39 GEOMDATAAPI_EXPORT
virtual
40 void setValue(
const double theX,
const double theY,
const double theZ) = 0;
42 GEOMDATAAPI_EXPORT
virtual void setValue(
const std::shared_ptr<GeomAPI_Pnt>& thePoint) = 0;
45 GEOMDATAAPI_EXPORT
virtual double x()
const = 0;
47 GEOMDATAAPI_EXPORT
virtual double y()
const = 0;
49 GEOMDATAAPI_EXPORT
virtual double z()
const = 0;
51 GEOMDATAAPI_EXPORT
virtual std::shared_ptr<GeomAPI_Pnt>
pnt() = 0;
54 GEOMDATAAPI_EXPORT
virtual
58 GEOMDATAAPI_EXPORT
virtual void setX(
const double theX) = 0;
60 GEOMDATAAPI_EXPORT
virtual void setY(
const double theY) = 0;
62 GEOMDATAAPI_EXPORT
virtual void setZ(
const double theZ) = 0;
65 GEOMDATAAPI_EXPORT
virtual void setText(
const std::wstring& theX,
66 const std::wstring& theY,
67 const std::wstring& theZ) = 0;
70 GEOMDATAAPI_EXPORT
virtual void setTextX(
const std::wstring& theX) = 0;
72 GEOMDATAAPI_EXPORT
virtual void setTextY(
const std::wstring& theY) = 0;
74 GEOMDATAAPI_EXPORT
virtual void setTextZ(
const std::wstring& theZ) = 0;
77 GEOMDATAAPI_EXPORT
virtual std::wstring
textX() = 0;
79 GEOMDATAAPI_EXPORT
virtual std::wstring
textY() = 0;
81 GEOMDATAAPI_EXPORT
virtual std::wstring
textZ() = 0;
96 GEOMDATAAPI_EXPORT
virtual
104 const std::set<std::wstring>& theUsedParameters) = 0;
107 GEOMDATAAPI_EXPORT
virtual std::set<std::wstring>
usedParameters(
int theComponent)
const = 0;
112 return std::string(
"Point");
125 typedef std::shared_ptr<GeomDataAPI_Point> AttributePointPtr;
3D point defined by three coordinates
Definition: GeomAPI_Pnt.h:38
Attribute that contains 3D point coordinates.
Definition: GeomDataAPI_Point.h:36
virtual std::string attributeType()
Returns the type of this class of attributes, not static method.
Definition: GeomDataAPI_Point.cpp:22
virtual void setY(const double theY)=0
Defines the Y coordinate value.
virtual std::wstring textZ()=0
Returns the text value for Z.
GeomDataAPI_Point()
Objects are created for features automatically.
Definition: GeomDataAPI_Point.cpp:27
virtual void setTextX(const std::wstring &theX)=0
Defines the X text value.
virtual std::string expressionError(int theComponent)=0
Returns an expression error.
virtual std::wstring textX()=0
Returns the text value for X.
virtual void setCalculatedValue(const double theX, const double theY, const double theZ)=0
Defines the calculated double value.
virtual void setValue(const std::shared_ptr< GeomAPI_Pnt > &thePoint)=0
Defines the point.
virtual std::wstring textY()=0
Returns the text value for Y.
virtual double x() const =0
Returns the X double value.
virtual void setTextZ(const std::wstring &theZ)=0
Defines the Z text value.
virtual void setX(const double theX)=0
Defines the X coordinate value.
virtual std::shared_ptr< GeomAPI_Pnt > pnt()=0
Returns the 3D point.
virtual void setExpressionInvalid(int theComponent, const bool theFlag)=0
Allows to set expression (text) as invalid (by the parameters listener)
virtual void setValue(const double theX, const double theY, const double theZ)=0
Defines the double value.
virtual double y() const =0
Returns the Y double value.
virtual double z() const =0
Returns the Z double value.
virtual std::set< std::wstring > usedParameters(int theComponent) const =0
Returns the used parameters.
virtual void setExpressionError(int theComponent, const std::string &theError)=0
Allows to set expression (text) error (by the parameters listener)
virtual void setUsedParameters(int theComponent, const std::set< std::wstring > &theUsedParameters)=0
Defines the used parameters.
PointComponent
Point component (x,y,z)
Definition: GeomDataAPI_Point.h:84
virtual void setText(const std::wstring &theX, const std::wstring &theY, const std::wstring &theZ)=0
Defines the text values.
virtual void setZ(const double theZ)=0
Defines the Z coordinate value.
static std::string typeId()
Returns the type of this class of attributes.
Definition: GeomDataAPI_Point.h:110
virtual bool expressionInvalid(int theComponent)=0
Returns true if text is invalid.
virtual void setTextY(const std::wstring &theY)=0
Defines the Y text value.
Generic attribute of the Object.
Definition: ModelAPI_Attribute.h:34