• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List

ElevationMatrixCell.h

00001 /**********************************************************************
00002  * $Id: ElevationMatrixCell.h 2564 2009-06-08 16:09:51Z strk $
00003  *
00004  * GEOS - Geometry Engine Open Source
00005  * http://geos.refractions.net
00006  *
00007  * Copyright (C) 2006 Refractions Research Inc.
00008  *
00009  * This is free software; you can redistribute and/or modify it under
00010  * the terms of the GNU Lesser General Public Licence as published
00011  * by the Free Software Foundation. 
00012  * See the COPYING file for more information.
00013  *
00014  ***********************************************************************
00015  *
00016  * Last port: original (by strk)
00017  *
00018  **********************************************************************/
00019 
00020 #ifndef GEOS_OP_OVERLAY_ELEVATIONMATRIXCELL_H
00021 #define GEOS_OP_OVERLAY_ELEVATIONMATRIXCELL_H
00022 
00023 #include <geos/export.h>
00024 
00025 #include <set>
00026 
00027 // Forward declarations
00028 namespace geos {
00029         namespace geom {
00030                 class Coordinate;
00031         }
00032 }
00033 
00034 namespace geos {
00035 namespace operation { // geos::operation
00036 namespace overlay { // geos::operation::overlay
00037 
00038 
00039 class GEOS_DLL ElevationMatrixCell {
00040 public:
00041         ElevationMatrixCell();
00042         ~ElevationMatrixCell();
00043         void add(const geom::Coordinate &c);
00044         void add(double z);
00045         double getAvg(void) const;
00046         double getTotal(void) const;
00047         std::string print() const;
00048 private:
00049         std::set<double>zvals;
00050         double ztot;
00051 };
00052 
00053 } // namespace geos::operation::overlay
00054 } // namespace geos::operation
00055 } // namespace geos
00056 
00057 #endif // ndef GEOS_OP_OVERLAY_ELEVATIONMATRIXCELL_H
00058 
00059 /**********************************************************************
00060  * $Log$
00061  * Revision 1.1  2006/03/17 13:24:59  strk
00062  * opOverlay.h header splitted. Reduced header inclusions in operation/overlay implementation files. ElevationMatrixFilter code moved from own file to ElevationMatrix.cpp (ideally a class-private).
00063  *
00064  **********************************************************************/
00065 

Generated on Thu Jul 22 2010 for GEOS by  doxygen 1.7.1