1 /** 2 * potree.js 3 * http://potree.org 4 * 5 * Copyright 2012, Markus Sch�tz 6 * Licensed under the GPL Version 2 or later. 7 * - http://potree.org/wp/?page_id=7 8 * - http://www.gnu.org/licenses/gpl-3.0.html 9 * 10 */ 11 12 /** 13 * 14 * @class CamHandlers define different types of navigation behaviour. This class is intended to be subclassed. 15 * 16 * @author Markus Sch�tz 17 */ 18 function CamHandler(){ 19 20 } 21 22 23 CamHandler.prototype.update = function(time){ 24 // override in subclass 25 }; 26 27 CamHandler.prototype.invokeKeyDown = function(event){ 28 // override in subclass 29 }; 30 31 CamHandler.prototype.invokeKeyUp = function(event){ 32 // override in subclass 33 }; 34 35 CamHandler.prototype.invokeKeyPress = function(event){ 36 // override in subclass 37 }; 38 39 CamHandler.prototype.invokeMouseDown = function(event){ 40 // override in subclass 41 }; 42 43 CamHandler.prototype.invokeMouseUp = function(event){ 44 // override in subclass 45 }; 46 47 CamHandler.prototype.invokeMouseMove = function(event, diffX, diffY){ 48 // override in subclass 49 }; 50 51 CamHandler.prototype.invokeMouseDrag = function(event, pressedKeys, diffX, diffY){ 52 // override in subclass 53 }; 54 55 CamHandler.prototype.invokeMouseWheel = function(delta){ 56 // override in subclass 57 };