예제 #1
0
 @Override
 public void restoreStates(Controller c) throws Exception {
   setFaceColor(c.getProperty(getClass(), "faceColor", DEFAULT_TERRAIN_COLOR));
   setTransparency(c.getProperty(getClass(), "transparency", DEFAULT_TRANSPARENCY));
   setTransparencyEnabled(
       c.getProperty(getClass(), "transparencyEnabled", DEFAULT_TRANSPARENCY_ENABLED));
   setFacesReflecting(c.getProperty(getClass(), "facesReflecting", DEFAULT_FACES_REFLECTING));
   setFaceReflection(c.getProperty(getClass(), "faceReflection", DEFAULT_FACE_REFLECTION));
   setReflectSceneContent(c.getProperty(getClass(), "reflectSceneContent", false));
   textureInspector.setTextures(c.getProperty(getClass(), "textures", textures));
   textureInspector.setTexture(c.getProperty(getClass(), "texture", DEFAULT_TEXTURE));
   textureInspector.setTextureUScale(
       c.getProperty(getClass(), "textureScale", DEFAULT_TEXTURE_SCALE));
   setVisible(c.getProperty(getClass(), "visible", true));
   updateAll();
   super.restoreStates(c);
 }