Search in sources :

Example 1 with OmniBox

use of spacegraph.space2d.widget.meta.OmniBox in project narchy by automenta.

the class GUI method main.

public static void main(String[] args) throws IOException, Narsese.NarseseException {
    NAR nar = NARchy.ui();
    // 10hz alpha
    Loop loop = nar.startFPS(10f);
    // ((NARLoop) loop).throttle.set(0.1f);
    // 1. try to open a Spacegraph openGL window
    logger.info("start SpaceGraph UI");
    // window(new ConsoleTerminal(new TextUI(nar).session(8f)) {
    // {
    // Util.pause(50); term.addInput(KeyStroke.fromString("<pageup>")); //HACK trigger redraw
    // }
    // }, 800, 600);
    PhyWall w = SpaceGraph.wall(800, 600);
    ((ZoomOrtho) w.root()).scaleMin = 100f;
    ((ZoomOrtho) w.root()).scaleMax = 1500;
    w.put(new Gridding(new OmniBox()), 6, 1);
    w.put(Vis.top(nar), 4, 4);
// nar.inputNarsese(new FileInputStream("/home/me/d/sumo_merge.nal"));
}
Also used : Loop(jcog.exe.Loop) Gridding(spacegraph.space2d.container.Gridding) PhyWall(spacegraph.space2d.widget.windo.PhyWall) OmniBox(spacegraph.space2d.widget.meta.OmniBox)

Aggregations

Loop (jcog.exe.Loop)1 Gridding (spacegraph.space2d.container.Gridding)1 OmniBox (spacegraph.space2d.widget.meta.OmniBox)1 PhyWall (spacegraph.space2d.widget.windo.PhyWall)1