OCC Main Page | ModelingData | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingData
TKG2d
Geom2d


Geom2d_CartesianPoint Class Reference

Describes a point in 2D space. A
Geom2d_CartesianPoint is defined by a gp_Pnt2d
point, with its two Cartesian coordinates X and Y.
.

#include <Geom2d_CartesianPoint.hxx>

Inheritance diagram for Geom2d_CartesianPoint:

Inheritance graph
[legend]

Public Member Functions

Standard_EXPORT Geom2d_CartesianPoint (const gp_Pnt2d &P)
 Returns a persistent copy of P.
.
Standard_EXPORT Geom2d_CartesianPoint (const Standard_Real X, const Standard_Real Y)
Standard_EXPORT void SetCoord (const Standard_Real X, const Standard_Real Y)
 Set <me> to X, Y coordinates.
.
Standard_EXPORT void SetPnt2d (const gp_Pnt2d &P)
 Set <me> to P.X(), P.Y() coordinates.
.
Standard_EXPORT void SetX (const Standard_Real X)
 Changes the X coordinate of me.
.
Standard_EXPORT void SetY (const Standard_Real Y)
 Changes the Y coordinate of me.
.
Standard_EXPORT void Coord (Standard_Real &X, Standard_Real &Y) const
 Returns the coordinates of <me>.
.
Standard_EXPORT gp_Pnt2d Pnt2d () const
 Returns a non persistent cartesian point with
the same coordinates as <me>.
-C++: return const&
.
Standard_EXPORT Standard_Real X () const
 Returns the X coordinate of <me>.
.
Standard_EXPORT Standard_Real Y () const
 Returns the Y coordinate of <me>.
.
Standard_EXPORT void Transform (const gp_Trsf2d &T)
 Transformation of a geometric object. This tansformation
can be a translation, a rotation, a symmetry, a scaling
or a complex transformation obtained by combination of
the previous elementaries transformations.
(see class Transformation of the package Geom2d).
//! The following transformations have the same properties
as the previous ones but they don't modified the object
itself. A copy of the object is returned.
.
Standard_EXPORT Handle_Geom2d_Geometry Copy () const
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const

Private Attributes

gp_Pnt2d gpPnt2d

Constructor & Destructor Documentation

Standard_EXPORT Geom2d_CartesianPoint::Geom2d_CartesianPoint const gp_Pnt2d &  P  ) 
 

Standard_EXPORT Geom2d_CartesianPoint::Geom2d_CartesianPoint const Standard_Real  X,
const Standard_Real  Y
 


Member Function Documentation

Standard_EXPORT void Geom2d_CartesianPoint::Coord Standard_Real &  X,
Standard_Real &  Y
const [virtual]
 

Implements Geom2d_Point.

Standard_EXPORT Handle_Geom2d_Geometry Geom2d_CartesianPoint::Copy  )  const [virtual]
 

Implements Geom2d_Geometry.

Standard_EXPORT const Geom2d_CartesianPoint::Handle Standard_Type   )  const
 

Reimplemented from Geom2d_Point.

Standard_EXPORT gp_Pnt2d Geom2d_CartesianPoint::Pnt2d  )  const [virtual]
 

Implements Geom2d_Point.

Standard_EXPORT void Geom2d_CartesianPoint::SetCoord const Standard_Real  X,
const Standard_Real  Y
 

Standard_EXPORT void Geom2d_CartesianPoint::SetPnt2d const gp_Pnt2d &  P  ) 
 

Standard_EXPORT void Geom2d_CartesianPoint::SetX const Standard_Real  X  ) 
 

Standard_EXPORT void Geom2d_CartesianPoint::SetY const Standard_Real  Y  ) 
 

Standard_EXPORT void Geom2d_CartesianPoint::Transform const gp_Trsf2d &  T  )  [virtual]
 

Implements Geom2d_Geometry.

Standard_EXPORT Standard_Real Geom2d_CartesianPoint::X  )  const [virtual]
 

Implements Geom2d_Point.

Standard_EXPORT Standard_Real Geom2d_CartesianPoint::Y  )  const [virtual]
 

Implements Geom2d_Point.


Field Documentation

gp_Pnt2d Geom2d_CartesianPoint::gpPnt2d [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:22:46 2008 for OpenCASCADE by  doxygen 1.4.1