Version: 0.6.0
transformthreads.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: Transformation Threads header.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2009 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/carto/carto.h"
24 
25 /*
26 #include "wxgis/datasource/featuredataset.h"
27 #include "wxgis/framework/application.h"
28 #include "wxgis/geometry/geometry.h"
29 
30 class wxGISFeatureTransformThread : public wxThread
31 {
32 public:
33  wxGISFeatureTransformThread(wxGISFeatureDatasetSPtr pwxGISFeatureDataset, OGRCoordinateTransformation *poCT, bool bTransform, OGRPolygon* pRgn1, OGRPolygon* pRgn2, wxCriticalSection* pCritSect, OGREnvelope* pFullEnv, wxGISGeometrySet* pOGRGeometrySet, size_t &nCounter, ITrackCancel* pTrackCancel = NULL);
34  virtual void *Entry();
35  virtual void OnExit();
36 protected:
37  //virtual OGRGeometry* CheckRgnAndTransform(OGRGeometry* pFeatureGeom, OGRPolygon* pRgn, OGREnvelope* pRgnEnv, OGRCoordinateTransformation *poCT);
38  virtual OGRGeometry* CheckRgnAndTransform1(OGRGeometry* pFeatureGeom, OGRPolygon* pRgn1, OGRPolygon* pRgn2, OGREnvelope* pRgnEnv1, OGREnvelope* pRgnEnv2, OGRCoordinateTransformation *poCT);
39  virtual OGRGeometry* Intersection(OGRGeometry* pFeatureGeom, OGRPolygon* pRgn, OGREnvelope* pRgnEnv);
40 protected:
41  OGRPolygon *m_pRgn1, *m_pRgn2;
42  ITrackCancel *m_pTrackCancel;
43  wxGISFeatureDatasetSPtr m_pwxGISFeatureDataset;
44  OGRCoordinateTransformation *m_poCT;
45  bool m_bTransform;
46  wxCriticalSection *m_pCritSect;
47  OGREnvelope *m_pFullEnv;
48  wxGISGeometrySet* m_pOGRGeometrySet;
49  //progress
50  size_t &m_nCounter;
51  IProgressor *m_pProgressor;
52  double m_fSegSize;
53 };
54 */