Ignore:
Timestamp:
Mar 9, 2011, 10:41:24 PM (13 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/TerrainTest/terrainModificationTechnique.h

    r270 r272  
    11#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
    218#include <osg/Referenced>
    319#include <osgTerrain/GeometryTechnique>
    420#include <osgTerrain/TerrainTile>
     21#include "region.h"
    522
    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 range
    9  *
    10  * @author Torben Dannhauer
    11  * @date  Mrz 2011
    12  */
    13 class region : public osg::Referenced
    14 {
    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: Empty
    20         ~region(){};
    21 
    22         //! Constructor: Constructed with the specified extend
    23         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 } ;
    3423
    3524/**
Note: See TracChangeset for help on using the changeset viewer.