geo_region.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2011 Equinor ASA, Norway.
3
4 The file 'geo_region.h' is part of ERT - Ensemble based Reservoir Tool.
5
6 ERT is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 ERT is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE.
14
15 See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
16 for more details.
17*/
18
19
20#include <stdlib.h>
21#include <stdbool.h>
22
23#include <ert/util/util.h>
24#include <ert/util/int_vector.hpp>
25
28
29#ifndef ERT_GEO_REGION_H
30#define ERT_GEO_REGION_H
31
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37
38
39 typedef struct geo_region_struct geo_region_type;
40
41 geo_region_type * geo_region_alloc( const geo_pointset_type * pointset , bool preselect);
43 void geo_region_free__( void * arg );
45 const int_vector_type * geo_region_get_index_list( geo_region_type * region );
46
51
52 void geo_region_select_above_line( geo_region_type * region, const double xcoords[2] , const double ycoords[2]);
53 void geo_region_select_below_line( geo_region_type * region, const double xcoords[2] , const double ycoords[2]);
54 void geo_region_deselect_above_line( geo_region_type * region, const double xcoords[2] , const double ycoords[2]);
55 void geo_region_deselect_below_line( geo_region_type * region, const double xcoords[2] , const double ycoords[2]);
56
57#ifdef __cplusplus
58}
59#endif
60#endif
struct geo_pointset_struct geo_pointset_type
Definition: geo_pointset.hpp:28
struct geo_polygon_struct geo_polygon_type
Definition: geo_polygon.hpp:30
const int_vector_type * geo_region_get_index_list(geo_region_type *region)
geo_region_type * geo_region_alloc(const geo_pointset_type *pointset, bool preselect)
void geo_region_deselect_inside_polygon(geo_region_type *region, const geo_polygon_type *polygon)
void geo_region_reset(geo_region_type *region)
void geo_region_select_outside_polygon(geo_region_type *region, const geo_polygon_type *polygon)
void geo_region_select_above_line(geo_region_type *region, const double xcoords[2], const double ycoords[2])
void geo_region_select_inside_polygon(geo_region_type *region, const geo_polygon_type *polygon)
void geo_region_select_below_line(geo_region_type *region, const double xcoords[2], const double ycoords[2])
void geo_region_free(geo_region_type *region)
void geo_region_free__(void *arg)
void geo_region_deselect_outside_polygon(geo_region_type *region, const geo_polygon_type *polygon)
void geo_region_deselect_below_line(geo_region_type *region, const double xcoords[2], const double ycoords[2])
void geo_region_deselect_above_line(geo_region_type *region, const double xcoords[2], const double ycoords[2])
struct geo_region_struct geo_region_type
Definition: geo_region.hpp:39