 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
18 #ifndef GUIDialog_EditViewport_h
19 #define GUIDialog_EditViewport_h
78 long onCmdOk(FXObject*, FXSelector,
void*);
84 long onCmdLoad(FXObject*, FXSelector,
void*);
87 long onCmdSave(FXObject*, FXSelector,
void*);
98 void setValues(
double zoom,
double xoff,
double yoff,
double rotation);
long onCmdCancel(FXObject *, FXSelector, void *)
Called when the user wants to restore the viewport.
long onCmdOk(FXObject *, FXSelector, void *)
Called when the user wants to keep the viewport.
Static storage of an output device and its base (abstract) implementation.
void writeXML(OutputDevice &dev)
write the settings to the given device
FXButton * mySaveButton
save button
FXRealSpinner * myZoom
The spin dialers used to change the view.
void setOldValues(const Position &lookFrom, const Position &lookAt, double rotation)
Resets old values.
FXButton * myLoadButton
load button
A dialog to change the viewport.
FXRealSpinner * myLookAtX
The spin dialers used to change the view at (osg only)
GUISUMOAbstractView * myParent
The calling view.
long onCmdLoad(FXObject *, FXSelector, void *)
Called when the user wants to load a viewport.
GUIDialog_EditViewport()
FOX needs this.
void saveWindowPos()
save window position to the registry
~GUIDialog_EditViewport()
Destructor.
A point in 2D or 3D with translation and scaling methods.
Position myOldLookFrom
The old viewport.
long onCmdSave(FXObject *, FXSelector, void *)
Called when the user wants to save a viewport.
void show()
overload show function to focus always in OK Button
FXButton * myOKButton
OK button.
void setValues(double zoom, double xoff, double yoff, double rotation)
Sets the given values into the dialog.
FXRealSpinner * myRotation
bool haveGrabbed() const
Returns the information whether one of the spin dialers is grabbed.
FXRealSpinner * myLookAtZ
FXRealSpinner * myLookAtY
FXButton * myCancelButton
Cancel button.
long onCmdChanged(FXObject *, FXSelector, void *)
Called when the user changes the viewport.