Quantum GIS API Documentation  1.7.4
src/core/qgspalgeometry.cpp
Go to the documentation of this file.
00001 /***************************************************************************
00002                         qgspalgeometry.cpp  -  description
00003                         ---------------------------------
00004    begin                : May 2009
00005    copyright            : (C) 2009 by Marco Hugentobler
00006    email                : marco dot hugentobler at karto dot baug dot ethz dot ch
00007 ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #include "qgspalgeometry.h"
00019 #include "qgsgeometry.h"
00020 #include "qgsoverlayobject.h"
00021 #include <geos_c.h>
00022 
00023 QgsPALGeometry::QgsPALGeometry( QgsOverlayObject* op ): mOverlayObjectPtr( op )
00024 {
00025 }
00026 
00027 QgsPALGeometry::QgsPALGeometry(): mOverlayObjectPtr( 0 )
00028 {
00029 }
00030 
00031 QgsPALGeometry::~QgsPALGeometry()
00032 {
00033 }
00034 
00035 GEOSGeometry* QgsPALGeometry::getGeosGeometry()
00036 {
00037   if ( mOverlayObjectPtr )
00038   {
00039     if ( mOverlayObjectPtr->geometry() )
00040     {
00041       return mOverlayObjectPtr->geometry()->asGeos();
00042     }
00043   }
00044   return 0;
00045 }
00046 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines