osgEarth 2.1.1
Public Member Functions | Protected Member Functions | Protected Attributes

seamless::TileUpdater Class Reference

Collaboration diagram for seamless::TileUpdater:

List of all members.

Public Member Functions

 TileUpdater (GeoPatch *gpatch)
void apply (PagedLOD &node)

Protected Member Functions

void copyTileEdges (PatchGroup *node, const PatchOptions *gopt)
void copyCorner (PatchGroup *node, const PatchOptions *gopt)

Protected Attributes

GeoPatch_gpatch
KeyIndex _tileIndex
Matrixd _tileMat

Detailed Description

Definition at line 795 of file Geographic.cpp.


Constructor & Destructor Documentation

seamless::TileUpdater::TileUpdater ( GeoPatch gpatch) [inline]

Definition at line 798 of file Geographic.cpp.

    {

Member Function Documentation

void seamless::TileUpdater::apply ( PagedLOD &  node) [inline]

Definition at line 810 of file Geographic.cpp.

         :
    void copyTileEdges(PatchGroup* node, const PatchOptions* gopt)
    {
void seamless::TileUpdater::copyCorner ( PatchGroup node,
const PatchOptions gopt 
) [inline, protected]

Definition at line 847 of file Geographic.cpp.

        {
            if (_tileIndex.y == ty + lodMult)
                //tarray[0][0] = varray[patchDim - 1][patchDim - 1] * transferMat;
                safeCopy(tarray[0][0], varray[patchDim - 1][patchDim - 1], transferMat);
            else
                //tarray[patchDim - 1][0] = varray[0][patchDim - 1] * transferMat;
                safeCopy(tarray[patchDim - 1][0], varray[0][patchDim - 1], transferMat);
        }
        else
        {
            if (_tileIndex.y == ty + lodMult)
                // tarray[0][patchDim - 1] = varray[patchDim - 1][0] * transferMat;
                safeCopy(tarray[0][patchDim - 1], varray[patchDim - 1][0], transferMat);
            else
                // tarray[patchDim - 1][patchDim - 1] = varray[0][0] * transferMat;
                safeCopy(tarray[patchDim - 1][patchDim - 1], varray[0][0], transferMat);
        }
        tpatch->dirtyVertexData();
    }
    GeoPatch* _gpatch;
    KeyIndex _tileIndex;
    Matrixd _tileMat;
void seamless::TileUpdater::copyTileEdges ( PatchGroup node,
const PatchOptions gopt 
) [inline, protected]

Definition at line 832 of file Geographic.cpp.

        {
            transferEdges(tpatch, trans->getMatrix(), idx,
                          _gpatch, _tileMat, _tileIndex, shared);
            tpatch->dirtyVertexData();
        }
    }
    void copyCorner(PatchGroup* node, const PatchOptions* gopt)
    {
        // The tile to update

Member Data Documentation

Definition at line 889 of file Geographic.cpp.

Definition at line 890 of file Geographic.cpp.

Matrixd seamless::TileUpdater::_tileMat [protected]

Definition at line 891 of file Geographic.cpp.


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