// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Graphic2d_Vertex_HeaderFile #define _Graphic2d_Vertex_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Standard_ShortReal_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Quantity_Length_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif //! This class allows the creation and update of a
//! 2D point.
class Graphic2d_Vertex { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } //! Creates a point with 0.0, 0.0 coordinates.
Standard_EXPORT Graphic2d_Vertex(); //! Creates a point with , coordinates.
Standard_EXPORT Graphic2d_Vertex(const Standard_Real AX,const Standard_Real AY); //! Creates a point with , coordinates.
Standard_EXPORT Graphic2d_Vertex(const Standard_ShortReal AX,const Standard_ShortReal AY); //! Modifies the coordinates of the point .
Standard_EXPORT void SetCoord(const Quantity_Length Xnew,const Quantity_Length Ynew) ; //! Modifies the X coordinate of the point .
Standard_EXPORT void SetXCoord(const Quantity_Length Xnew) ; //! Modifies the Y coordinate of the point .
Standard_EXPORT void SetYCoord(const Quantity_Length Ynew) ; //! Returns the coordinates of the point .
Standard_EXPORT void Coord(Quantity_Length& AX,Quantity_Length& AY) const; //! Returns the X coordinates of the point .
Standard_EXPORT Quantity_Length X() const; //! Returns the Y coordinate of the point .
Standard_EXPORT Quantity_Length Y() const; //! Test if and are the the same vertex.
Standard_EXPORT Standard_Boolean IsEqual(const Graphic2d_Vertex& other) const; Standard_Boolean operator ==(const Graphic2d_Vertex& other) const { return IsEqual(other); } //! Returns the distance between and .
Standard_EXPORT static Quantity_Length Distance(const Graphic2d_Vertex& AV1,const Graphic2d_Vertex& AV2) ; protected: private: Standard_ShortReal myX; Standard_ShortReal myY; }; // other Inline functions and methods (like "C++: function call" methods) #endif