mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
57 lines
2.3 KiB
C
57 lines
2.3 KiB
C
/*
|
|
Copyright (C) 2011 Statoil ASA, Norway.
|
|
|
|
The file 'geo_region.h' is part of ERT - Ensemble based Reservoir Tool.
|
|
|
|
ERT is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
ERT is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
for more details.
|
|
*/
|
|
|
|
|
|
#include <stdlib.h>
|
|
#include <stdbool.h>
|
|
#include <util.h>
|
|
#include <geo_pointset.h>
|
|
#include <geo_polygon.h>
|
|
|
|
#ifndef __GEO_REGION_H__
|
|
#define __GEO_REGION_H__
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
typedef struct geo_region_struct geo_region_type;
|
|
|
|
geo_region_type * geo_region_alloc( const geo_pointset_type * pointset , bool preselect);
|
|
void geo_region_free( geo_region_type * region );
|
|
void geo_region_free__( void * arg );
|
|
void geo_region_reset( geo_region_type * region );
|
|
const int_vector_type * geo_region_get_index_list( geo_region_type * region );
|
|
|
|
void geo_region_select_inside_polygon( geo_region_type * region , const geo_polygon_type * polygon);
|
|
void geo_region_select_outside_polygon( geo_region_type * region , const geo_polygon_type * polygon);
|
|
void geo_region_deselect_inside_polygon( geo_region_type * region , const geo_polygon_type * polygon);
|
|
void geo_region_deselect_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_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]);
|
|
void geo_region_deselect_below_line( geo_region_type * region, const double xcoords[2] , const double ycoords[2]);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|