Revision 514
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.app/org.gvsig.view3d.app.common/src/main/java/org/gvsig/view3d/app/properties/General3DPreferencePage.java | ||
---|---|---|
67 | 67 |
|
68 | 68 |
public void initializeValues() { |
69 | 69 |
|
70 |
View3DSwingManager swingManager = View3DSwingLocator.getManager(); |
|
71 |
GeneralProperties3D generalProperties3D = |
|
72 |
swingManager.getGeneral3DProperties(); |
|
73 |
|
|
74 |
int width = |
|
75 |
(Integer) this.pluginProperties.getDynValue("defultViewWidth"); |
|
76 |
int height = |
|
77 |
(Integer) this.pluginProperties.getDynValue("defultViewHeight"); |
|
78 |
boolean atmosphereVisibility = |
|
79 |
(Boolean) this.pluginProperties.getDynValue("atmosphereVisibility"); |
|
80 |
boolean northIndicatorVisibility = |
|
81 |
(Boolean) this.pluginProperties |
|
82 |
.getDynValue("northIndicatorVisibility"); |
|
83 |
boolean minimapVisibility = |
|
84 |
(Boolean) this.pluginProperties.getDynValue("minimapVisibility"); |
|
85 |
boolean starsBackgroundVisibility = |
|
86 |
(Boolean) this.pluginProperties |
|
87 |
.getDynValue("starsBackgroundVisibility"); |
|
88 |
boolean scaleVisibility = |
|
89 |
(Boolean) this.pluginProperties.getDynValue("scaleVisibility"); |
|
90 |
boolean viewportAnimation = |
|
91 |
(Boolean) this.pluginProperties.getDynValue("viewportAnimation"); |
|
92 |
String cachePath = |
|
93 |
(String) this.pluginProperties.getDynValue("cachePath"); |
|
94 |
|
|
95 |
generalProperties3D.setDefaultViewWidth(width); |
|
96 |
generalProperties3D.setDefaultViewHeight(height); |
|
97 |
generalProperties3D.setAtmosphereVisibility(atmosphereVisibility); |
|
98 |
generalProperties3D.setMinimapVisibility(minimapVisibility); |
|
99 |
generalProperties3D |
|
100 |
.setNorthIndicatorVisibility(northIndicatorVisibility); |
|
101 |
generalProperties3D |
|
102 |
.setStarsBackgroundVisibility(starsBackgroundVisibility); |
|
103 |
generalProperties3D.setScaleVisibility(scaleVisibility); |
|
104 |
generalProperties3D.setViewPortAnimation(viewportAnimation); |
|
105 |
generalProperties3D.setCachePath(new File(cachePath)); |
|
106 |
|
|
107 |
swingManager.setGeneral3DProperties(generalProperties3D); |
|
108 |
|
|
70 | 109 |
} |
71 | 110 |
|
72 | 111 |
public void initializeDefaults() { |
Also available in: Unified diff