Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
3685422f
Commit
3685422f
authored
Feb 24, 2016
by
Stéphane Albert
Browse files
BUG: MANTIS-1140: Reverted commit
73c5defc
.
parent
68c43d05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Modules/Visualization/Ice/include/otbGeoInterface.h
View file @
3685422f
...
...
@@ -73,7 +73,9 @@ public:
*
* @return true if the operation has succeeded; false otherwise.
*/
template
<
typename
T
>
bool
TransformFromViewport
(
T
&
out
,
const
T
&
in
,
bool
isPhysical
=
true
)
const
;
virtual
bool
TransformFromViewport
(
Point2d
&
out
,
const
Point2d
&
in
,
bool
isPhysical
=
true
)
const
;
/**
* Transform given point from viewport coordinate-system to this
...
...
@@ -88,8 +90,44 @@ public:
*
* @return true if the operation has succeeded; false otherwise.
*/
template
<
typename
T
>
bool
TransformToViewport
(
T
&
out
,
const
T
&
in
,
bool
isPhysical
=
true
)
const
;
virtual
bool
TransformFromViewport
(
Point2f
&
out
,
const
Point2f
&
in
,
bool
isPhysical
=
true
)
const
;
/**
* Transform given point from viewport coordinate-system to this
* actor coordinate-system.
*
* By default this method return false. It should be implemented in
* derived classes if needed.
*
* @param out The transformed point (in this actor coordinate-system).
* @param in The given point (in viewport coordinate-system).
* @param isPhysical Indicate physical coordates are desired.
*
* @return true if the operation has succeeded; false otherwise.
*/
virtual
bool
TransformToViewport
(
Point2d
&
out
,
const
Point2d
&
in
,
bool
isPhysical
=
true
)
const
;
/**
* Transform given point from this actor coordinate-system to
* viewport coordinate-system.
*
* By default this method return false. It should be implemented in
* derived classes if needed.
*
* @param out The transformed point (in viewport coordinate-system).
* @param in The given point (in viewport coordinate-system).
* @param isPhysical Indicate physical coordates are desired.
*
* @return true if the operation has succeeded; false otherwise.
*/
virtual
bool
TransformToViewport
(
Point2f
&
out
,
const
Point2f
&
in
,
bool
isPhysical
=
true
)
const
;
/**
*/
virtual
std
::
string
GetWkt
()
const
;
...
...
Modules/Visualization/Ice/src/otbGeoInterface.cxx
View file @
3685422f
...
...
@@ -34,9 +34,9 @@ GeoInterface
}
template
<
>
bool
bool
GeoInterface
::
TransformFromViewport
<
GeoInterface
::
Point2d
>
(
Point2d
&
,
::
TransformFromViewport
(
Point2d
&
,
const
Point2d
&
,
bool
)
const
{
...
...
@@ -44,9 +44,9 @@ GeoInterface
}
template
<
>
bool
bool
GeoInterface
::
TransformFromViewport
<
GeoInterface
::
Point2f
>
(
Point2f
&
out
,
::
TransformFromViewport
(
Point2f
&
out
,
const
Point2f
&
in
,
bool
isPhysical
)
const
{
...
...
@@ -64,9 +64,9 @@ GeoInterface
}
template
<
>
bool
bool
GeoInterface
::
TransformToViewport
<
GeoInterface
::
Point2d
>
(
Point2d
&
,
::
TransformToViewport
(
Point2d
&
,
const
Point2d
&
,
bool
)
const
{
...
...
@@ -74,9 +74,9 @@ GeoInterface
}
template
<
>
bool
bool
GeoInterface
::
TransformToViewport
<
GeoInterface
::
Point2f
>
(
Point2f
&
out
,
::
TransformToViewport
(
Point2f
&
out
,
const
Point2f
&
in
,
bool
isPhysical
)
const
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment