root/OpenSceneGraph/trunk/src/osgPlugins/txp/TXPSeamLOD.h
@
13041
| Revision 13041, 2.1 kB (checked in by robert, 14 months ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | // -*-c++-*- |
| 2 | /*************************************************************************** |
| 3 | * December 2003 |
| 4 | * |
| 5 | * This TerraPage loader was re-written in a fashion to use PagedLOD |
| 6 | * to manage paging entirely, also includes a version of Terrex's smart mesh |
| 7 | * adapted to work with PagedLOD. The essential code by Boris Bralo is still present, |
| 8 | * slight modified. |
| 9 | * nick at terrex dot com |
| 10 | * |
| 11 | * Ported to PagedLOD technology by Trajce Nikolov (Nick) & Robert Osfield |
| 12 | *****************************************************************************/ |
| 13 | |
| 14 | /*************************************************************************** |
| 15 | * OpenSceneGraph loader for Terrapage format database |
| 16 | * by Boris Bralo 2002 |
| 17 | * |
| 18 | * based on/modifed sgl (Scene Graph Library) loader by Bryan Walsh |
| 19 | * |
| 20 | * This loader is based on/modified from Terrain Experts Performer Loader, |
| 21 | * and was ported to SGL by Bryan Walsh / bryanw at earthlink dot net |
| 22 | * |
| 23 | * That loader is redistributed under the terms listed on Terrain Experts |
| 24 | * website (www.terrex.com/www/pages/technology/technologypage.htm) |
| 25 | * |
| 26 | * "TerraPage is provided as an Open Source format for use by anyone... |
| 27 | * We supply the TerraPage C++ source code free of charge. Anyone |
| 28 | * can use it and redistribute it as needed (including our competitors). |
| 29 | * We do, however, ask that you keep the TERREX copyrights intact." |
| 30 | * |
| 31 | * Copyright Terrain Experts Inc. 1999. |
| 32 | * All Rights Reserved. |
| 33 | * |
| 34 | *****************************************************************************/ |
| 35 | |
| 36 | #ifndef TXPSeamLOD_H |
| 37 | #define TXPSeamLOD_H |
| 38 | |
| 39 | #include <osg/LOD> |
| 40 | #include <map> |
| 41 | #include <string> |
| 42 | |
| 43 | #include "TileMapper.h" |
| 44 | |
| 45 | namespace txp |
| 46 | { |
| 47 | class TXPSeamLOD : public osg::Group |
| 48 | { |
| 49 | public: |
| 50 | |
| 51 | TXPSeamLOD(); |
| 52 | |
| 53 | TXPSeamLOD(int x, int y, int lod, int dx, int dy); |
| 54 | |
| 55 | TXPSeamLOD(const TXPSeamLOD&, |
| 56 | const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY); |
| 57 | |
| 58 | META_Node(txp, TXPSeamLOD); |
| 59 | |
| 60 | virtual void traverse(osg::NodeVisitor& nv); |
| 61 | |
| 62 | void setCenter( const osg::Vec3& center ) { _center = center; } |
| 63 | osg::Vec3 getCenter() { return _center; } |
| 64 | protected: |
| 65 | |
| 66 | TileIdentifier _tid; |
| 67 | |
| 68 | int _dx; |
| 69 | int _dy; |
| 70 | osg::Vec3 _center; |
| 71 | }; |
| 72 | |
| 73 | } |
| 74 | |
| 75 | #endif |
Note: See TracBrowser
for help on using the browser.
