Package ca.nengo.ui

Examples of ca.nengo.ui.NengoGraphics


  /**
   * Builds a NeoGraphics User Interface
   */
  private UINetwork buildUI() {
    NengoGraphics nengoGraphics = new NengoGraphics();

    TrackedStatusMsg task;
    task = new TrackedStatusMsg("Creating Model UI");
    if (networkUI == null) {

      networkUI = new UINetwork(network);
      nengoGraphics.getWorld().getGround().addChild(networkUI);
      networkUI.openViewer();
    }

    processNetwork(networkUI);
    task.finished();
View Full Code Here


        int response = JOptionPane.showConfirmDialog(UIEnvironment
                .getInstance(),
                "Are you sure you want to remove all objects from Nengo?",
                "Clear all?", JOptionPane.YES_NO_OPTION);
        if (response == 0) {
          NengoGraphics nengo = NengoGraphics.getInstance();
            Iterable<WorldObject> modelsToRemove = nengo.getWorld().getGround().getChildren();
            Iterator<WorldObject> iter = modelsToRemove.iterator();
            List<WorldObject> copy = new ArrayList<WorldObject>();
            while (iter.hasNext())
                copy.add(iter.next());
            for (WorldObject modelToRemove : copy) {
            nengo.removeNodeModel((Node) ((ModelObject) modelToRemove).getModel());
          }
           
            //clear script console
            nengo.getScriptConsole().reset(false);
           
        } else {
            throw new UserCancelledException();
        }
    }
View Full Code Here

  private void run() throws InterruptedException, InvocationTargetException {

    SwingUtilities.invokeAndWait(new Runnable() {
      public void run() {
        try {
          createUINetwork(new NengoGraphics());
        } catch (StructuralException e) {
          e.printStackTrace();
        } catch (SimulationException e) {
          e.printStackTrace();
        }
View Full Code Here

   * @param args
   */
  public static void main(String[] args) {

    printMemoryUsed("Start");
    neoGraphics = new NengoGraphics();

    // Window windows = new Window[NUM_OF_LOOPS];
    for (i = 0; i < NUM_OF_LOOPS; i++) {

      try {
View Full Code Here

  private void run() throws InterruptedException, InvocationTargetException {

    SwingUtilities.invokeAndWait(new Runnable() {
      public void run() {
        try {
          createUINetwork(new NengoGraphics());
        } catch (StructuralException e) {
          e.printStackTrace();
        } catch (SimulationException e) {
          e.printStackTrace();
        }
View Full Code Here

TOP

Related Classes of ca.nengo.ui.NengoGraphics

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.