Revision 15490 import/ext3D/branches/ext3D_v1.1/lib3DMap/src/com/iver/ai2/gvsig3d/map3d/MapContext3D.java
MapContext3D.java | ||
---|---|---|
554 | 554 |
e.printStackTrace(); |
555 | 555 |
} |
556 | 556 |
if (layerExtent == null) { // hack for missing extents |
557 |
if (m_planet.getType() == PlanetType.SPHERICAL_MODE)
|
|
557 |
if (m_planet.getType() == PlanetType.GEOCENTRIC)
|
|
558 | 558 |
layerExtent = new Rectangle2D.Double(-180.0, -90.0, 360.0, |
559 | 559 |
180.0); |
560 | 560 |
else |
... | ... | |
744 | 744 |
Vec3 center = new Vec3(); |
745 | 745 |
Vec3 up = new Vec3(); |
746 | 746 |
// Calculate positions for PLAIN MODE. |
747 |
if (planetType == PlanetType.PLANE_MODE) {
|
|
747 |
if (planetType == PlanetType.PROJECTED) {
|
|
748 | 748 |
|
749 | 749 |
double difx = (geoExtent.getMaxX() - geoExtent.getX()) / 1.2d; |
750 | 750 |
double dify = (geoExtent.getMaxY() - geoExtent.getY()) / 1.2d; |
... | ... | |
767 | 767 |
up.setZ(0.0); |
768 | 768 |
} else |
769 | 769 |
// Calculate positions for SPHERICAL MODE. |
770 |
if (planetType == PlanetType.SPHERICAL_MODE) {
|
|
770 |
if (planetType == PlanetType.PROJECTED) {
|
|
771 | 771 |
// EYE |
772 | 772 |
Vec3 aux = new Vec3(cenLat, cenLon, elevation); |
773 | 773 |
eye = m_planet.convertLatLongHeightToXYZ(aux); |
Also available in: Unified diff