![]() |
VR-Forces 5.0.3 Developer's Guide
|
A widget class for managing different camera views the currently selected observer can be placed in.

Protected Member Functions | |
| DtObserverViewsWidget (DtDe &de, QWidget *parent=0) | |
| virtual void | activate () |
| virtual void | deactivate () |
| void | setupUi (QWidget *p) |
| virtual void | insertObserverView (int index, const DtObserverViewInfoViewerData &observerData) |
| virtual void | clearObserverViews () |
| virtual void | deleteView (const std::string &, DtObserverViewsManager::ViewProjection projection) |
| virtual void | renameObserverRecord (const std::string &newName, const std::string &oldName) |
| virtual void | setDefaultView (const std::string &viewName, DtObserverViewsManager::ViewProjection projection) |
| virtual void | unSetDefaultView (const std::string &viewName, DtObserverViewsManager::ViewProjection projection) |
| virtual bool | eventFilter (QObject *obj, QEvent *event) override |
| virtual void | dragEnterEvent (QDragEnterEvent *event) override |
| virtual void | dropEvent (QDropEvent *event) override |
Private Attributes | |
| friend | DtObserverViewsWidgetCreator |
|
virtual |
DTOR.
|
protected |
Constructor of the page.
|
virtual |
Get the icon of the page.
|
virtual |
Get the title of the page.
| bool makVrv::DtObserverViewsWidget::getClickedObserverViewInfo | ( | DtUnicode & | viewName, |
| DtObserverViewsManager::ViewProjection & | projection | ||
| ) | const |
Gets the name and projection mode of the clicked observer view. Returns false if there is no currently click object.
|
virtual |
pops up an action confirmation message when the user is modifying the observers in the list
Implements makVrv::DtObserverViewsWidgetInterface.
|
virtual |
Raises a confirmation message box to clear the contents of the observer views list.
Implements makVrv::DtObserverViewsWidgetInterface.
|
virtual |
Raises a confirmation message box to associate the current contents of the observer views list with the currently loaded terrain.
Implements makVrv::DtObserverViewsWidgetInterface.
|
virtual |
Raises a confirmation message box to dissociate any observer views that are currently associated with the currently loaded terrain.
Implements makVrv::DtObserverViewsWidgetInterface.
|
virtual |
Raises a message box offering options to 'Save As' or 'Don't Save'. If the mySaveEnabled flag is true, the box will also contain the 'Save' option. If 'Save As' is chosen, it will call DtStaticFileDialog::getSaveFileNameWithExtension to request a file name, followed by a signal_saveObserverViewsFileAs if a filename has been selected; 'Save' generates a signal_saveObserverViewsFile.
Implements makVrv::DtObserverViewsWidgetInterface.
|
virtual |
Saves a single observer view.
Implements makVrv::DtObserverViewsWidgetInterface.
|
virtual |
Set the column size of the Observer view Table Widget.
Implements makVrv::DtObserverViewsWidgetInterface.
|
protectedvirtual |
Called when the page is displayed.
|
protectedvirtual |
Called when the page is hidden.
|
protected |
Sets up the contents of the widget onto the supplied parent.
|
protectedvirtual |
Adds a new observer view mode, name and is default attributes to the list.
Implements makVrv::DtObserverViewsWidgetInterface.
Reimplemented in makVrf::DtVrfObserverViewsWidget.
|
protectedvirtual |
Clears out observer views list.
Implements makVrv::DtObserverViewsWidgetInterface.
|
protectedvirtual |
Removes the specified view from the observers view list.
Implements makVrv::DtObserverViewsWidgetInterface.
|
protectedvirtual |
Renames the observer record from old name to new name.
Implements makVrv::DtObserverViewsWidgetInterface.
|
protectedvirtual |
Set a view as default.
Implements makVrv::DtObserverViewsWidgetInterface.
|
protectedvirtual |
unset a default view
Implements makVrv::DtObserverViewsWidgetInterface.
|
overrideprotectedvirtual |
override for the QDialog eventFilter function, used to filter everything except a few event types.
|
overrideprotectedvirtual |
override for the QWidget drawEnterEvent function, used to determine if the dropped item is an osrx file.
|
overrideprotectedvirtual |
override for the QWidget dropEvent function, used to load the dropped osrx file.
|
protectedvirtualslot |
Calls down to logic to capture view and add it back here.
|
protectedvirtualslot |
Calls down to logic to set a new observer view. Also will enable/disable buttons on selection Won't do anything if CTRL is pressed.
|
protectedvirtualslot |
Calls down to logic to set a new observer view. Also will enable/disable buttons on selection Animates the observer view change if CTRL is pressed.
|
protectedvirtualslot |
Calls down to logic to clear out observer views.
|
protectedvirtualslot |
Puts up dialog to allow user to specify a file to save all current views in and calls down to logic to do the save.
|
protectedvirtualslot |
Puts up dialog to allow user to specify a file to save the currently selected view in and calls down to logic to do the save.
|
protectedvirtualslot |
Calls down to logic to load file and place view records found in there into the interface.
|
protectedvirtualslot |
Called when any aspect of the item data has changed. Will check to see if the name needs to be updated. If the name is the same as another name, will warn the user.
|
protectedslot |
Determines the item that was clicked on and displays a context menu.
|
protectedvirtualslot |
dissociate the views from the current terrain loaded in scene
|
protectedvirtualslot |
enables the observer views list
|
protectedvirtualslot |
enables the "add view" button
|
protectedvirtualslot |
enables the "associate views to terrain" button
|
protectedvirtualslot |
enables the "save views to file" button
|
protectedvirtualslot |
If this is true, the dialog that is used when the "Save To File" icon is pressed will contain a Save button (in addition to the Save As...) button.
|
protectedvirtualslot |
enables the "dissociate views" button
|
protectedvirtualslot |
enables the "load views" button
|
protectedvirtualslot |
enables the "clear views" button
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |