Home
Categories
Dictionnary
Download
Project Details
Changes Log
Who We Are
FAQ
License

Maps3D internal properties


    1  Day and night properties
    2  Selection properties
    3  Winder rose properties
    4  Projection properties
    5  Camera properties
    6  Fields static parameters
       6.1  In the Map3DRenderer class
       6.2  In the SrtmPlot class
    7  Renderers parameters
    8  Notes

These properties are internal configuration properties specifically used by the maps3D. All these properties are hard−coded but should be specified through the Map3dWidget. These internal parameters are hardcoded, but they probably need to be extracted to be set them as configuration properties.

Day and night properties

Several properties allow to configure how day / night behavior for the Map3dWidget is handled:
      public class Map3DRenderer extends AbstractMapRenderer {
      //sun light
      private static final int FPS = 60;
      private final boolean sunCanMove = false;
      private final boolean alwaysNearZenith = false;

These properties are hard−coded in the Map3DRenderer class but should be specified through configuration properties.

Selection properties

It is possible to configure how Map Items 3D selections will be handled:
      public class Map3DRenderer extends AbstractMapRenderer {
      public static boolean internalMap3Dselection = false;

It is hard−coded in the Map3DRenderer class but should be specified through the Map3dWidget.

Winder rose properties

The Winder Rose is always visible in the Map3D widget. It is hard−coded in the Map3DRenderer class but should be specified through configuration properties.

      public class Map3DRenderer extends AbstractMapRenderer {
      //winder rose 2D
      private final boolean showWinderRose = true;

Projection properties

There are two specific properties for the 3D projection: These properties are hard−coded in the MapLM3DProjection class but should be specified through configuration properties.


      public static final double SCALE_PROJECTION = 0.03333;
      public static double SCALE_PROJECTION_Z_RATIO = 4.0;     

Camera properties

The Camera properties specify at which speed the Camera position and orientation will be modified relative to user drag events.

      public class Camera3DController {
      private static final double MOUSE_SPEED = 0.1; //speed of mouse/touch
      private static final double ROTATION_SPEED = 2.0; //speed of rotation
      private final double ZOOM_MULTIPLIER = 300.0; // zoom

These properties are hard−coded in the Camera3DController class but should be specified through through configuration properties.

Fields static parameters

Some parameters for 3D terrain rendering are hardcoded.

In the Map3DRenderer class

In the SrtmPlot class

Renderers parameters

There is a renderersParameters.properties internal file who help to define two hardcoded properties:
      FlightPlanPartRenderer.legendMaxCamDistance=150000
      FlightPlanPartRenderer.legendMaxLookAtCamDistance=300000

Notes

  1. The color is a variant of Green
  2. It will be used for the diffuseMap of the plots
  3. Beware that the palette itelf is hard coded in the SrtmPlot file

See Also


Category: maps3d Category: conf

Copyright 2016 Dassault Aviation. All Rights Reserved. Documentation and source under the GPL v2 licence

Project Web Hosted by SourceForge.net Copyright 1999-2010 - Geeknet, Inc., All Rights Reserved About - Legal - Help