forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvtkGeoProjectionSource.h
94 lines (77 loc) · 2.78 KB
/
vtkGeoProjectionSource.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*=========================================================================
Program: Visualization Toolkit
Module: vtkGeoProjectionSource.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/*-------------------------------------------------------------------------
Copyright 2008 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
the U.S. Government retains certain rights in this software.
-------------------------------------------------------------------------*/
/**
* @class vtkGeoProjectionSource
* @brief A 2D geographic geometry source
*
*
* vtkGeoProjectionSource is a vtkGeoSource suitable for use in vtkTerrain2D.
* This source uses the libproj4 library to produce geometry patches at
* multiple resolutions. Each patch covers a specific region in projected
* space.
*/
#ifndef vtkGeoProjectionSource_h
#define vtkGeoProjectionSource_h
#include "vtkGeovisCoreModule.h" // For export macro
#include "vtkGeoSource.h"
class vtkAbstractTransform;
class vtkGeoTerrainNode;
class vtkMutexLock;
class VTKGEOVISCORE_EXPORT vtkGeoProjectionSource : public vtkGeoSource
{
public:
static vtkGeoProjectionSource *New();
vtkTypeMacro(vtkGeoProjectionSource,vtkGeoSource);
void PrintSelf( ostream& os, vtkIndent indent ) VTK_OVERRIDE;
vtkGeoProjectionSource();
~vtkGeoProjectionSource() VTK_OVERRIDE;
//@{
/**
* Blocking methods for sources with low latency.
*/
bool FetchRoot(vtkGeoTreeNode* root) VTK_OVERRIDE;
bool FetchChild(vtkGeoTreeNode* node, int index, vtkGeoTreeNode* child) VTK_OVERRIDE;
//@}
//@{
/**
* The projection ID defining the projection. Initial value is 0.
*/
vtkGetMacro(Projection, int);
virtual void SetProjection(int projection);
//@}
//@{
/**
* The minimum number of cells per node.
*/
vtkGetMacro(MinCellsPerNode, int);
vtkSetMacro(MinCellsPerNode, int);
//@}
/**
* Return the projection transformation used by this 2D terrain.
*/
vtkAbstractTransform* GetTransform() VTK_OVERRIDE;
protected:
void RefineAndComputeError(vtkGeoTerrainNode* node);
int Projection;
int MinCellsPerNode;
virtual void SetTransform(vtkAbstractTransform* transform);
vtkMutexLock* TransformLock;
vtkAbstractTransform* Transform;
private:
vtkGeoProjectionSource(const vtkGeoProjectionSource&) VTK_DELETE_FUNCTION;
void operator=(const vtkGeoProjectionSource&) VTK_DELETE_FUNCTION;
};
#endif