def start(): # ----- Initialization ----- og.create_window("OpenGraphiti : Data Visualization Engine", 1024, 728) og.create_entity("graph") og.create_visualizer("space") #og.create_visualizer("network") og.create_visualizer("globe") og.create_visualizer("world") # TODO: og.create_visualizer("timeline") og.create_visualizer("timeseries") og.create_visualizer("heightmap") og.create_visualizer("shell") og.create_visualizer("logo") # ----- Console Callbacks ------ og.register_script('#idle', 'dashboard.on_idle()') global job_id job_id = og.add_job("#idle", 1.0) og.register_script('#tick', 'dashboard.on_tick()') og.add_job("#tick", 0.5) t = threading.Thread(target=thread_zmq, args=()) t.daemon = True t.start() og.register_script('#started', 'dashboard.on_started()') # ----- og.start()
def start(): leap_context["state"] = "start" listener = LeapListener() controller = Leap.Controller() controller.add_listener(listener) graphiti.register_script("#started", "leap.on_started()") graphiti.register_script('#idle', 'leap.on_idle()') graphiti.add_job("#idle", delta) graphiti.create_window("OpenGraphiti : Data Visualization Engine", 0, 0) graphiti.create_entity("graph") graphiti.create_visualizer("space") graphiti.start() controller.remove_listener(listener)
def start(): leap_context["state"] = "start" listener = LeapListener() controller = Leap.Controller() controller.add_listener(listener) graphiti.register_script("#started", "leap.on_started()") graphiti.register_script('#idle', 'leap.on_idle()') graphiti.add_job("#idle", delta); graphiti.create_window("OpenGraphiti : Data Visualization Engine", 0, 0) graphiti.create_entity("graph") graphiti.create_visualizer("space") graphiti.start() controller.remove_listener(listener)