GrafitiDemo.DemoObject.DemoObject C# (CSharp) Method

DemoObject() public method

public DemoObject ( DemoObjectManager objectManager, Viewer viewer, int fiducialId, float x, float y, float angle ) : System
objectManager DemoObjectManager
viewer Viewer
fiducialId int
x float
y float
angle float
return System
        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);
        }