36 #ifdef CHECK_MEMORY_LEAKS
38 #endif // CHECK_MEMORY_LEAKS
48 myViewPort(viewPort) {}
106 if (ratio < canvasRatio) {
SUMOReal getHeight() const
Returns the height of the boundary.
void growWidth(SUMOReal by)
SUMOReal getWidth() const
Returns the width of the boudary.
A class that stores a 2D geometrical boundary.
Boundary patchedViewPort()
virtual bool onLeftBtnRelease(void *data)
virtual bool onRightBtnRelease(void *data)
GUISUMOAbstractView & myCallback
The parent window (canvas to scale)
virtual void onLeftBtnPress(void *data)
FXint getMouseXPosition() const
Returns the last mouse x-position an event occured at.
Boundary myViewPort
the intended viewport
virtual void onMouseWheel(void *data)
FXint getMouseYPosition() const
Returns the last mouse y-position an event occured at.
GUIPerspectiveChanger(GUISUMOAbstractView &callBack, const Boundary &viewPort)
Constructor.
virtual void onMouseMove(void *data)
virtual void onRightBtnPress(void *data)
void growHeight(SUMOReal by)
FXint myMouseXPosition
the current mouse position
virtual ~GUIPerspectiveChanger()
Destructor.