22 #ifndef GUIPerspectiveChanger_h 23 #define GUIPerspectiveChanger_h virtual void setViewport(SUMOReal zoom, SUMOReal xPos, SUMOReal yPos)=0
Sets the viewport Used for: Adapting a new viewport.
virtual void changeCanvassLeft(int change)=0
virtual SUMOReal getZoom() const =0
Returns the zoom factor computed stored in this changer.
GUIPerspectiveChanger & operator=(const GUIPerspectiveChanger &)
Invalidated assignment operator.
void setViewport(const Boundary &viewPort)
A class that stores a 2D geometrical boundary.
Boundary patchedViewPort()
virtual SUMOReal getXPos() const =0
Returns the x-offset of the field to show stored in this changer.
A point in 2D or 3D with translation and scaling methods.
virtual bool onLeftBtnRelease(void *data)
virtual bool onRightBtnRelease(void *data)
GUISUMOAbstractView & myCallback
The parent window (canvas to scale)
virtual void onLeftBtnPress(void *data)
Boundary getViewport(bool fixRatio=true)
FXint getMouseXPosition() const
Returns the last mouse x-position an event occured at.
Boundary myViewPort
the intended viewport
virtual void onMouseWheel(void *data)
virtual long onKeyPress(void *data)
FXint getMouseYPosition() const
Returns the last mouse y-position an event occured at.
GUIPerspectiveChanger(GUISUMOAbstractView &callBack, const Boundary &viewPort)
Constructor.
virtual void centerTo(const Position &pos, SUMOReal radius, bool applyZoom=true)=0
Centers the view to the given position, setting it to a size that covers the radius. Used for: Centering of vehicles and junctions.
virtual void onMouseMove(void *data)
virtual void onRightBtnPress(void *data)
FXint myMouseXPosition
the current mouse position
virtual SUMOReal getYPos() const =0
Returns the y-offset of the field to show stored in this changer.
virtual long onKeyRelease(void *data)
virtual ~GUIPerspectiveChanger()
Destructor.
virtual SUMOReal getRotation() const =0
Returns the rotation of the canvas stored in this changer.