VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Geovis
Core
vtkGeoTransform.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkGeoTransform.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
15
/*-------------------------------------------------------------------------
16
Copyright 2008 Sandia Corporation.
17
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18
the U.S. Government retains certain rights in this software.
19
-------------------------------------------------------------------------*/
30
#ifndef __vtkGeoTransform_h
31
#define __vtkGeoTransform_h
32
33
#include "vtkGeovisCoreModule.h"
// For export macro
34
#include "
vtkAbstractTransform.h
"
35
36
class
vtkGeoProjection
;
37
38
class
VTKGEOVISCORE_EXPORT
vtkGeoTransform
:
public
vtkAbstractTransform
39
{
40
public
:
41
static
vtkGeoTransform
*
New
();
42
virtual
void
PrintSelf
( ostream& os,
vtkIndent
indent );
43
vtkTypeMacro(
vtkGeoTransform
,
vtkAbstractTransform
);
44
46
47
void
SetSourceProjection(
vtkGeoProjection
*
source
);
48
vtkGetObjectMacro(SourceProjection,
vtkGeoProjection
);
50
52
53
void
SetDestinationProjection(
vtkGeoProjection
* dest);
54
vtkGetObjectMacro(DestinationProjection,
vtkGeoProjection
);
56
58
virtual
void
TransformPoints
(
vtkPoints
* src,
vtkPoints
* dst );
59
61
virtual
void
Inverse
();
62
64
66
virtual
void
InternalTransformPoint
(
const
float
in[3],
float
out[3] );
67
virtual
void
InternalTransformPoint
(
const
double
in[3],
double
out[3] );
69
71
75
virtual
void
InternalTransformDerivative
(
const
float
in[3],
float
out[3],
float
derivative[3][3] );
76
virtual
void
InternalTransformDerivative
(
const
double
in[3],
double
out[3],
double
derivative[3][3] );
78
80
virtual
vtkAbstractTransform
*
MakeTransform
();
81
82
protected
:
83
vtkGeoTransform
();
84
virtual
~
vtkGeoTransform
();
85
86
void
InternalTransformPoints(
double
* ptsInOut,
vtkIdType
numPts,
int
stride );
87
88
vtkGeoProjection
*
SourceProjection
;
89
vtkGeoProjection
*
DestinationProjection
;
90
91
private
:
92
vtkGeoTransform
(
const
vtkGeoTransform
& );
// Not implemented.
93
void
operator = (
const
vtkGeoTransform
& );
// Not implemented.
94
};
95
96
#endif // __vtkGeoTransform_h
Generated on Thu May 24 2012 22:22:23 for VTK by
1.8.1