CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
OdGePosition2d Class Reference

#include <GePosition2d.h>

Inheritance diagram for OdGePosition2d:
OdGePointEnt2d OdGeEntity2d

Public Member Functions

 OdGePosition2d ()
 
 OdGePosition2d (const OdGePoint2d &point)
 
 OdGePosition2d (double x, double y)
 
 OdGePosition2d (const OdGePosition2d &source)
 
OdGePosition2dset (const OdGePoint2d &point)
 
OdGePosition2dset (double x, double y)
 
OdGePosition2doperator= (const OdGePosition2d &pos)
 
- Public Member Functions inherited from OdGePointEnt2d
OdGePoint2d point2d () const
 
 operator OdGePoint2d () const
 
OdGePointEnt2doperator= (const OdGePointEnt2d &point)
 
- Public Member Functions inherited from OdGeEntity2d
 ODRX_HEAP_OPERATORS ()
 
 ~OdGeEntity2d ()
 
bool isKindOf (OdGe::EntityId entType) const
 
OdGe::EntityId type () const
 
OdGeEntity2dcopy () const
 
OdGeEntity2doperator= (const OdGeEntity2d &entity)
 
bool operator== (const OdGeEntity2d &entity) const
 
bool operator!= (const OdGeEntity2d &entity) const
 
bool isEqualTo (const OdGeEntity2d &other, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGeEntity2dtransformBy (const OdGeMatrix2d &xfm)
 
OdGeEntity2dtranslateBy (const OdGeVector2d &translateVec)
 
OdGeEntity2drotateBy (double angle, const OdGePoint2d &basePoint=OdGePoint2d::kOrigin)
 
OdGeEntity2dmirror (const OdGeLine2d &line)
 
OdGeEntity2dscaleBy (double scaleFactor, const OdGePoint2d &basePoint=OdGePoint2d::kOrigin)
 
bool isOn (const OdGePoint2d &point, const OdGeTol &tol=OdGeContext::gTol) const
 

Additional Inherited Members

- Protected Member Functions inherited from OdGePointEnt2d
 OdGePointEnt2d ()
 
 OdGePointEnt2d (const OdGePointEnt2d &source)
 
- Protected Member Functions inherited from OdGeEntity2d
 OdGeEntity2d ()
 
 OdGeEntity2d (const OdGeEntity2d &)
 
void connectTo (OdGeEntity2dImpl *)
 

Detailed Description

This class represents points (positions) in 2D space.

Corresponding C++ library: TD_Ge

<group OdGe_Classes>

See also
<link ge_OdGePosition, Working with Points>

Definition at line 42 of file GePosition2d.h.

Constructor & Destructor Documentation

◆ OdGePosition2d() [1/4]

OdGePosition2d::OdGePosition2d ( )

Default constructor for the OdGePosition2d class.

◆ OdGePosition2d() [2/4]

OdGePosition2d::OdGePosition2d ( const OdGePoint2d point)

Constructor for the OdGePosition2d class.

Parameters
point[in] A point according to which position is set.
Remarks
The constructor constructs position object with a specified point.

◆ OdGePosition2d() [3/4]

OdGePosition2d::OdGePosition2d ( double  x,
double  y 
)

Constructor for the OdGePosition2d class.

Parameters
x[in] The X-coordinate of the position.
y[in] The Y-coordinate of the position.
Remarks
The constructor constructs position object with specified coordinate values.

◆ OdGePosition2d() [4/4]

OdGePosition2d::OdGePosition2d ( const OdGePosition2d source)

Copy constructor for the OdGePosition2d class.

Parameters
source[in] Object to be copied.

Member Function Documentation

◆ operator=()

OdGePosition2d & OdGePosition2d::operator= ( const OdGePosition2d pos)

Assignment operator for the OdGePosition2d object.

Parameters
pos[in] Position to assign.
Returns
Reference to this OdGePosition2d object.

◆ set() [1/2]

OdGePosition2d & OdGePosition2d::set ( const OdGePoint2d point)

Sets the coordinates of, and returns a reference to this point.

Parameters
point[in] A point according to which position is set.

◆ set() [2/2]

OdGePosition2d & OdGePosition2d::set ( double  x,
double  y 
)

Sets the coordinates of, and returns a reference to, this point.

Parameters
x[in] The X-coordinate of the position.
y[in] The Y-coordinate of the position.

The documentation for this class was generated from the following file: