VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TXPSeamLOD.h
Go to the documentation of this file.
1 /***************************************************************************
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 
67 
68  int _dx;
69  int _dy;
70  osg::Vec3 _center;
71 };
72 
73 }
74 
75 #endif
76 
void setCenter(const osg::Vec3 &center)
Definition: TXPSeamLOD.h:62
osg::Vec3 getCenter()
Definition: TXPSeamLOD.h:63
Definition: TXPSeamLOD.h:47
virtual void traverse(osg::NodeVisitor &nv)
int _dx
Definition: TXPSeamLOD.h:68
Definition: TileMapper.h:32
osg::Vec3 _center
Definition: TXPSeamLOD.h:70
META_Node(txp, TXPSeamLOD)
int _dy
Definition: TXPSeamLOD.h:69
TileIdentifier _tid
Definition: TXPSeamLOD.h:66

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)