CFx SDK Documentation  2022 SP0
Public Member Functions | Static Public Member Functions | List of all members
OdDbGeoCoordinateSystemTransformer Class Referenceabstract

#include <OdDbGeoCoordinateSystem.h>

Inheritance diagram for OdDbGeoCoordinateSystemTransformer:
OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdDbGeoCoordinateSystemTransformer)
 
 OdDbGeoCoordinateSystemTransformer ()
 
virtual ~OdDbGeoCoordinateSystemTransformer ()
 
virtual OdResult getSourceCoordinateSystemId (OdString &sourceCoordSysId) const =0
 
virtual OdResult getTargetCoordinateSystemId (OdString &targetCoordSysId) const =0
 
virtual OdResult transformPoint (const OdGePoint3d &pointIn, OdGePoint3d &pointOut) const =0
 
virtual OdResult transformPoints (const OdGePoint3dArray &pointsIn, OdGePoint3dArray &pointsOut) const =0
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Static Public Member Functions

static OdResult transformPoint (const OdString &sourceCoordSysId, const OdString &targetCoordSysId, const OdGePoint3d &pointIn, OdGePoint3d &pointOut)
 
static OdResult transformPoints (const OdString &sourceCoordSysId, const OdString &targetCoordSysId, const OdGePoint3dArray &pointsIn, OdGePoint3dArray &pointsOut)
 
static OdResult create (const OdString &sourceCoordSysId, const OdString &targetCoordSysId, OdDbGeoCoordinateSystemTransformerPtr &pCoordSysTransformer)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

This abstract class represents a transformer object which is used to transform points from the source CRS to the target CRS.

<group OdDb_Classes>

Definition at line 481 of file OdDbGeoCoordinateSystem.h.

Constructor & Destructor Documentation

◆ OdDbGeoCoordinateSystemTransformer()

OdDbGeoCoordinateSystemTransformer::OdDbGeoCoordinateSystemTransformer ( )

Default constructor.

◆ ~OdDbGeoCoordinateSystemTransformer()

virtual OdDbGeoCoordinateSystemTransformer::~OdDbGeoCoordinateSystemTransformer ( )
virtual

Virtual destructor.

Member Function Documentation

◆ create()

static OdResult OdDbGeoCoordinateSystemTransformer::create ( const OdString sourceCoordSysId,
const OdString targetCoordSysId,
OdDbGeoCoordinateSystemTransformerPtr pCoordSysTransformer 
)
static

Creates a new OdDbGeoCoordinateSystemTransformer object from the source CRS and target CRS.

Parameters
sourceCoordSysId[in] Source CRS's ID.
targetCoordSysId[in] Target CRS's ID.
pCoordSysTransformer[out] New OdDbGeoCoordinateSystemTransformer object.
Returns
Returns eOK if successful, or an appropriate error code if not.

◆ getSourceCoordinateSystemId()

virtual OdResult OdDbGeoCoordinateSystemTransformer::getSourceCoordinateSystemId ( OdString sourceCoordSysId) const
pure virtual

Returns the source CRS's ID.

Parameters
sourceCoordSysId[out] Source CRS's ID.
Returns
Returns eOK if successful, or an appropriate error code if not.

◆ getTargetCoordinateSystemId()

virtual OdResult OdDbGeoCoordinateSystemTransformer::getTargetCoordinateSystemId ( OdString targetCoordSysId) const
pure virtual

Returns the target CRS's ID.

Parameters
targetCoordSysId[out] Target CRS's ID.
Returns
Returns eOK if successful, or an appropriate error code if not.

◆ ODRX_DECLARE_MEMBERS()

OdDbGeoCoordinateSystemTransformer::ODRX_DECLARE_MEMBERS ( OdDbGeoCoordinateSystemTransformer  )

◆ transformPoint() [1/2]

virtual OdResult OdDbGeoCoordinateSystemTransformer::transformPoint ( const OdGePoint3d pointIn,
OdGePoint3d pointOut 
) const
pure virtual

Transforms the point from the source CRS to the target CRS.

Parameters
pointIn[in] Point in the source CRS.
pointOut[out] Point in the target CRS.
Returns
Returns eOK if successful, or an appropriate error code if not.

◆ transformPoint() [2/2]

static OdResult OdDbGeoCoordinateSystemTransformer::transformPoint ( const OdString sourceCoordSysId,
const OdString targetCoordSysId,
const OdGePoint3d pointIn,
OdGePoint3d pointOut 
)
static

Transforms the point from the source CRS to the target CRS.

Parameters
sourceCoordSysId[in] Source CRS's ID.
targetCoordSysId[in] Target CRS's ID.
pointIn[in] Point in the source CRS.
pointOut[out] Point in the target CRS.
Returns
Returns eOK if successful, or an appropriate error code if not.

◆ transformPoints() [1/2]

virtual OdResult OdDbGeoCoordinateSystemTransformer::transformPoints ( const OdGePoint3dArray pointsIn,
OdGePoint3dArray pointsOut 
) const
pure virtual

Transforms the array of points from the source CRS to the target CRS.

Parameters
pointsIn[in] Point array in the source CRS.
pointsOut[out] Point array in the target CRS.
Returns
Returns eOK if successful, or an appropriate error code if not.

◆ transformPoints() [2/2]

static OdResult OdDbGeoCoordinateSystemTransformer::transformPoints ( const OdString sourceCoordSysId,
const OdString targetCoordSysId,
const OdGePoint3dArray pointsIn,
OdGePoint3dArray pointsOut 
)
static

Transforms the array of points from the source CRS to the target CRS.

Parameters
sourceCoordSysId[in] Source CRS's ID.
targetCoordSysId[in] Target CRS's ID.
pointsIn[in] Point array in the source CRS.
pointsOut[out] Point array in the target CRS.
Returns
Returns eOK if successful, or an appropriate error code if not.

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