Version: 0.6.0
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Variables
Pages
filter.h
1
/******************************************************************************
2
* Project: wxGIS
3
* Purpose: Filter classes.
4
* Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5
******************************************************************************
6
* Copyright (C) 2011 Dmitry Baryshnikov
7
*
8
* This program is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation, either version 2 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
****************************************************************************/
21
#pragma once
22
23
#include "wxgis/datasource/vectorop.h"
24
29
class
WXDLLIMPEXP_GIS_DS
wxGISQueryFilter
30
{
31
public
:
32
wxGISQueryFilter
(
void
);
33
wxGISQueryFilter
(
const
wxString &sWhereClause);
34
wxGISQueryFilter
& operator = (
const
wxGISQueryFilter
& obj );
35
wxGISQueryFilter
(
const
wxGISQueryFilter
& obj );
36
virtual
~
wxGISQueryFilter
(
void
);
37
virtual
void
SetWhereClause(wxString sWhereClause);
38
virtual
wxString GetWhereClause(
void
)
const
;
39
protected
:
40
wxString m_sWhereClause;
41
};
42
43
extern
WXDLLIMPEXP_DATA_GIS_DS(
wxGISQueryFilter
) wxGISNullQueryFilter;
44
49
class WXDLLIMPEXP_GIS_DS
wxGISSpatialFilter
:
50
public
wxGISQueryFilter
51
{
52
public
:
53
wxGISSpatialFilter
(
const
wxGISGeometry
&Geom,
const
wxString &sWhereClause = wxEmptyString);
54
wxGISSpatialFilter
(
void
);
55
wxGISSpatialFilter
& operator = (
const
wxGISSpatialFilter
& obj );
56
wxGISSpatialFilter
(
const
wxGISSpatialFilter
& obj );
57
virtual
~
wxGISSpatialFilter
(
void
);
58
virtual
void
SetEnvelope(
double
dfMinX,
double
dfMinY,
double
dfMaxX,
double
dfMaxY);
59
virtual
void
SetEnvelope(
const
OGREnvelope &Env);
60
virtual
void
SetGeometry(
const
wxGISGeometry
&Geom);
61
virtual
OGREnvelope GetEnvelope(
void
);
62
virtual
wxGISGeometry
GetGeometry(
void
)
const
;
63
protected
:
64
wxGISGeometry
m_Geom;
65
};
66
67
extern
WXDLLIMPEXP_DATA_GIS_DS(
wxGISSpatialFilter
) wxGISNullSpatialFilter;
wxGISQueryFilter
Attributes query filter.
Definition:
filter.h:29
wxGISGeometry
Definition:
gdalinh.h:333
wxGISSpatialFilter
Definition:
filter.h:49
include
wxgis
datasource
filter.h
Generated on Fri Sep 26 2014 01:10:56 for ngm by
1.8.6