Example #1
0
        // Use this for initialization
        public override void utInit(SimpleFacade simpleFacade)
        {
            base.utInit(simpleFacade);



            switch (ubitrackEvent)
            {
            case UbitrackEventType.Pull: {
                throw new Exception("Pull not supported yet");
            }

            case UbitrackEventType.Push: {
                m_poseReciever = simpleFacade.getPushSourcePose(patternID);

                if (m_poseReciever == null)
                {
                    throw new Exception("SimplePoseReceiver could not be set for poseID:" + patternID);
                }
                break;
            }

            default:
                break;
            }
        }
Example #2
0
	// Use this for initialization
    public override void utInit(Ubitrack.SimpleFacade simpleFacade)
    {
        base.utInit(simpleFacade);
	
		
		
		switch(ubitrackEvent)
		{
		case UbitrackEventType.Pull:{
				throw new Exception("Pull not supported yet");				
			}
		case UbitrackEventType.Push:{
                m_poseReciever = simpleFacade.getPushSourcePose(patternID);                
			
				if(m_poseReciever == null)
				{
                    throw new Exception("SimplePoseReceiver could not be set for poseID:" + patternID);
				}
				break;
			}
		default:
		break;
		}    
	}