GEOS 3.3.4

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

SimpleGeometryPrecisionReducer.h
1 /**********************************************************************
2 * $Id: SimpleGeometryPrecisionReducer.h 2556 2009-06-06 22:22:28Z strk $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
7 * Copyright (C) 2005-2006 Refractions Research Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************/
15
16 #ifndef GEOS_PRECISION_SIMPLEGEOMETRYPRECISIONREDUCER_H
17 #define GEOS_PRECISION_SIMPLEGEOMETRYPRECISIONREDUCER_H
18
19 #include <geos/export.h>
20
21 // Forward declarations
22 namespace geos {
23 namespace geom {
24 class PrecisionModel;
25 class Geometry;
26 }
27 }
28
29 namespace geos {
30 namespace precision { // geos.precision
31
45 class GEOS_DLL SimpleGeometryPrecisionReducer {
46
47 private:
48
49 const geom::PrecisionModel *newPrecisionModel;
50
51 bool removeCollapsed;
52
53 //bool changePrecisionModel;
54
55 public:
56
57 SimpleGeometryPrecisionReducer(const geom::PrecisionModel *pm);
58
67 void setRemoveCollapsedComponents(bool nRemoveCollapsed);
68
69 /*
70 * Sets whether the {@link PrecisionModel} of the new reduced Geometry
71 * will be changed to be the {@link PrecisionModel} supplied to
72 * specify the reduction. The default is to not change the
73 * precision model
74 *
75 * @param changePrecisionModel if <code>true</code> the precision
76 * model of the created Geometry will be the
77 * the precisionModel supplied in the constructor.
78 */
79 //void setChangePrecisionModel(bool nChangePrecisionModel);
80
81 const geom::PrecisionModel* getPrecisionModel();
82
83 bool getRemoveCollapsed();
84 geom::Geometry* reduce(const geom::Geometry *geom);
85 };
86
87 } // namespace geos.precision
88 } // namespace geos
89
90 #endif // GEOS_PRECISION_SIMPLEGEOMETRYPRECISIONREDUCER_H
91
92 /**********************************************************************
93 * $Log$
94 * Revision 1.2 2006/04/03 13:56:55 strk
95 * Made externally-owned PrecisionModel const
96 *
97 * Revision 1.1 2006/03/23 09:17:19 strk
98 * precision.h header split, minor optimizations
99 *
100 **********************************************************************/