예제 #1
0
        public ViewerInputObserver(FrameworkElement control, IInputPublisher publisher, ICameraInputHandler inputHandler)
            : base(publisher, inputHandler)
        {
            this.inputHandler = inputHandler;

            RotationSensitivity = 1.5f;
        }
예제 #2
0
 //
 protected InputObserver(IInputPublisher publisher)
 {
     lock (loker) {
         currentSnapshot = new InputSnapshot();
         publisher.Subscrube(this);
     }
 }
예제 #3
0
 public void Dispose()
 {
     lock (loker) {
         publisher.UnSubscruber(this);
         if (!publisher.AnySubscrubers())
         {
             publisher.Dispose();
             publisher = null;
         }
     }
 }
예제 #4
0
 public CurrentInputObserver(FrameworkElement control, IInputPublisher publisher) : base(publisher)
 {
     this.currentSnapshot = new InputSnapshot();
     this.control         = control;
 }
예제 #5
0
 public RotateZoomPanInputObserver(IInputPublisher publisher, ICameraInputHandler inputHandler) : base(publisher)
 {
     this.externalInputHandler = inputHandler;
 }
예제 #6
0
 public ViewerInputObserver(FrameworkElement control, IInputPublisher publisher, ICameraInputHandler inputHandler)
     : base(publisher, inputHandler)
 {
     this.inputHandler = inputHandler;
 }
예제 #7
0
        public DefaultInputObserver(IInputPublisher publisher) : base(publisher)
        {
            this.currentSnapshot = new InputSnapshot();

            RotationSensitivity = 0.7f;
        }