 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef GUIDialog_EditViewport_h
18 #define GUIDialog_EditViewport_h
77 long onCmdOk(FXObject*, FXSelector,
void*);
83 long onCmdLoad(FXObject*, FXSelector,
void*);
86 long onCmdSave(FXObject*, FXSelector,
void*);
97 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.
void saveWindowPos()
save window position to the registry
~GUIDialog_EditViewport()
Destructor.
#define FOX_CONSTRUCTOR(classname)
A point in 2D or 3D with translation and scaling methods.
Position myOldLookFrom
The old viewport.
GUIDialog_EditViewport(GUISUMOAbstractView *parent, const char *name, int x, int y)
Constructor.
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.