|
CartoType API
|
#include <cartotype_projection.h>
Public Member Functions | |
| TProjectionUsingFloatingPoint (const TCoordinateTransformParam &aParam) | |
| void | Sync () |
| CT_IMPORT TResult | Project (const TPoint &aInput, TPoint &aOutput) const |
| CT_IMPORT TResult | ProjectTo64ths (const TPoint &aInput, TPoint &aOutput) const |
Protected Member Functions | |
| virtual void | ProjectHelper (const TPoint &aInput, double &aX, double &aY) const =0 |
The abstract base class for projection classes using floating-point arithmetic.
| CT_EXPORT TResult TProjectionUsingFloatingPoint::Project | ( | const TPoint & | aInput, |
| TPoint & | aOutput | ||
| ) | const [virtual] |
Project a point using the transformation.
Implements CartoType::TCoordinateTransform.
| virtual void CartoType::TProjectionUsingFloatingPoint::ProjectHelper | ( | const TPoint & | aInput, |
| double & | aX, | ||
| double & | aY | ||
| ) | const [protected, pure virtual] |
Project points to double-precision floating point pixels without applying the final transform.
Implemented in CartoType::TOrdnanceSurveyProjection, CartoType::TMillerCylindrical, and CartoType::TMercator.
| CT_EXPORT TResult TProjectionUsingFloatingPoint::ProjectTo64ths | ( | const TPoint & | aInput, |
| TPoint & | aOutput | ||
| ) | const [virtual] |
Convert a point to 64ths of units using the transformation. This function gives the same results as Project, but with both the x and y coordinate multiplied by 64. It is a convenience function used when projecting to 64ths of pixels, which are the internal units used for rendering shapes.
Implements CartoType::TCoordinateTransform.
| void CartoType::TProjectionUsingFloatingPoint::Sync | ( | ) | [inline, virtual] |
Update any internal parameters after a change to a coordinate transform.
Reimplemented from CartoType::TCoordinateTransform.
1.7.5.1