 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
35 myViewPort(viewPort) {
131 if (ratio < canvasRatio) {
Boundary myViewPort
the intended viewport
FXint getMouseYPosition() const
Returns the last mouse y-position an event occurred at.
virtual void onRightBtnPress(void *data)
called when user press right button
double getHeight() const
Returns the height of the boundary (y-axis)
virtual void onMouseMove(void *data)
called when user moves mouse
Boundary getViewport(bool fixRatio=true)
get viewport
virtual long onKeyPress(void *data)
called when user press a key
virtual ~GUIPerspectiveChanger()
Destructor.
virtual bool onRightBtnRelease(void *data)
called when user releases right button
FXint getMouseXPosition() const
Returns the last mouse x-position an event occurred at.
virtual long onKeyRelease(void *data)
called when user releases a key
virtual void onMouseWheel(void *data)
called when user changes mouse wheel
A class that stores a 2D geometrical boundary.
double getWidth() const
Returns the width of the boudary (x-axis)
Boundary patchedViewPort()
patched viewPort with the same aspect ratio as the canvas
void growWidth(double by)
Increases the width of the boundary (x-axis)
virtual void onLeftBtnPress(void *data)
mouse functions
FXint myMouseXPosition
the current mouse position
virtual void setViewport(double zoom, double xPos, double yPos)=0
Sets the viewport Used for: Adapting a new viewport.
GUIPerspectiveChanger(GUISUMOAbstractView &callBack, const Boundary &viewPort)
Constructor.
virtual void onDoubleClicked(void *data)
called when user click two times
virtual bool onLeftBtnRelease(void *data)
called when user releases left button
GUISUMOAbstractView & myCallback
The parent window (canvas to scale)
void growHeight(double by)
Increases the height of the boundary (y-axis)