/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * included with this distribution, and on the openscenegraph.org website. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * OpenSceneGraph Public License for more details. */ #ifndef OSGTERRAIN_TERRAINTILE #define OSGTERRAIN_TERRAINTILE 1 #include #include #include #include #include namespace osgTerrain { class Terrain; class TileID { public: TileID(): layer(-1), x(-1), y(-1) {} TileID(int in_layer, int in_x, int in_y): layer(in_layer), x(in_x), y(in_y) {} bool operator < (const TileID& rhs) const { if (layerrhs.layer) return false; if (xrhs.x) return false; return y > Layers; Terrain* _terrain; bool _hasBeenTraversal; TileID _tileID; osg::ref_ptr _terrainTechnique; osg::ref_ptr _locator; osg::ref_ptr _elevationLayer; Layers _colorLayers; bool _requiresNormals; bool _treatBoundariesToValidDataAsDefaultValue; }; } #endif