00001 /****************************************************************************/ 00007 // A class that allows to steer the visual output in dependence to user 00008 /****************************************************************************/ 00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00010 // Copyright 2001-2010 DLR (http://www.dlr.de/) and contributors 00011 /****************************************************************************/ 00012 // 00013 // This program is free software; you can redistribute it and/or modify 00014 // it under the terms of the GNU General Public License as published by 00015 // the Free Software Foundation; either version 2 of the License, or 00016 // (at your option) any later version. 00017 // 00018 /****************************************************************************/ 00019 00020 00021 // =========================================================================== 00022 // included modules 00023 // =========================================================================== 00024 #ifdef _MSC_VER 00025 #include <windows_config.h> 00026 #else 00027 #include <config.h> 00028 #endif 00029 00030 #include "GUISUMOAbstractView.h" 00031 #include "GUIPerspectiveChanger.h" 00032 00033 #ifdef CHECK_MEMORY_LEAKS 00034 #include <foreign/nvwa/debug_new.h> 00035 #endif // CHECK_MEMORY_LEAKS 00036 00037 00038 // =========================================================================== 00039 // method definitions 00040 // =========================================================================== 00041 GUIPerspectiveChanger::GUIPerspectiveChanger(GUISUMOAbstractView &callBack) 00042 : myCallback(callBack) {} 00043 00044 00045 GUIPerspectiveChanger::~GUIPerspectiveChanger() {} 00046 00047 00048 void 00049 GUIPerspectiveChanger::setNetSizes(size_t width, size_t height) { 00050 myNetWidth = width; 00051 myNetHeight = height; 00052 } 00053 00054 00055 void 00056 GUIPerspectiveChanger::applyCanvasSize(size_t width, size_t height) { 00057 myCanvasWidth = width; 00058 myCanvasHeight = height; 00059 } 00060 00061 00062 void 00063 GUIPerspectiveChanger::onLeftBtnPress(void*) {} 00064 00065 00066 bool 00067 GUIPerspectiveChanger::onLeftBtnRelease(void*) { 00068 return false; 00069 } 00070 00071 00072 void 00073 GUIPerspectiveChanger::onRightBtnPress(void*) {} 00074 00075 00076 bool 00077 GUIPerspectiveChanger::onRightBtnRelease(void*) { 00078 return false; 00079 } 00080 00081 00082 void 00083 GUIPerspectiveChanger::onMouseWheel(void *) {} 00084 00085 00086 void 00087 GUIPerspectiveChanger::onMouseMove(void *) {} 00088 00089 00090 FXint 00091 GUIPerspectiveChanger::getMouseXPosition() const { 00092 return myMouseXPosition; 00093 } 00094 00095 00096 FXint 00097 GUIPerspectiveChanger::getMouseYPosition() const { 00098 return myMouseYPosition; 00099 } 00100 00101 00102 00103 /****************************************************************************/ 00104
1.5.6