osgEarth 2.1.1
Public Member Functions | Static Public Member Functions

seamless::EulerProfile Class Reference

Inheritance diagram for seamless::EulerProfile:
Collaboration diagram for seamless::EulerProfile:

List of all members.

Public Member Functions

 EulerProfile ()
virtual void getIntersectingTiles (const osgEarth::GeoExtent &extent, std::vector< osgEarth::TileKey > &out_intersectingKeys) const

Static Public Member Functions

static int getFace (const osgEarth::TileKey &key)

Detailed Description

Definition at line 215 of file Euler.


Constructor & Destructor Documentation

seamless::EulerProfile::EulerProfile ( )

Definition at line 997 of file Euler.cpp.

    : Profile(createEulerSRS(),
              0.0, 0.0, 4.0, 4.0,
              -180.0, -90.0, 180.0, 90.0,
              0,
              1, 1)
{
}

Member Function Documentation

int seamless::EulerProfile::getFace ( const osgEarth::TileKey key) [static]

Gets the cube face associated with a tile key (in cube srs).

Definition at line 1006 of file Euler.cpp.

{
    int shiftVal = key.getLevelOfDetail() - 2;
    int faceX = key.getTileX() >> shiftVal;
    int faceY = key.getTileY() >> shiftVal;
    if (faceY == 1)
        return 4;
    else if (faceY == 3)
        return 5;
    else
        return faceX;
}

Here is the call graph for this function:

virtual void seamless::EulerProfile::getIntersectingTiles ( const osgEarth::GeoExtent extent,
std::vector< osgEarth::TileKey > &  out_intersectingKeys 
) const [virtual]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines