Changeset 272 for experimental/TerrainTest/terrainModificationTechnique.h
- Timestamp:
- Mar 9, 2011, 10:41:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/TerrainTest/terrainModificationTechnique.h
r270 r272 1 1 #pragma once 2 /* -*-c++-*- osgVisual - Copyright (C) 2009-2011 Torben Dannhauer 3 * 4 * This library is based on OpenSceneGraph, open source and may be redistributed and/or modified under 5 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 6 * (at your option) any later version. The full license is in LICENSE file 7 * included with this distribution, and on the openscenegraph.org website. 8 * 9 * osgVisual requires for some proprietary modules a license from the correspondig manufacturer. 10 * You have to aquire licenses for all used proprietary modules. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * OpenSceneGraph Public License for more details. 16 */ 17 2 18 #include <osg/Referenced> 3 19 #include <osgTerrain/GeometryTechnique> 4 20 #include <osgTerrain/TerrainTile> 21 #include "region.h" 5 22 6 7 /**8 * \brief This class defines the extends of a region. This region is a square and is defined by the latitude and longitude range9 *10 * @author Torben Dannhauer11 * @date Mrz 201112 */13 class region : public osg::Referenced14 {15 public:16 //! Constructor: Plain constructor, you have to set the extend manually.17 region() : _lat_min(0.0), _lat_max(0.0), _lon_min(0.0), _lon_max(0.0) {};18 19 //! Destructor: Empty20 ~region(){};21 22 //! Constructor: Constructed with the specified extend23 region( double lat_min, double lat_max, double lon_min, double lon_max) : _lat_min(lat_min), _lat_max(lat_max), _lon_min(lon_min), _lon_max(lon_max) {};24 region( osg::HeightField& h );25 bool isInside(region& outsider);26 bool isFullOrPartiallyInside(region& outsider);27 double delta_lat(){return(_lat_max-_lat_min);}28 double delta_lon(){return(_lon_max-_lon_min);}29 double _lat_min;30 double _lat_max;31 double _lon_min;32 double _lon_max;33 } ;34 23 35 24 /**
Note: See TracChangeset
for help on using the changeset viewer.