|
Developer Documentation
|
#include <OpenFlipper/widgets/coreWidget/CoreWidget.hh>
Signals | |
| void | clearAll () |
| void | loadMenu () |
| void | addEmptyObjectMenu () |
| void | saveMenu () |
| void | saveToMenu () |
| void | loadIniMenu () |
| void | saveIniMenu () |
| void | recentOpen (QAction *) |
| void | exit () |
| void | loadPlugin () |
| void | showPlugins () |
Logger | |
| void | log (Logtype _type, QString _message) |
| void | log (QString _message) |
Public Member Functions | |
| CoreWidget (QVector< ViewMode * > &_viewModes, std::vector< PluginInfo > &_plugins, QList< SlotInfo > &_coreSlots) | |
| constructor | |
| ~CoreWidget () | |
| destructor | |
GUI creation | |
| void | setupMenuBar () |
| Setup the main menubar. | |
Recent File Menu handling | |
| void | addRecent (QString _filename, DataType _type) |
| Add a recent file and update menu. | |
| void | updateRecent () |
| Update the recent files menu. | |
Private Slots | |
| void | closeEvent (QCloseEvent *event) |
| Called on applications close. | |
| void | slotShowSceneGraphDialog () |
| void | slotActivateExaminer () |
| void | slotLog (Logtype _type, QString _message) |
| Slot writing everything to the Logger widget. | |
| void | sceneRectChanged (const QRectF &rect) |
Private Attributes | |
| std::vector< PluginInfo > & | plugins_ |
Friends | |
| class | Core |
Keys | |
|
typedef std::multimap < std::pair< int, Qt::KeyboardModifiers > , std::pair< QObject *, int > > | KeyMap |
| typedefs | |
|
typedef std::pair < KeyMap::iterator, KeyMap::iterator > | KeyRange |
| typedefs | |
| std::vector< KeyBinding > | coreKeys_ |
| vector of keys registered to the core | |
| KeyMap | keys_ |
| mapping of all keys to registered keys and the corresponding plugins | |
| InverseKeyMap | invKeys_ |
| mapping of all registered keys and the corresponding plugins to currently assigned keys | |
| QList< SlotInfo > & | coreSlots_ |
| list of scripting slots from core | |
| bool | shiftPressed_ |
| Store the state of the shift key. | |
| void | loadKeyBindings (INIFile &_ini) |
| Load key assignments from a given INI file. | |
| void | saveKeyBindings (INIFile &_ini) |
| Store current key assignments to a given INI file. | |
| void | PluginKeyEvent (QKeyEvent *) |
| void | PluginKeyReleaseEvent (QKeyEvent *) |
| void | registerKey (int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false) |
| internal signal to register CoreWidget keys | |
| void | call (QString _expression, bool &_success) |
| call a scripting function | |
| void | slotRegisterKey (int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false) |
| key registration | |
| virtual void | keyPressEvent (QKeyEvent *_e) |
| Handle key events. | |
| virtual void | keyReleaseEvent (QKeyEvent *_e) |
| passes keyReleaseEvents to either the Core or a Plugin depending on who has registered the key | |
| bool | event (QEvent *event) |
| typedefs | |
| bool | eventFilter (QObject *_obj, QEvent *_event) |
| typedefs | |
| void | registerCoreKeys () |
| Register all events related to the core. | |
| void | coreKeyPressEvent () |
| handle key events for the core | |
| void | coreKeyPressEvent (QKeyEvent *_e) |
| Handle core key events. | |
| void | coreKeyReleaseEvent (QKeyEvent *_e) |
| if a keyReleaseEvent belongs to the core this functions is called | |
| KeyBinding | getKeyBinding (QObject *_plugin, int _keyIndex) |
| typedefs | |
| QString | getRPCName (QObject *_plugin) |
| typedefs | |
| void | slotAddKeyMapping (int _key, Qt::KeyboardModifiers _modifiers, QObject *_plugin, int _keyBindingID) |
| add a new key Mapping | |
| void | slotRegisterSlotKeyBindings () |
| register scripting slots to allow keyBindings | |
GUI Controls | |
| OpenFlipper::Options::LoggerState | loggerState_ |
| Set application to Fullscreen and back. | |
| uint | fullscreenState_ |
| Set application to Fullscreen and back. | |
| QSize | defaultIconSize_ |
| Set application to Fullscreen and back. | |
| void | toggleFullscreen () |
| Set application to Fullscreen and back. | |
| void | setFullscreen (bool _state) |
| Enable or disable fullscreen mode. | |
| void | toggleLogger () |
| Hide or show logging area. | |
| void | showLogger (OpenFlipper::Options::LoggerState _state) |
| Change visibility of the logger. | |
| void | showLoggerInSplitView (bool _show) |
| Show logger in splitter or not. | |
| void | updateInSceneLoggerGeometry () |
| Set in-scene logger geometry right. | |
| void | toggleToolbox () |
| Hide or show toolbox area. | |
| void | toggleStatusBar () |
| Change visibility of the Status Bar. | |
| void | setForceNativeCursor (bool _state) |
| Use native or gl painted cursor. | |
| QSize | defaultIconSize () |
| Set application to Fullscreen and back. | |
| void | showToolbox (bool _state) |
| Show or hide toolbox. | |
| void | showStatusBar (bool _state) |
| Show or hide status bar. | |
Tool Widgets / View Modes | |
| QVector< QWidget * > | toolWidgets_ |
| a List of all widgets in the toolbar | |
| QPushButton * | viewModeButton_ |
| a List of all widgets in the toolbar | |
| QMenu * | viewModeMenu_ |
| Submenu holding all ViewMode actions. | |
| QVector< ViewMode * > & | viewModes_ |
| List of currently available viewModes. | |
| void | slotRemoveViewMode (QString _name) |
| Remove viewMode. | |
| void | slotSetViewMode (QAction *action) |
| Slot for setting ViewMode from Menu. | |
| void | slotViewModeDialog () |
| Show a dialog in which the viewMode can be edited. | |
| void | slotViewChangeDialog () |
| Show a dialog in which the viewMode can be changed. | |
| void | initViewModes () |
| init ViewModes that were loaded via ini-file | |
| void | slotAddViewModeToolboxes (QString _mode, QStringList _usedWidgets) |
| Add or change Toolboxes for a ViewMode (non-userdefined viewMode) | |
| void | slotAddViewModeToolboxes (QString _mode, bool _custom, QStringList _usedWidgets) |
| Add or change Toolboxes for a ViewMode (_custom == userdefined viewMode) | |
| void | slotAddViewModeToolbars (QString _mode, QStringList _usedToolbars) |
| Add or change Toolbars for a ViewMode (non-userdefined viewMode) | |
| void | slotAddViewModeToolbars (QString _mode, bool _custom, QStringList _usedToolbars) |
| Add or change Toolbars for a ViewMode (_custom == userdefined viewMode) | |
| void | slotAddViewModeContextMenus (QString _mode, QStringList _usedToolbars) |
| Add or change Toolbars for a ViewMode (non-userdefined viewMode) | |
| void | slotAddViewModeContextMenus (QString _mode, bool _custom, QStringList _usedToolbars) |
| Add or change Toolbars for a ViewMode (_custom == userdefined viewMode) | |
| void | slotAddViewModeComplete (QString _mode, bool _custom, QStringList _toolboxes, QStringList _toolbars, QStringList _contextmenus) |
| Completly configure a view mode ( set toolbars, toolboxes, context menus, ... ) | |
| void | slotSetViewModeIcon (QString _mode, QString _iconName) |
| Sets the Icon for a given View Mode (non-userdefined viewMode) | |
| void | slotSetViewModeIcon (QString _mode, bool _custom, QString _iconName) |
| Sets the Icon for a given View Mode (_custom == userdefined viewMode) | |
| void | slotChangeView (QString _mode, QStringList _toolboxWidgets, QStringList _toolbars, QStringList _contextmenus, bool _expandAll=false) |
| Slot for Changing visible toolWidgets. | |
| void | setToolBoxOrientationOnTheRight (bool _toolBoxRight) |
| Set orientation of tool box (either on the right or the left side of the screen) | |
| void | showViewModeControls (bool _show) |
| Hide or show the View Mode controls. | |
| void | slotHideContextMenu () |
| Hide the context menu. | |
| void | setViewMode (QString _mode, bool _expandAll=false) |
| Set the view Mode to the given Mode. | |
| void | moveToolBoxToTop (QString _name) |
| Move a specific toolbox widget to the top of the side area. | |
| void | moveToolBoxToBottom (QString _name) |
| Move a specific toolbox widget to the bottom of the side area. | |
Basic Gui Elements | |
|
typedef std::map< QToolBar *, QGraphicsProxyWidget * > | PickToolBarMap |
| Handle to picking toolbar. | |
| std::vector< glViewer * > | examiner_widgets_ |
| Examiner Widget. | |
| QSplitter * | splitter_ |
| Spliter between toplevel objects and the textedit at the bottom. | |
| QGroupBox * | viewModeControlBox_ |
| Group box containing Task Switcher Controls. | |
| LoggerWidget * | logWidget_ |
| Textedit at the bottom for log messages. | |
| int | originalLoggerSize_ |
| Size of the logging window ( defaults to 240 ) | |
| QMenu * | recentFilesMenu_ |
| QMenu containing the recently opened files. | |
| QMenu * | algorithmMenu_ |
| Algorithms Menu. | |
| QMenu * | helpMenu_ |
| Help Menu. | |
| QMenu * | windowMenu_ |
| Window Menu. | |
| QAction * | AC_ShowViewModeControls_ |
| Action for View Mode Widget Conrol in Menu. | |
| QAction * | AC_ShowToolbox_ |
| Action for View Mode Widget Conrol in Menu. | |
| QGLWidget * | glWidget_ |
| gl widget used as drawing area to paint the graphics scene | |
| QtGLGraphicsScene * | glScene_ |
| graphics scene used to paint gl context and widgets | |
| QtGLGraphicsView * | glView_ |
| graphics view that holds the gl scene | |
| QGraphicsWidget * | centerWidget_ |
| center widged | |
| QtMultiViewLayout * | baseLayout_ |
| Base layout that holds gl views. | |
| QtSlideWindow * | slidingLogger_ |
| Class that holds the animated log widget. | |
| QWidget * | toolBoxArea_ |
| Widget for toolBox. | |
| QPushButton * | vmChangeButton_ |
| Button to change viewModes. | |
| QSplitter * | toolSplitter_ |
| Spliter between toplevel objects and toolbox. | |
| SideArea * | toolBox_ |
| Toolbox. | |
| QScrollArea * | toolBoxScroll_ |
| Toolbox scroll area. | |
| PickToolBarMap | curPickingToolbarItems_ |
| Handle to picking toolbar. | |
| QToolBar * | pickToolBarExternal_ |
| Extra toolbar not in scene for picking. | |
| std::set< QToolBar * > | registeredToolbars_ |
| Store all toolbars that once have been registered. | |
| CursorPainter * | cursorPainter_ |
| Cursor handling. | |
| ACG::QtWidgets::QtSceneGraphDialog * | sceneGraphDialog_ |
| Handle to picking toolbar. | |
Menubar controls | |
| QMenu * | fileMenu_ |
| File Menu. | |
| QMenu * | viewMenu_ |
| View Menu. | |
| QMenu * | toolsMenu_ |
| Tools Menu. | |
| QAction * | fileMenuEnd_ |
| First entry after all relevant parts of the File Menu. | |
| QMap< QString, QMenu * > | menus_ |
| All available menus. | |
| void | slotAddMenubarAction (QAction *_action, QString _name) |
| File Menu. | |
| void | slotGetMenubarMenu (QString _name, QMenu *&_menu, bool _create) |
| File Menu. | |
ToolBar controls | |
| QToolBar * | viewerToolbar_ |
| Called by Plugins to add a Toolbar. | |
| int | toolbarCount_ |
| Called by Plugins to add a Toolbar. | |
| QToolButton * | stereoButton_ |
| Called by Plugins to add a Toolbar. | |
| QToolButton * | moveButton_ |
| Called by Plugins to add a Toolbar. | |
| QToolButton * | pickButton_ |
| Called by Plugins to add a Toolbar. | |
| QToolButton * | questionButton_ |
| Called by Plugins to add a Toolbar. | |
| QComboBox * | viewerLayoutBox_ |
| Called by Plugins to add a Toolbar. | |
| QToolBar * | mainToolbar_ |
| Called by Plugins to add a Toolbar. | |
| std::vector< QToolBar * > | toolbars_ |
| Called by Plugins to add a Toolbar. | |
| void | slotAddToolbar (QToolBar *_toolbar) |
| Called by Plugins to add a Toolbar. | |
| void | slotRemoveToolbar (QToolBar *_toolbar) |
| Called by Plugins to remove a Toolbar. | |
| void | getToolBar (QString _name, QToolBar *&_toolbar) |
| Called by Plugins to get access to specific Toolbars by name. | |
View Menu | |
| QMenu * | globalDrawMenu_ |
| This variable holds the global draw menu. | |
| QMenu * | rendererMenu_ |
| This variable holds the global renderer menu. | |
| QMenu * | postprocessorMenu_ |
| This variable holds the global postprocessor menu. | |
| QActionGroup * | drawGroup_ |
| This variable holds the global draw menu. | |
| QActionGroup * | rendererGroup_ |
| Group for all renderers. | |
| QActionGroup * | postProcessorGroup_ |
| Group for all postprocessors. | |
| QActionGroup * | viewGroup_ |
| Group for all menu items. | |
| QAction * | perspectiveProjectionAction_ |
| This variable holds the global draw menu. | |
| QAction * | orthogonalProjectionAction_ |
| This variable holds the global draw menu. | |
| QAction * | globalAnimationAction_ |
| Action to globally set animation. | |
| QAction * | globalBackfaceCullingAction_ |
| Action to globally set backface culling. | |
| QAction * | globalTwosidedLightingAction_ |
| Action to globally set two-sided lighting. | |
| QAction * | globalMultisamplingAction_ |
| Action to globally set multisampling. | |
| QAction * | globalMipmappingAction_ |
| Action to globally set mipmapping. | |
| ACG::SceneGraph::DrawModes::DrawMode | activeDrawModes_ |
| This variable holds the global draw menu. | |
| ACG::SceneGraph::DrawModes::DrawMode | availableGlobalDrawModes_ |
| This variable holds the global draw menu. | |
| void | nextViewerLayout () |
| Switches over to the next view mode. | |
| void | slotGlobalDrawMenu (QAction *_action) |
| Called when the global drawMode is selected. | |
| void | slotViewMenuAboutToShow () |
| Called before the view Menu is shown. | |
| void | slotGlobalRendererMenu (QAction *_action) |
| Called when the global renderer is selected. | |
| void | slotGlobalPostProcessorMenu (QAction *_action) |
| Called when the global postprocessor is selected. | |
| void | slotUpdateGlobalDrawMenu () |
| Setup and update the global draw menu. | |
| void | slotUpdateRendererMenu () |
| Setup and update the global renderer menu. | |
| void | slotUpdatePostProcessorMenu () |
| Setup and update the global postprocessor menu. | |
| void | setViewerLayout (int _idx) |
| Change viewer layout that was selected in the combo box. | |
Context Menu | |
| QMenu * | contextMenu_ |
| context Menu for the gl area | |
| QMenu * | contextSelectionMenu_ |
| Context Menu containing all selection elements. | |
| std::vector< MenuInfo > | contextMenus_ |
| All real context menu entries. | |
| QActionGroup * | drawGroupViewer_ |
| DrawGroup for per Viewer Draw Modes. | |
| QMenu * | viewerDrawMenu_ |
| Draw Menu for per Viewer Draw Modes. | |
| QMenu * | coordSysMenu_ |
| void | updateContextMenu (int) |
| tells the plugins to update their context menu when an object is picked | |
| void | updateContextMenuNode (int) |
| tells the plugins to update their context menu when a node is picked | |
| void | updateContextMenuBackground () |
| tells the plugins to update their context menu when the background is picked | |
| void | slotCustomContextMenu (const QPoint &_point) |
| This slot is called by the examiner widgets gl area when a context menu is requested. | |
| void | slotAddContextItem (QAction *_entry, ContextMenuType _type) |
| called by plugins to add a new context menu item | |
| void | slotAddContextItem (QAction *_entry, DataType _dataType, ContextMenuType type_) |
| called by plugins to add a real context menu item depending on DataType | |
| void | slotAddContextItemToViewMode (QAction *_entry) |
| called by slotAddContextItem to add the item to the view mode | |
| void | slotPasteView () |
| Paste the view to the last active examiner. | |
| void | slotPasteViewAndWindow () |
| Paste the view, the window and toolbox size to the last active examiner. | |
| void | slotCopyView () |
| Copy view from the last active examiner. | |
| void | slotViewerDrawMenu (QAction *_action) |
| Called when a coordsys drawMode has been changed. | |
| void | slotPostProcessorMenu (QAction *_action) |
| Called when a different post processor has been chosen. | |
| void | slotRenderMenu (QAction *_action) |
| Called when a different renderer has been chosen. | |
| void | slotUpdateViewerDrawMenu () |
| Creates a draw Menu for the currently active Viewer. | |
| void | slotExaminerSnapshot () |
| Create a snapshot of the last active examiner. | |
| void | slotSwitchWheels (bool _state) |
| Show / hide wheels. | |
| void | slotSwitchNavigation (bool _egomode) |
| Switch navigation mode. | |
| void | slotSnapshotName () |
| Set the snapShot name for all examiners. | |
| void | slotCoordSysVisibility (bool _visible) |
| Hide coordinate systems in all viewers. | |
| void | updatePopupMenu (const QPoint &_point) |
| check current context and initialize context menu according to this context. | |
| void | updatePopupMenuCoordsysNode (QMenu *_menu, const int _part) |
| Update context Menu when Coordsys node has been clicked on. | |
| void | updatePopupMenuObject (QMenu *_menu, BaseObjectData *_object) |
| Update popup Menu when an object has been clicked on. | |
| void | updatePopupMenuBackground (QMenu *_menu, const QPoint &_point) |
| Update context Menu when background has been clicked on. | |
| void | updatePopupMenuNode (QMenu *_menu, ACG::SceneGraph::BaseNode *_node) |
| Update context Menu when an arbitrary node has been clicked on. | |
| bool | addContextMenus (QMenu *_menu, ContextMenuType _type, int _id=-1) |
Snapshots | |
| QString | snapshotName_ |
| Create a snapshot of the whole app with fileDialog. | |
| int | snapshotCounter_ |
| Create a snapshot of the whole app with fileDialog. | |
| void | viewerSnapshotDialog () |
| Create a snapshot of the whole app with fileDialog. | |
| void | viewerSnapshot () |
| Create a snapshot of the whole app. | |
| void | applicationSnapshotDialog () |
| Create a snapshot of the whole app with fileDialog. | |
| void | applicationSnapshot () |
| Create a snapshot of the whole app. | |
| void | applicationSnapshotName (QString _name) |
| Set the snapshot name. | |
StackWidget controls | |
| QMenu * | stackMenu_ |
| QMenu containing the recently opened files. | |
| std::vector< StackWidgetInfo > | stackWidgetList_ |
| QMenu containing the recently opened files. | |
| QStackedWidget * | stackedWidget_ |
| Container widget for holding multiple views. | |
| void | slotGetStackWidget (QString _name, QWidget *&_widget) |
| QMenu containing the recently opened files. | |
| void | slotAddStackWidget (QString _name, QWidget *_widget) |
| QMenu containing the recently opened files. | |
| void | slotUpdateStackWidget (QString _name, QWidget *_widget) |
| QMenu containing the recently opened files. | |
| void | slotViewMenuAction (QAction *_action) |
| QMenu containing the recently opened files. | |
| void | slotUpdateStackMenu () |
| QMenu containing the recently opened files. | |
Help System | |
| HelpWidget * | helpWidget_ |
| Pointer to the help Browser. | |
| static const QString | homePage_ = "qthelp://org.openflipper.user/user/index.html" |
| Pointer to the help Browser. | |
| void | changeHelpSite (QUrl) |
| Pointer to the help Browser. | |
| void | showHelpBrowser (const QString &page=homePage_) |
| Display the help Browser. | |
Stereo View Mode | |
| StereoSettingsWidget * | stereoSettingsWidget_ |
| Widget to change stereo settings. | |
| void | stereoButtonContextMenu (const QPoint &_pos) |
| Creates custom context menu for stereo viewer settings. | |
| void | slotApplyStereoSettings (int _tmpParam=0) |
About System | |
| AboutWidget * | aboutWidget_ |
| Pointer to the about widget. | |
| void | showAboutWidget () |
| Display the about widget. | |
Options System | |
| OptionsWidget * | optionsWidget_ |
| Pointer to the OptionsWidget. | |
| void | applyOptions () |
| Pointer to the OptionsWidget. | |
| void | saveOptions () |
| Pointer to the OptionsWidget. | |
| void | showOptionsWidget () |
| Display the Options Browser. | |
StatusBar controls | |
| ColorStatusBar * | statusBar_ |
| QLabel * | statusIcon_ |
| void | setupStatusBar () |
| void | statusMessage (QString _message, int _timeout=0) |
| void | clearStatusMessage () |
| void | setStatus (ApplicationStatus::applicationStatus _status) |
| void | addWidgetToStatusbar (QWidget *_widget) |
Drag and Drop | |
| void | dragOpenFile (QString _filename) |
| void | startDrag (QMouseEvent *_event) |
| void | dragEnterEvent (QDragEnterEvent *_event) |
| void | dropEvent (QDropEvent *_event) |
Viewer Controls | |
| bool | stereoActive_ |
| The viewer with id _viewerId changed its draw Mode. | |
| void | drawModeChanged (int _viewerId) |
| The viewer with id _viewerId changed its draw Mode. | |
| void | slotToggleStereoMode () |
| Enable or disable Stereo. | |
| void | slotSetGlobalBackgroundColor () |
| Set Background Color for all viewers at once. | |
| void | slotSetContextBackgroundColor () |
| Set Background Color for one viewer. | |
| void | slotContextHomeView () |
| Set the active viewer to home position. | |
| void | slotGlobalHomeView () |
| Set the viewer to home position. | |
| void | slotContextSetHomeView () |
| Set the active viewers home position. | |
| void | slotGlobalSetHomeView () |
| Set the home position for all viewers. | |
| void | slotContextViewAll () |
| Change view on active viewer to view complete scene. | |
| void | slotGlobalViewAll () |
| Change view on all viewers to view complete scene. | |
| void | slotContextSwitchProjection () |
| Toggle projection mode of the active viewer. | |
| ACG::SceneGraph::CoordsysNode::ProjectionMode | getCoordsysProjection () |
| Toggle coordsys projection mode of the active viewer. | |
| void | slotContextSwitchCoordsysProjection () |
| Toggle coordsys projection mode of the active viewer. | |
| void | slotGlobalPerspectiveProjection () |
| Toggle projection mode of all viewers to perspective projection. | |
| void | slotGlobalOrthographicProjection () |
| Toggle projection mode of all viewers to orthographic projection. | |
| void | slotSetViewingDirection (QAction *_action) |
| Change the viewing direction from context-menu. | |
| void | slotLockRotation (bool _lock) |
| Lock rotation in current examiner widget. | |
| void | slotGlobalToggleAnimation () |
| If animation is disabled in all viewers, enable it in all viewers. Otherwise disable it. | |
| void | slotGlobalChangeAnimation (bool _animation) |
| Set the animation mode for all viewers. | |
| void | slotLocalChangeAnimation (bool _animation) |
| Set the animation mode for active viewer. | |
| void | slotGlobalToggleBackFaceCulling () |
| If backface culling is disabled in all viewers, enable it in all viewers. Otherwise disable it. | |
| void | slotGlobalChangeBackFaceCulling (bool _backFaceCulling) |
| Set backface culling for all viewers. | |
| void | slotLocalChangeBackFaceCulling (bool _backFaceCulling) |
| Set backface culling for active viewer. | |
| void | slotGlobalToggleTwoSidedLighting () |
| If two-sided lighting is disabled in all viewers, enable it in all viewers. Otherwise disable it. | |
| void | slotGlobalChangeTwoSidedLighting (bool _lighting) |
| Set two-sided lighting for all viewers. | |
| void | slotLocalChangeTwoSidedLighting (bool _lighting) |
| Set two-sided lighting for active viewer. | |
| void | slotGlobalToggleMultisampling () |
| If multisampling is disabled in all viewers, enable it in all viewers. Otherwise disable it. | |
| void | slotGlobalChangeMultisampling (bool _multisampling) |
| Set multisampling for all viewers. | |
| void | slotLocalChangeMultisampling (bool _multisampling) |
| Set multisampling for active viewer. | |
| void | slotGlobalToggleMipmapping () |
| If mipmapping is disabled in all viewers, enable it in all viewers. Otherwise disable it. | |
| void | slotGlobalChangeMipmapping (bool _multisampling) |
| Set mipmapping for all viewers. | |
| void | slotLocalChangeMipmapping (bool _mipmapping) |
| Set mipmapping for active viewer. | |
| void | moveBack () |
| When using first person mode move backward. | |
| void | moveForward () |
| When using first person mode move forward. | |
| void | strafeLeft () |
| When using first person mode strafe to the left. | |
| void | strafeRight () |
| When using first person mode strafe to the right. | |
Action Mode States | |
| Viewer::ActionMode | actionMode_ |
| Viewer::ActionMode | lastActionMode_ |
| Viewer::ActionMode | actionMode () |
| Viewer::ActionMode | lastActionMode () |
| bool | examineMode () |
| bool | pickingMode () |
| bool | lightMode () |
| bool | questionMode () |
| void | setExamineMode () |
| void | setPickingMode () |
| void | setQuestionMode () |
| void | setActionMode (const Viewer::ActionMode _am) |
| void | getActionMode (Viewer::ActionMode &_am) |
PickModes | |
| QMenu * | pickMenu_ |
| std::vector< PickMode > | pick_modes_ |
| std::string | pick_mode_name_ |
| int | pick_mode_idx_ |
| void | addPickMode (const std::string &_name, bool _mouse_tracking=false, int _pos=-1, bool _visible=true, QCursor _cursor=Qt::ArrowCursor) |
| add pick mode | |
| void | clearPickModes () |
| const std::string & | pickMode () const |
| void | pickMode (int _id) |
| void | signalPickModeChanged (const std::string &) |
| void | hidePopupMenus () |
| void | updatePickMenu () |
| update pick mode menu | |
| void | setPickMode (const std::string &_name) |
| void | getPickMode (std::string &_name) |
| void | setActivePickToolBar (QToolBar *_tool) |
| Set toolbar to be active pick toolbar. | |
| void | hidePickToolBar () |
| Hide picking toolbar. | |
| void | setPickModeCursor (const std::string &_name, QCursor _cursor) |
| set a new cursor for the pick mode | |
| void | setPickModeMouseTracking (const std::string &_name, bool _mouseTracking) |
| set mouseTracking for the pick mode | |
| void | setPickModeToolbar (const std::string &_mode, QToolBar *_toolbar) |
| Set the additional toolbar of the given PickMode. | |
| void | removePickModeToolbar (const std::string &_mode) |
| Removes the additional toolbar of the given PickMode. | |
| void | actionPickMenu (QAction *_action) |
Core Widget of the Application
Definition at line 272 of file CoreWidget.hh.
| CoreWidget::CoreWidget | ( | QVector< ViewMode * > & | _viewModes, |
| std::vector< PluginInfo > & | _plugins, | ||
| QList< SlotInfo > & | _coreSlots | ||
| ) |
|
inline |
Set action mode. The ActionMode determines the type of reaction on mouse events.
Definition at line 1342 of file CoreWidget.hh.
|
slot |
Vector of all Picking modes
Definition at line 324 of file picking.cc.
|
private |
Definition at line 552 of file ContextMenu.cc.
| void CoreWidget::addPickMode | ( | const std::string & | _name, |
| bool | _mouse_tracking = false, |
||
| int | _pos = -1, |
||
| bool | _visible = true, |
||
| QCursor | _cursor = Qt::ArrowCursor |
||
| ) |
add pick mode
| _name | Name of the Pick Mode or "Separator" to insert a separator |
| _mouse_tracking | true: every mouse movement will emit mouse events not only when mousebutton is pressed |
| _pos | position to insert the mode in the popup menu. |
| _visible | If true, the ode will be visible in the ui, otherwise it is a hidden pick mode |
| _cursor | The cursor that should be used when the given pickmode is active |
Definition at line 384 of file picking.cc.
|
slot |
Create a snapshot of the whole app.
Take a snapshot of the whole application.
Definition at line 461 of file viewerControl.cc.
|
slot |
Create a snapshot of the whole app with fileDialog.
Take a snapshot of the whole application.
Definition at line 388 of file viewerControl.cc.
| void CoreWidget::clearPickModes | ( | ) |
clear all pick modes
Definition at line 471 of file picking.cc.
|
private |
handle key events for the core
This function is called to handle key events which are registered to the core
|
private |
Handle core key events.
if a keyPressEvent belongs to the core this functions is called
Definition at line 552 of file keyHandling.cc.
| QSize CoreWidget::defaultIconSize | ( | ) |
Set application to Fullscreen and back.
Set viewer to Fullscreen Mode and back
Definition at line 145 of file CoreWidgetToolbar.cc.
|
privateslot |
Definition at line 130 of file dragAndDrop.cc.
|
signal |
|
signal |
The viewer with id _viewerId changed its draw Mode.
|
privateslot |
Definition at line 144 of file dragAndDrop.cc.
|
inlineslot |
Set action mode. The ActionMode determines the type of reaction on mouse events.
Definition at line 1326 of file CoreWidget.hh.
|
slot |
Set action mode. The ActionMode determines the type of reaction on mouse events.
Definition at line 153 of file picking.cc.
|
slot |
Vector of all Picking modes
Definition at line 174 of file picking.cc.
|
privateslot |
Vector of all Picking modes
Definition at line 340 of file picking.cc.
|
protectedvirtual |
Handle key events.
passes keyPressEvents to either the Core or a Plugin depending on who has registered the key
Definition at line 81 of file keyHandling.cc.
|
inline |
Set action mode. The ActionMode determines the type of reaction on mouse events.
Definition at line 1343 of file CoreWidget.hh.
|
inlineslot |
Set action mode. The ActionMode determines the type of reaction on mouse events.
Definition at line 1328 of file CoreWidget.hh.
|
inlineslot |
Set action mode. The ActionMode determines the type of reaction on mouse events.
Definition at line 1327 of file CoreWidget.hh.
| const std::string & CoreWidget::pickMode | ( | ) | const |
return the currently active pick mode
Definition at line 483 of file picking.cc.
| void CoreWidget::pickMode | ( | int | _id | ) |
Switch to given picking mode
| _id | Id of the picking Mode |
Definition at line 354 of file picking.cc.
|
signal |
When this Signal is emitted when a Keyevent Event occures The signal is connected to all Plugins implementing KeyInterface by the pluginLoader
|
signal |
When this Signal is emitted when a Keyevent Release occures The signal is connected to all Plugins implementing KeyInterface by the pluginLoader
|
inlineslot |
Set action mode. The ActionMode determines the type of reaction on mouse events.
Definition at line 1329 of file CoreWidget.hh.
|
private |
Register all events related to the core.
if a keyPressEvent belongs to the core this functions is called
Definition at line 514 of file keyHandling.cc.
|
slot |
Removes the additional toolbar of the given PickMode.
Set the additional toolbar that should be shown in the pickMode
| _mode | Identifier of Picking mode |
Definition at line 456 of file picking.cc.
|
privateslot |
Updates the size of the main graphics widget in the scene
Definition at line 996 of file CoreWidget.cc.
|
slot |
Set action mode. The ActionMode determines the type of reaction on mouse events.
Definition at line 63 of file picking.cc.
|
inlineslot |
Set action mode. The ActionMode determines the type of reaction on mouse events.
Definition at line 1334 of file CoreWidget.hh.
| void CoreWidget::setFullscreen | ( | bool | _state | ) |
Enable or disable fullscreen mode.
Enable or disable Fullscreen Mode
Definition at line 707 of file CoreWidget.cc.
|
inlineslot |
Set action mode. The ActionMode determines the type of reaction on mouse events.
Definition at line 1335 of file CoreWidget.hh.
|
slot |
Switch to given picking mode
| _name | Name of the picking mode |
Definition at line 159 of file picking.cc.
|
slot |
set a new cursor for the pick mode
| _name | Name of the Pick Mode |
| _cursor | the new cursor |
Definition at line 405 of file picking.cc.
|
slot |
set mouseTracking for the pick mode
| _name | Name of the Pick Mode |
| _mouseTracking | true: every mouse movement will emit mouse events not only when mousebutton is pressed |
Definition at line 420 of file picking.cc.
|
slot |
Set the additional toolbar of the given PickMode.
Set the additional toolbar that should be shown in the pickMode
| _mode | Identifier of Picking mode |
| _toolbar | the toolbar |
Definition at line 437 of file picking.cc.
|
inlineslot |
Set action mode. The ActionMode determines the type of reaction on mouse events.
Definition at line 1336 of file CoreWidget.hh.
|
slot |
Set the view Mode to the given Mode.
Slot for setting the viewMode from menu.
Definition at line 307 of file viewMode.cc.
| void CoreWidget::showLogger | ( | OpenFlipper::Options::LoggerState | _state | ) |
Change visibility of the logger.
Hide or show logger
Definition at line 69 of file LoggerHandling.cc.
|
slot |
|
slot |
|
signal |
This signal is emitted when the pickMode is changed and contains the new PickMode
|
privateslot |
Makes the sender examiner active
Definition at line 1019 of file CoreWidget.cc.
|
slot |
add a new key Mapping
add a new keyMapping (keyBindingID is the id of the keyBinding in the pluginInfo of _plugin :)
internal function that stores a new keyCombination assignment for an existing keyBinding
Definition at line 342 of file keyHandling.cc.
|
slot |
Is called if the user has changed stereo settings Note: The parameter just makes sure, we can connect all necessary signals to this slot. It has no use for now.
Definition at line 436 of file viewMode.cc.
|
privateslot |
Set the active viewer to home position.
Set the viewer to home position.
Definition at line 116 of file viewerControl.cc.
|
privateslot |
Set the active viewers home position.
Set the viewers home position.
Definition at line 145 of file viewerControl.cc.
|
privateslot |
Create a snapshot of the last active examiner.
Take a snapshot of the current Viewer.
Definition at line 341 of file viewerControl.cc.
|
privateslot |
Toggle projection mode of all viewers to orthographic projection.
Toggle projection mode of all viewers to orthogonal projection.
Definition at line 214 of file viewerControl.cc.
|
privateslot |
Slot writing everything to the Logger widget.
Display a log message in the Mainwidget
| _type | Type of Message (OUT,WARN,ERR) |
| _message | The message to be displayed |
This slot has to be called by all loggers. It is used to serialize and color the Output.
| _type | Logtype (defines the color of the output) |
| _message | The message for output |
Definition at line 76 of file CoreWidgetLogging.cc.
|
privateslot |
key registration
Register a key to the core or a plugin.
internal slot that registers a keyCombination to the sender() who emitted the registerKey() signal only after registering keyCombinations plugins receive keyEvents to the corresponding keyCombinations via KeyInterface.
Definition at line 218 of file keyHandling.cc.
|
slot |
register scripting slots to allow keyBindings
scripting slots will automatically registered to be assigned to an invalid key(-1)
internal function that registers all public slots without parameters of each plugin (or core) to the key management system. This allows the assignment of keyBindings for each of these slots.
Definition at line 295 of file keyHandling.cc.
|
privateslot |
|
privateslot |
Slot for setting ViewMode from Menu.
Slot for setting the viewMode from menu.
Definition at line 302 of file viewMode.cc.
|
slot |
Sets the Icon for a given View Mode (non-userdefined viewMode)
Sets the Icon for a given View Mode.
Definition at line 238 of file viewMode.cc.
|
slot |
Sets the Icon for a given View Mode (_custom == userdefined viewMode)
Sets the Icon for a given View Mode.
Definition at line 243 of file viewMode.cc.
|
privateslot |
Creates and shows the Scenegraph Dialog
Definition at line 970 of file CoreWidget.cc.
|
privateslot |
Show / hide wheels.
Show / hide wheels in examiner windows.
Definition at line 121 of file viewerControl.cc.
|
privateslot |
Show a dialog in which the viewMode can be edited.
show dialog for changing ViewMode
Definition at line 318 of file viewMode.cc.
|
privateslot |
Definition at line 69 of file dragAndDrop.cc.
| void CoreWidget::toggleFullscreen | ( | ) |
Set application to Fullscreen and back.
Set viewer to Fullscreen Mode and back
Definition at line 639 of file CoreWidget.cc.
| void CoreWidget::toggleLogger | ( | ) |
| void CoreWidget::toggleStatusBar | ( | ) |
Change visibility of the Status Bar.
Hide or show Status bar
Definition at line 139 of file StatusBar.cc.
| void CoreWidget::toggleToolbox | ( | ) |
|
private |
check current context and initialize context menu according to this context.
Update the contextmenu for the given position inside an examiner widget
| _point | Picking position in coordinates of the viewer |
This function is called whenever a context menu for the corewidget is requested. It will decide about the current context, collect all menus for plugins and construct the final context menu.
Definition at line 688 of file ContextMenu.cc.
|
private |
Update context Menu when background has been clicked on.
This function is called when the background in a viewer has been clicked on. This context menu will show functions which are related to the background of the viewer.
| _menu | Pointer to the context Menu |
| _point | position in the viewer where the user clicked. |
Definition at line 480 of file ContextMenu.cc.
|
private |
Update context Menu when Coordsys node has been clicked on.
This function is called when the coordinate system in a viewer has been clicked on. This context menu will show all function relevant for the current view like the projection/viewing direction...
| _menu | Pointer to the context Menu |
| _part | id of the coordsys part which has been clicked on. |
Definition at line 118 of file ContextMenu.cc.
|
private |
Update context Menu when an arbitrary node has been clicked on.
This function is called when a node has been clicked on not belonging to an object. This context menu will show all function relevant for the Node.
| _menu | Pointer to the context Menu |
| _node | node which has been clicked on. |
Definition at line 96 of file ContextMenu.cc.
|
private |
Update popup Menu when an object has been clicked on.
This function is called when an object has been clicked on. This context menu will show all properties for the given object.
| _menu | Pointer to the context Menu |
| _object | Object that has been clicked on. |
Definition at line 530 of file ContextMenu.cc.
|
slot |
Create a snapshot of the whole app.
Take a snapshot of all viewers.
Definition at line 668 of file viewerControl.cc.
|
slot |
Create a snapshot of the whole app with fileDialog.
Take a snapshot of all viewers.
Definition at line 489 of file viewerControl.cc.
|
private |
Set action mode. The ActionMode determines the type of reaction on mouse events.
Definition at line 1343 of file CoreWidget.hh.
|
private |
Menu which holds the context menu entries for the coordsys node if invisible
Definition at line 950 of file CoreWidget.hh.
|
private |
Set application to Fullscreen and back.
Set viewer to Fullscreen Mode and back
Definition at line 518 of file CoreWidget.hh.
|
private |
Set application to Fullscreen and back.
Set viewer to Fullscreen Mode and back
Definition at line 516 of file CoreWidget.hh.
|
private |
Set action mode. The ActionMode determines the type of reaction on mouse events.
Definition at line 1343 of file CoreWidget.hh.
|
private |
Set application to Fullscreen and back.
Set viewer to Fullscreen Mode and back
Definition at line 514 of file CoreWidget.hh.
|
private |
Index of current pickMode
Definition at line 1454 of file CoreWidget.hh.
|
private |
Name of current pickMode
Definition at line 1450 of file CoreWidget.hh.
|
private |
Vector of all Picking modes
Definition at line 1446 of file CoreWidget.hh.
|
private |
Vector of all Picking modes
Definition at line 1442 of file CoreWidget.hh.
|
private |
Create a snapshot of the whole app with fileDialog.
Take a snapshot of all viewers.
Definition at line 962 of file CoreWidget.hh.
|
private |
Create a snapshot of the whole app with fileDialog.
Take a snapshot of all viewers.
Definition at line 961 of file CoreWidget.hh.
|
private |
The viewer with id _viewerId changed its draw Mode.
Definition at line 1315 of file CoreWidget.hh.