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