Open CASCADE Technology 6.5.2
Public Member Functions | Static Public Member Functions
Graphic2d_Vertex Class Reference

This class allows the creation and update of a
2D point.

#include <Graphic2d_Vertex.hxx>

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
 Graphic2d_Vertex ()
 Creates a point with 0.0, 0.0 coordinates.

 Graphic2d_Vertex (const Standard_Real AX, const Standard_Real AY)
 Creates a point with <AX>, <AY> coordinates.

 Graphic2d_Vertex (const Standard_ShortReal AX, const Standard_ShortReal AY)
 Creates a point with <AX>, <AY> coordinates.

void SetCoord (const Quantity_Length Xnew, const Quantity_Length Ynew)
 Modifies the coordinates of the point <me>.

void SetXCoord (const Quantity_Length Xnew)
 Modifies the X coordinate of the point <me>.

void SetYCoord (const Quantity_Length Ynew)
 Modifies the Y coordinate of the point <me>.

void Coord (Quantity_Length &AX, Quantity_Length &AY) const
 Returns the coordinates of the point <me>.

Quantity_Length X () const
 Returns the X coordinates of the point <me>.

Quantity_Length Y () const
 Returns the Y coordinate of the point <me>.

Standard_Boolean IsEqual (const Graphic2d_Vertex &other) const
 Test if <me> and <other> are the the same vertex.

Standard_Boolean operator== (const Graphic2d_Vertex &other) const

Static Public Member Functions

static Quantity_Length Distance (const Graphic2d_Vertex &AV1, const Graphic2d_Vertex &AV2)
 Returns the distance between <AV1> and <AV2>.


Constructor & Destructor Documentation

Graphic2d_Vertex::Graphic2d_Vertex ( )
Graphic2d_Vertex::Graphic2d_Vertex ( const Standard_Real  AX,
const Standard_Real  AY 
)
Graphic2d_Vertex::Graphic2d_Vertex ( const Standard_ShortReal  AX,
const Standard_ShortReal  AY 
)

Member Function Documentation

void Graphic2d_Vertex::Coord ( Quantity_Length AX,
Quantity_Length AY 
) const
static Quantity_Length Graphic2d_Vertex::Distance ( const Graphic2d_Vertex AV1,
const Graphic2d_Vertex AV2 
) [static]
Standard_Boolean Graphic2d_Vertex::IsEqual ( const Graphic2d_Vertex other) const
void Graphic2d_Vertex::operator delete ( void *  anAddress) [inline]
void* Graphic2d_Vertex::operator new ( size_t  size) [inline]
void* Graphic2d_Vertex::operator new ( size_t  ,
void *  anAddress 
) [inline]
Standard_Boolean Graphic2d_Vertex::operator== ( const Graphic2d_Vertex other) const [inline]
void Graphic2d_Vertex::SetCoord ( const Quantity_Length  Xnew,
const Quantity_Length  Ynew 
)
void Graphic2d_Vertex::SetXCoord ( const Quantity_Length  Xnew)
void Graphic2d_Vertex::SetYCoord ( const Quantity_Length  Ynew)
Quantity_Length Graphic2d_Vertex::X ( ) const
Quantity_Length Graphic2d_Vertex::Y ( ) const

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines