CartoType API
Public Member Functions | Protected Member Functions
CartoType::TProjectionUsingFloatingPoint Class Reference

#include <cartotype_projection.h>

Inheritance diagram for CartoType::TProjectionUsingFloatingPoint:
CartoType::TCoordinateTransform CartoType::TMercator CartoType::TOrdnanceSurveyProjection CartoType::TSimpleCoordinateTransform CartoType::TUtmEllipsoidal CartoType::TMillerCylindrical

List of all members.

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

Detailed Description

The abstract base class for projection classes using floating-point arithmetic.


Member Function Documentation

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.


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