Package engine.parameters

Examples of engine.parameters.AbstractParam


   * @throws IOException
   */
  public static void saveChannel(Writer w, Channel c) throws IOException {
    w.write(c.getClass().getName() + "\n");
    for (int i = 0; i < c.m_LocalParameters.size(); i++) {
      AbstractParam param = c.m_LocalParameters.get(i);
      w.write(param.getName().replace(' ', '_') + " ");
      param.save(w);
    }
    w.write("endparameters\n");
  }
View Full Code Here


      Channel c = (Channel) Class.forName(name).newInstance();
      // Logger.log(null, "loadChannel " + c);

      String t;
      while (!(t = s.next()).equals("endparameters")) {
        AbstractParam param;
        if ((param = c.getParamByName(t.replace('_', ' '))) != null) {
          param.load(s);
        } else {
          Logger.logWarning(null, " loading of param " + t + " failed.");
        }
      }
      AbstractParam.GLOBAL_SILENT = false;
View Full Code Here

    if ((idx = s.nextInt())!= -1) setHeightmapTextureNode(TextureEditor.INSTANCE.m_GraphDrawPanel.graph.allNodes.get(idx));
   
    String t;
    while (!(t = s.next()).equals("endglpreview")) {
      if (TextureEditor.GL_ENABLED) {
        AbstractParam param;
        if ((param = glcanvas.params.getParamByName(t.replace('_', ' '))) != null) {
          param.load(s);
        } else {
          Logger.logWarning(null, " loading of param " + t + " failed.");
        }
      }
    }
View Full Code Here

TOP

Related Classes of engine.parameters.AbstractParam

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.