GEOS: BoundaryNodeRule.h Source File

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

- File List

# BoundaryNodeRule.h

    00001 /**********************************************************************
    00002  * $Id: BoundaryNodeRule.h 2809 2009-12-06 01:05:24Z mloskot $
    00003  *
    00004  * GEOS - Geometry Engine Open Source
    00005  * http://geos.refractions.net
    00006  *
    00007  * Copyright (C) 2009      Sandro Santilli <strk@keybit.net>
    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: algorithm/BoundaryNodeRule.java rev 1.4 (JTS-1.10)
    00017  *
    00018  **********************************************************************/
    00019
    00020 #ifndef GEOS_ALGORITHM_BOUNDARYNODERULE_H
    00021 #define GEOS_ALGORITHM_BOUNDARYNODERULE_H
    00022
    00023 // Forward declarations
    00024 // ...
    00025
    00026 namespace geos {
    00027 namespace algorithm { // geos::algorithm
    00028
    00029
    00049 class BoundaryNodeRule {
    00050
    00051 public:
    00052
    00053         // virtual classes should always have a virtual destructor..
    00054         virtual ~BoundaryNodeRule() {}
    00055
    00066         virtual bool isInBoundary(int boundaryCount) const=0;
    00067
    00074         static const BoundaryNodeRule& MOD2_BOUNDARY_RULE;
    00075
    00081         static const BoundaryNodeRule& ENDPOINT_BOUNDARY_RULE;
    00082
    00088         static const BoundaryNodeRule& MULTIVALENT_ENDPOINT_BOUNDARY_RULE;
    00089
    00095         static const BoundaryNodeRule& MONOVALENT_ENDPOINT_BOUNDARY_RULE;
    00096
    00103         static const BoundaryNodeRule& OGC_SFS_BOUNDARY_RULE;
    00104
    00105 };
    00106
    00107 } // namespace geos::algorithm
    00108 } // namespace geos
    00109
    00110 #endif // GEOS_ALGORITHM_BOUNDARYNODERULE_H
    00111