public DemoObject(DemoObjectManager objectManager, Viewer viewer, int fiducialId, float x, float y, float angle) { m_targetRadius = 0.4f; m_objectManager = objectManager; m_viewer = viewer; m_id = fiducialId++; m_x = x; m_y = y; m_angle = angle; m_color = new MyColor(s_random.NextDouble(), s_random.NextDouble(), s_random.NextDouble()); GestureEventManager.SetPriorityNumber(typeof(BasicMultiFingerGR), m_objectManager.BasicMultiFingerGRConf, 0); GestureEventManager.RegisterHandler(typeof(BasicMultiFingerGR), m_objectManager.BasicMultiFingerGRConf, "Hover", OnHover); GestureEventManager.RegisterHandler(typeof(BasicMultiFingerGR), m_objectManager.BasicMultiFingerGRConf, "EndHover", OnEndHover); GestureEventManager.RegisterHandler(typeof(BasicMultiFingerGR), m_objectManager.BasicMultiFingerGRConf, "Tap", OnTap); //GestureEventManager.RegisterHandler(typeof(BasicMultiFingerGR), m_objectManager.BasicMultiFingerGRConf, "DoubleTap", OnDoubleTap); PinchingGRConfiguration m_pinchingGRConf = new PinchingGRConfiguration(true, this, false); GestureEventManager.SetPriorityNumber(typeof(PinchingGR), m_pinchingGRConf, 3); GestureEventManager.RegisterHandler(typeof(PinchingGR), m_pinchingGRConf, "Pinch", OnPinch); }
public DemoTrace(DemoGroup demoGroup, Trace trace) { m_color = demoGroup.Color; m_trace = trace; m_pointerSize = 0.01f; }