Developer Documentation
CoreWidget Class Reference

#include <OpenFlipper/widgets/coreWidget/CoreWidget.hh>

Inheritance diagram for CoreWidget:

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, QList< SlotInfo > &_coreSlots)
 constructor More...
 
 ~CoreWidget ()
 destructor More...
 
Recent File Menu handling
void addRecent (QString _filename, DataType _type)
 Add a recent file and update menu. More...
 
void updateRecent ()
 Update the recent files menu. More...
 

Private Slots

void closeEvent (QCloseEvent *event)
 Called on applications close. More...
 
void slotShowSceneGraphDialog ()
 
void slotActivateExaminer ()
 
void slotLog (Logtype _type, QString _message)
 Slot writing everything to the Logger widget. More...
 
void sceneRectChanged (const QRectF &rect)
 

Friends

class Core
 

Keys

typedef std::multimap< std::pair< int, Qt::KeyboardModifiers >, std::pair< QObject *, int > > KeyMap
 typedefs More...
 
typedef std::pair< KeyMap::iterator, KeyMap::iterator > KeyRange
 typedefs More...
 
std::vector< KeyBindingcoreKeys_
 vector of keys registered to the core More...
 
KeyMap keys_
 mapping of all keys to registered keys and the corresponding plugins More...
 
InverseKeyMap invKeys_
 mapping of all registered keys and the corresponding plugins to currently assigned keys More...
 
QList< SlotInfo > & coreSlots_
 list of scripting slots from core More...
 
bool shiftPressed_
 Store the state of the shift key. More...
 
void loadKeyBindings (INIFile &_ini)
 Load key assignments from a given INI file. More...
 
void saveKeyBindings (INIFile &_ini)
 Store current key assignments to a given INI file. More...
 
void showReducedMenuBar (bool reduced)
 typedefs More...
 
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, const QString &_description, bool _multiUse=false)
 key registration More...
 
virtual void keyPressEvent (QKeyEvent *_e)
 Handle key events. More...
 
virtual void keyReleaseEvent (QKeyEvent *_e)
 passes keyReleaseEvents to either the Core or a Plugin depending on who has registered the key More...
 
bool event (QEvent *event)
 typedefs More...
 
bool eventFilter (QObject *_obj, QEvent *_event)
 typedefs More...
 
void registerCoreKeys ()
 Register all events related to the core. More...
 
void coreKeyPressEvent ()
 handle key events for the core More...
 
void coreKeyPressEvent (QKeyEvent *_e)
 Handle core key events. More...
 
void coreKeyReleaseEvent (QKeyEvent *_e)
 if a keyReleaseEvent belongs to the core this functions is called More...
 
KeyBinding getKeyBinding (QObject *_plugin, int _keyIndex)
 typedefs More...
 
QString getRPCName (QObject *_plugin)
 typedefs More...
 
void slotAddKeyMapping (int _key, Qt::KeyboardModifiers _modifiers, QObject *_plugin, int _keyBindingID)
 add a new key Mapping More...
 
void slotRegisterSlotKeyBindings ()
 register scripting slots to allow keyBindings More...
 

Basic Gui Elements

typedef std::map< QToolBar *, QGraphicsProxyWidget * > PickToolBarMap
 Handle to picking toolbar. More...
 
std::vector< glViewer * > examiner_widgets_
 Examiner Widget. More...
 
QSplitter * splitter_
 Spliter between toplevel objects and the textedit at the bottom. More...
 
QWidget * viewModeControlBox_
 Group box containing Task Switcher Controls. More...
 
LoggerWidgetlogWidget_
 Textedit at the bottom for log messages. More...
 
int originalLoggerSize_
 Size of the logging window ( defaults to 240 ) More...
 
QMenu * recentFilesMenu_
 QMenu containing the recently opened files. More...
 
QMenu * algorithmMenu_
 Algorithms Menu. More...
 
QMenu * helpMenu_
 Help Menu. More...
 
QMenu * windowMenu_
 Window Menu. More...
 
QAction * AC_ShowViewModeControls_
 Action for View Mode Widget Conrol in Menu. More...
 
OFGLWidget * glWidget_
 gl widget used as drawing area to paint the graphics scene More...
 
QtGLGraphicsSceneglScene_
 graphics scene used to paint gl context and widgets More...
 
QtGLGraphicsViewglView_
 graphics view that holds the gl scene More...
 
QGraphicsWidget * centerWidget_
 center widged More...
 
QtMultiViewLayoutbaseLayout_
 Base layout that holds gl views. More...
 
QtSlideWindowslidingLogger_
 Class that holds the animated log widget. More...
 
QWidget * toolBoxArea_
 Widget for toolBox. More...
 
QToolButton * viewModePopupBtn_
 view mode gear icon at the upper left of the tool box More...
 
QSplitter * toolSplitter_
 Spliter between toplevel objects and toolbox. More...
 
SideAreatoolBox_
 Toolbox. More...
 
QScrollArea * toolBoxScroll_
 Toolbox scroll area. More...
 
PickToolBarMap curPickingToolbarItems_
 Handle to picking toolbar. More...
 
QToolBar * pickToolBarExternal_
 Extra toolbar not in scene for picking. More...
 
std::set< QToolBar * > registeredToolbars_
 Store all toolbars that once have been registered. More...
 
CursorPaintercursorPainter_
 Cursor handling. More...
 
ACG::QtWidgets::QtSceneGraphDialogsceneGraphDialog_
 Handle to picking toolbar. More...
 
QWidgetAction * viewModeChangePopupAction_
 Handle to picking toolbar. More...
 
viewModeChangeWidgetmodeChangeWidget
 Handle to picking toolbar. More...
 

GUI Controls

OpenFlipper::Options::LoggerState loggerState_
 Show logger in splitter or not. More...
 
QSize defaultIconSize_
 Show logger in splitter or not. More...
 
void showLoggerInSplitView (bool _show)
 Show logger in splitter or not. More...
 
void updateInSceneLoggerGeometry ()
 Set in-scene logger geometry right. More...
 
void setForceNativeCursor (bool _state)
 Use native or gl painted cursor. More...
 
QSize defaultIconSize ()
 Show logger in splitter or not. More...
 
QScrollArea * getToolboxScrollArea ()
 Show logger in splitter or not. More...
 
QWidget * getToolboxArea ()
 Show logger in splitter or not. More...
 
SideAreagetToolbox ()
 Show logger in splitter or not. More...
 
void toolBarVisChanged (bool _state)
 will be emitted if the visibility of the toolbar is changed
 
void toolBoxVisChanged (bool _state)
 will be emitted if the visibility of the toolbox is changed
 
void statusBarVisChanged (bool _state)
 will be emitted if the visibility of the statusbar is changed
 
void menuBarVisChanged (bool _state)
 will be emitted if the visibility of the menubar is changed
 
void fullScreenChanged (bool _state)
 will be emitted if the fullscreen state is changed (_state = true => in fullscreen)
 
void toggleFullscreen ()
 Set application to Fullscreen and back. More...
 
void setFullscreen (bool _state)
 Enable or disable fullscreen mode. More...
 
void toggleLogger ()
 Hide or show logging area. More...
 
void showLogger (OpenFlipper::Options::LoggerState _state)
 Change visibility of the logger. More...
 
void toggleToolbox ()
 Hide or show toolbox area. More...
 
void showToolbox (bool _state)
 Show or hide toolbox. More...
 
void toggleStatusBar ()
 Change visibility of the Status Bar. More...
 
void showStatusBar (bool _state)
 Show or hide status bar. More...
 
void showMenuBar (bool _state)
 Show or hide menubar. More...
 
void toggleMenuBar ()
 Hide or show menu bar. More...
 
void toggleToolBar ()
 Hide or show current toolbar. More...
 
void showToolBar (bool _state)
 Show or hide toolbar, emits toolBarToggled( bool _state ) More...
 

Tool Widgets / View Modes

QVector< QWidget * > toolWidgets_
 a List of all widgets in the toolbar More...
 
QAction * viewModeButton_
 a List of all widgets in the toolbar More...
 
QMenu * viewModeMenu_
 Submenu holding all ViewMode actions. More...
 
QVector< ViewMode * > & viewModes_
 List of currently available viewModes. More...
 
void slotRemoveViewMode (const QString &_name)
 Remove viewMode. More...
 
void slotSetViewMode (QAction *action)
 Slot for setting ViewMode from Menu. More...
 
void slotViewModeDialog ()
 Show a dialog in which the viewMode can be edited. More...
 
void closeChangeViewModePopup ()
 Closes the change view mode popup. More...
 
void slotUpdateExaminer (unsigned _id)
 update the content of the specified examiner More...
 
void initViewModes ()
 init ViewModes that were loaded via ini-file More...
 
void slotAddViewModeToolboxes (const QString &_mode, const QStringList &_usedWidgets)
 Add or change Toolboxes for a ViewMode (non-userdefined viewMode) More...
 
void slotAddViewModeToolboxes (const QString &_mode, bool _custom, const QStringList &_usedWidgets)
 Add or change Toolboxes for a ViewMode (_custom == userdefined viewMode) More...
 
void slotAddViewModeToolbars (const QString &_mode, const QStringList &_usedToolbars)
 Add or change Toolbars for a ViewMode (non-userdefined viewMode) More...
 
void slotAddViewModeToolbars (const QString &_mode, bool _custom, const QStringList &_usedToolbars)
 Add or change Toolbars for a ViewMode (_custom == userdefined viewMode) More...
 
void slotAddViewModeContextMenus (const QString &_mode, const QStringList &_usedToolbars)
 Add or change Toolbars for a ViewMode (non-userdefined viewMode) More...
 
void slotAddViewModeContextMenus (const QString &_mode, bool _custom, const QStringList &_usedToolbars)
 Add or change Toolbars for a ViewMode (_custom == userdefined viewMode) More...
 
void slotAddViewModeComplete (const QString &_mode, bool _custom, const QStringList &_toolboxes, const QStringList &_toolbars, const QStringList &_contextmenus)
 Completly configure a view mode ( set toolbars, toolboxes, context menus, ... ) More...
 
void slotSetViewModeIcon (const QString &_mode, const QString &_iconName)
 Sets the Icon for a given View Mode (non-userdefined viewMode) More...
 
void slotSetViewModeIcon (const QString &_mode, bool _custom, const QString &_iconName)
 Sets the Icon for a given View Mode (_custom == userdefined viewMode) More...
 
void slotChangeView (QString _mode, QStringList _toolboxWidgets, QStringList _toolbars, QStringList _contextmenus, bool _expandAll=false)
 Slot for Changing visible toolWidgets. More...
 
void slotFilterToolboxes (QString searchBarText)
 Slot for Filtering visible Toolboxes. More...
 
void setToolBoxOrientationOnTheRight (bool _toolBoxRight)
 Set orientation of tool box (either on the right or the left side of the screen) More...
 
void showViewModeControls (bool _show)
 Hide or show the View Mode controls. More...
 
void slotHideContextMenu ()
 Hide the context menu. More...
 
void setViewMode (const QString &_mode, bool _expandAll=false)
 Set the view Mode to the given Mode. More...
 
void moveToolBoxToTop (QString _name)
 Move a specific toolbox widget to the top of the side area. More...
 
void moveToolBoxToBottom (QString _name)
 Move a specific toolbox widget to the bottom of the side area. More...
 

Menubar controls

QMenu * fileMenu_
 File Menu. More...
 
QMenu * viewMenu_
 View Menu. More...
 
QMenu * pythonMenu_
 Python Menu. More...
 
QMenu * toolsMenu_
 Tools Menu. More...
 
QAction * fileMenuEnd_
 First entry after all relevant parts of the File Menu. More...
 
QMap< QString, QMenu * > menus_
 All available menus. More...
 
void slotAddMenubarAction (QAction *_action, QString _name)
 File Menu. More...
 
void slotAddMenubarActions (std::vector< QAction * > _actions, QString _name)
 File Menu. More...
 
void slotGetMenubarMenu (QString _name, QMenu *&_menu, bool _create)
 File Menu. More...
 

ToolBar controls

QToolBar * viewerToolbar_
 Called by Plugins to add a Toolbar. More...
 
int toolbarCount_
 Called by Plugins to add a Toolbar. More...
 
QToolButton * stereoButton_
 Called by Plugins to add a Toolbar. More...
 
QToolButton * moveButton_
 Called by Plugins to add a Toolbar. More...
 
QToolButton * pickButton_
 Called by Plugins to add a Toolbar. More...
 
QToolButton * questionButton_
 Called by Plugins to add a Toolbar. More...
 
QComboBox * viewerLayoutBox_
 Called by Plugins to add a Toolbar. More...
 
QToolBar * mainToolbar_
 Called by Plugins to add a Toolbar. More...
 
std::vector< QToolBar * > toolbars_
 Called by Plugins to add a Toolbar. More...
 
void slotAddToolbar (QToolBar *_toolbar)
 Called by Plugins to add a Toolbar. More...
 
void slotRemoveToolbar (QToolBar *_toolbar)
 Called by Plugins to remove a Toolbar. More...
 
void getToolBar (QString _name, QToolBar *&_toolbar)
 Called by Plugins to get access to specific Toolbars by name. More...
 

View Menu

QMenu * globalDrawMenu_
 This variable holds the global draw menu. More...
 
QMenu * rendererMenu_
 This variable holds the global renderer menu. More...
 
QActionGroup * drawGroup_
 This variable holds the global draw menu. More...
 
QActionGroup * rendererGroup_
 Group for all renderers. More...
 
QActionGroup * viewGroup_
 Group for all menu items. More...
 
QAction * perspectiveProjectionAction_
 This variable holds the global draw menu. More...
 
QAction * orthogonalProjectionAction_
 This variable holds the global draw menu. More...
 
QAction * globalAnimationAction_
 Action to globally set animation. More...
 
QAction * globalBackfaceCullingAction_
 Action to globally set backface culling. More...
 
QAction * globalTwosidedLightingAction_
 Action to globally set two-sided lighting. More...
 
QAction * globalMultisamplingAction_
 Action to globally set multisampling. More...
 
QAction * globalMipmappingAction_
 Action to globally set mipmapping. More...
 
ACG::SceneGraph::DrawModes::DrawMode activeDrawModes_
 This variable holds the global draw menu. More...
 
ACG::SceneGraph::DrawModes::DrawMode availableGlobalDrawModes_
 This variable holds the global draw menu. More...
 
void nextViewerLayout ()
 Switches over to the next view mode. More...
 
void slotGlobalDrawMenu (QAction *_action)
 Called when the global drawMode is selected. More...
 
void slotViewMenuAboutToShow ()
 Called before the view Menu is shown. More...
 
void slotGlobalRendererMenu (QAction *_action)
 Called when the global renderer is selected. More...
 
void slotGlobalPostProcessorMenu (QAction *_action)
 Called when the global postprocessor is selected. More...
 
void slotUpdateGlobalDrawMenu ()
 Setup and update the global draw menu. More...
 
void slotUpdateRendererMenu ()
 Setup and update the global renderer menu. More...
 
void setViewerLayout (int _idx)
 Change viewer layout that was selected in the combo box. More...
 

Context Menu

QMenu * contextMenu_
 context Menu for the gl area More...
 
QMenu * contextSelectionMenu_
 Context Menu containing all selection elements. More...
 
std::vector< MenuInfocontextMenus_
 All real context menu entries. More...
 
QActionGroup * drawGroupViewer_
 DrawGroup for per Viewer Draw Modes. More...
 
QMenu * viewerDrawMenu_
 Draw Menu for per Viewer Draw Modes. More...
 
QWidget * viewerDrawMenuWidget_
 owns all the checkboxes of viewerDrawMenu_ More...
 
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. More...
 
void slotAddContextItem (QAction *_entry, ContextMenuType _type)
 called by plugins to add a new context menu item More...
 
void slotAddContextItem (QAction *_entry, DataType _dataType, ContextMenuType type_)
 called by plugins to add a real context menu item depending on DataType More...
 
void slotAddContextItemToViewMode (QAction *_entry)
 called by slotAddContextItem to add the item to the view mode More...
 
void slotPasteView ()
 Paste the view to the last active examiner. More...
 
void slotPasteViewAndWindow ()
 Paste the view, the window and toolbox size to the last active examiner. More...
 
void slotSetView (QString view)
 Set the supplied serialized view. More...
 
void slotSetViewAndWindowGeometry (QString view)
 Set the supplied serialized view. More...
 
void slotCopyView ()
 Copy view from the last active examiner. More...
 
void slotViewerDrawMenu (QAction *_action)
 Called when a coordsys drawMode has been changed. More...
 
void slotPostProcessorMenu (QAction *_action)
 Called when a different post processor has been chosen. More...
 
void slotRenderMenu (QAction *_action)
 Called when a different renderer has been chosen. More...
 
void slotUpdateViewerDrawMenu ()
 Creates a draw Menu for the currently active Viewer. More...
 
void slotExaminerSnapshot ()
 Create a snapshot of the last active examiner. More...
 
void slotSwitchWheels (bool _state)
 Show / hide wheels. More...
 
void slotSwitchNavigation (bool _egomode)
 Switch navigation mode. More...
 
void slotSnapshotName ()
 Set the snapShot name for all examiners. More...
 
void slotCoordSysVisibility (bool _visible)
 Hide coordinate systems in all viewers. More...
 
void updatePopupMenu (const QPoint &_point)
 check current context and initialize context menu according to this context. More...
 
void updatePopupMenuCoordsysNode (QMenu *_menu, const int _part)
 Update context Menu when Coordsys node has been clicked on. More...
 
void updatePopupMenuObject (QMenu *_menu, BaseObjectData *_object)
 Update popup Menu when an object has been clicked on. More...
 
void updatePopupMenuBackground (QMenu *_menu, const QPoint &_point)
 Update context Menu when background has been clicked on. More...
 
void updatePopupMenuNode (QMenu *_menu, ACG::SceneGraph::BaseNode *_node)
 Update context Menu when an arbitrary node has been clicked on. More...
 
bool addContextMenus (QMenu *_menu, ContextMenuType _type, int _id=-1)
 

Snapshots

QString snapshotName_
 Create a snapshot of the whole app with fileDialog. More...
 
int snapshotCounter_
 Create a snapshot of the whole app with fileDialog. More...
 
void viewerSnapshotDialog ()
 Create a snapshot of the whole app with fileDialog. More...
 
void viewerSnapshot ()
 Create a snapshot of the whole app. More...
 
void applicationSnapshotDialog ()
 Create a snapshot of the whole app with fileDialog. More...
 
void applicationSnapshot ()
 Create a snapshot of the whole app. More...
 
void applicationSnapshotName (const QString &_name)
 Set the snapshot name. More...
 
void viewerSnapshot (QString file_name, bool store_comments, bool comments_visible_only, bool comments_targeted_only, bool store_material_info, int snapshot_width, int snapshot_height, bool snapshot_transparent, bool hide_coord_sys, int snapshot_multisampling, bool store_view)
 Scriptable snapshot method offering full control. More...
 

Thread-safe functions using QFuture

std::map< QFutureWatcher< void > *, QFuture< void > * > watcher_garbage_
 
QMutex map_mutex_
 
void writeImageAsynchronously (QImage *_image, const QString &_name)
 
void delete_garbage ()
 

StackWidget controls

QMenu * stackMenu_
 QMenu containing the recently opened files. More...
 
std::vector< StackWidgetInfostackWidgetList_
 QMenu containing the recently opened files. More...
 
QStackedWidget * stackedWidget_
 Container widget for holding multiple views. More...
 
void slotGetStackWidget (const QString &_name, QWidget *&_widget)
 QMenu containing the recently opened files. More...
 
void slotAddStackWidget (QString _name, QWidget *_widget)
 QMenu containing the recently opened files. More...
 
void slotUpdateStackWidget (QString _name, QWidget *_widget)
 QMenu containing the recently opened files. More...
 
void slotViewMenuAction (QAction *_action)
 QMenu containing the recently opened files. More...
 
void slotUpdateStackMenu ()
 QMenu containing the recently opened files. More...
 

Help System

HelpWidgethelpWidget_
 Pointer to the help Browser. More...
 
static const QString homePage_ = "qthelp://org.openflipper.user/user/index.html"
 Pointer to the help Browser. More...
 
void changeHelpSite (QUrl)
 Pointer to the help Browser.
 
void showHelpBrowser (const QString &page=homePage_)
 Display the help Browser. More...
 

PostProcessor dialog

PostProcessorDialogpostProcessorDialog_
 
void slotShowPostProcessorManager ()
 

Renderer dialog

RendererDialogrendererDialog_
 shows the widget for the rendermanager More...
 
RendererObjectWidgetrendererObjectWidget_
 shows the widget for the rendermanager More...
 
void slotShowRenderManager ()
 shows the widget for the rendermanager More...
 
void slotShowRenderObjectWidget ()
 Shows the widget containing the current render objects. More...
 

Stereo View Mode

StereoSettingsWidgetstereoSettingsWidget_
 Widget to change stereo settings. More...
 
void stereoButtonContextMenu (const QPoint &_pos)
 Creates custom context menu for stereo viewer settings. More...
 
void slotApplyStereoSettings (int _tmpParam=0)
 

About System

AboutWidgetaboutWidget_
 Pointer to the about widget. More...
 
QMap< QString, QString > additionalAboutTabs_
 Additional tab information, that could be provided by plugins. More...
 
void addCoreLicenseInfo ()
 Add license information about core parts. More...
 
void showAboutWidget ()
 Display the about widget. More...
 
void addAboutInfo (const QString &_text, const QString &_tabName)
 Adds an entry to the about dialog. More...
 

Options System

OptionsWidgetoptionsWidget_
 Pointer to the OptionsWidget. More...
 
PythonWidgetpythonWidget_
 Pointer to the about widget. More...
 
void applyOptions ()
 Pointer to the OptionsWidget.
 
void saveOptions ()
 Pointer to the OptionsWidget.
 
void showOptionsWidget ()
 Display the Options Browser. More...
 
void showPythonScriptInterpreter ()
 Pointer to the OptionsWidget. More...
 

StatusBar controls

ColorStatusBarstatusBar_
 
QLabel * statusIcon_
 
void setupStatusBar ()
 
void statusMessage (QString _message, int _timeout=0)
 
void clearStatusMessage ()
 
void setStatus (ApplicationStatus::applicationStatus _status)
 
void addWidgetToStatusbar (QWidget *_widget)
 

Viewer Controls

bool stereoActive_
 The viewer with id _viewerId changed its draw Mode. More...
 
void drawModeChanged (int _viewerId)
 The viewer with id _viewerId changed its draw Mode.
 
void slotToggleStereoMode ()
 Enable or disable Stereo. More...
 
void slotSetGlobalBackgroundColor ()
 Set Background Color for all viewers at once. More...
 
void slotSetContextBackgroundColor ()
 Set Background Color for one viewer. More...
 
void slotContextHomeView ()
 Set the active viewer to home position. More...
 
void slotGlobalHomeView ()
 Set the viewer to home position. More...
 
void slotContextSetHomeView ()
 Set the active viewers home position. More...
 
void slotGlobalSetHomeView ()
 Set the home position for all viewers. More...
 
void slotContextViewAll ()
 Change view on active viewer to view complete scene. More...
 
void slotGlobalViewAll ()
 Change view on all viewers to view complete scene. More...
 
void slotContextSwitchProjection ()
 Toggle projection mode of the active viewer. More...
 
ACG::SceneGraph::CoordsysNode::ProjectionMode getCoordsysProjection ()
 Toggle coordsys projection mode of the active viewer. More...
 
void slotContextSwitchCoordsysProjection ()
 Toggle coordsys projection mode of the active viewer. More...
 
void slotGlobalPerspectiveProjection ()
 Toggle projection mode of all viewers to perspective projection. More...
 
void slotGlobalOrthographicProjection ()
 Toggle projection mode of all viewers to orthographic projection. More...
 
void slotSetViewingDirection (QAction *_action)
 Change the viewing direction from context-menu. More...
 
void slotLockRotation (bool _lock)
 Lock rotation in current examiner widget. More...
 
void slotGlobalToggleAnimation ()
 If animation is disabled in all viewers, enable it in all viewers. Otherwise disable it. More...
 
void slotGlobalChangeAnimation (bool _animation)
 Set the animation mode for all viewers. More...
 
void slotLocalChangeAnimation (bool _animation)
 Set the animation mode for active viewer. More...
 
void slotGlobalToggleBackFaceCulling ()
 If backface culling is disabled in all viewers, enable it in all viewers. Otherwise disable it. More...
 
void slotGlobalChangeBackFaceCulling (bool _backFaceCulling)
 Set backface culling for all viewers. More...
 
void slotLocalChangeBackFaceCulling (bool _backFaceCulling)
 Set backface culling for active viewer. More...
 
void slotGlobalToggleTwoSidedLighting ()
 If two-sided lighting is disabled in all viewers, enable it in all viewers. Otherwise disable it. More...
 
void slotGlobalChangeTwoSidedLighting (bool _lighting)
 Set two-sided lighting for all viewers. More...
 
void slotLocalChangeTwoSidedLighting (bool _lighting)
 Set two-sided lighting for active viewer. More...
 
void slotGlobalToggleMultisampling ()
 If multisampling is disabled in all viewers, enable it in all viewers. Otherwise disable it. More...
 
void slotGlobalChangeMultisampling (bool _multisampling)
 Set multisampling for all viewers. More...
 
void slotLocalChangeMultisampling (bool _multisampling)
 Set multisampling for active viewer. More...
 
void slotGlobalToggleMipmapping ()
 If mipmapping is disabled in all viewers, enable it in all viewers. Otherwise disable it. More...
 
void slotGlobalChangeMipmapping (bool _multisampling)
 Set mipmapping for all viewers. More...
 
void slotLocalChangeMipmapping (bool _mipmapping)
 Set mipmapping for active viewer. More...
 
void moveBack ()
 When using first person mode move backward. More...
 
void moveForward ()
 When using first person mode move forward. More...
 
void strafeLeft ()
 When using first person mode strafe to the left. More...
 
void strafeRight ()
 When using first person mode strafe to the right. More...
 

Action Mode States

Viewer::ActionMode actionMode_
 
Viewer::ActionMode lastActionMode_
 
bool pickingMode ()
 
bool lightMode ()
 
bool questionMode ()
 
void setExamineMode ()
 
void setPickingMode ()
 
void setQuestionMode ()
 
void setActionMode (const Viewer::ActionMode _am)
 
void getActionMode (Viewer::ActionMode &_am)
 
Viewer::ActionMode actionMode ()
 
Viewer::ActionMode lastActionMode ()
 
bool examineMode ()
 

PickModes

QMenu * pickMenu_
 
std::vector< PickModepick_modes_
 
std::string pick_mode_name_
 
int pick_mode_idx_
 
std::vector< QAction * > extended_actions
 
void addPickMode (const std::string &_name, bool _mouse_tracking=false, int _pos=-1, bool _visible=true, QCursor _cursor=Qt::ArrowCursor)
 add pick mode More...
 
void clearPickModes ()
 
const std::string & pickMode () const
 
void pickMode (int _id)
 
void expandToolBoxWidget (QWidget *widget, bool expand)
 
void signalPickModeChanged (const std::string &)
 
void hidePopupMenus ()
 
void updatePickMenu ()
 update pick mode menu More...
 
void setPickMode (const std::string &_name)
 
void getPickMode (std::string &_name)
 
void setActivePickToolBar (QToolBar *_tool)
 Set toolbar to be active pick toolbar. More...
 
void hidePickToolBar ()
 Hide picking toolbar. More...
 
void setPickModeCursor (const std::string &_name, QCursor _cursor)
 set a new cursor for the pick mode More...
 
void setPickModeMouseTracking (const std::string &_name, bool _mouseTracking)
 set mouseTracking for the pick mode More...
 
void setPickModeToolbar (const std::string &_mode, QToolBar *_toolbar)
 Set the additional toolbar of the given PickMode. More...
 
void removePickModeToolbar (const std::string &_mode)
 Removes the additional toolbar of the given PickMode. More...
 
void actionPickMenu (QAction *_action)
 

GUI creation

void setupMenuBar ()
 Setup the main menubar. More...
 
std::vector< PluginInfo > & plugins ()
 Convenient way to access plugin list. More...
 

Video Capturing

void startVideoCapture (QString _baseName, int _fps, bool _captureViewers)
 
void stopVideoCapture ()
 
void resizeViewers (int _width, int _height)
 
void resizeApplication (int _width, int _height)
 
void startVideoCaptureDialog ()
 

Drag and Drop

void dragOpenFile (QString _filename)
 
void startDrag (QMouseEvent *_event)
 
void dragEnterEvent (QDragEnterEvent *_event)
 
void dropEvent (QDropEvent *_event)
 

Detailed Description

Core Widget of the Application

Definition at line 283 of file CoreWidget.hh.

Member Typedef Documentation

◆ KeyMap

typedef std::multimap< std::pair< int, Qt::KeyboardModifiers > , std::pair< QObject*, int > > CoreWidget::KeyMap
private

typedefs

Definition at line 368 of file CoreWidget.hh.

◆ KeyRange

typedef std::pair< KeyMap::iterator, KeyMap::iterator > CoreWidget::KeyRange
private

typedefs

Definition at line 370 of file CoreWidget.hh.

◆ PickToolBarMap

typedef std::map<QToolBar*,QGraphicsProxyWidget*> CoreWidget::PickToolBarMap
private

Handle to picking toolbar.

Definition at line 747 of file CoreWidget.hh.

Constructor & Destructor Documentation

◆ CoreWidget()

CoreWidget::CoreWidget ( QVector< ViewMode * > &  _viewModes,
QList< SlotInfo > &  _coreSlots 
)

constructor

Constructor for the Core Widget.

Definition at line 134 of file CoreWidget.cc.

◆ ~CoreWidget()

CoreWidget::~CoreWidget ( )

destructor

Definition at line 672 of file CoreWidget.cc.

Member Function Documentation

◆ actionMode()

Viewer::ActionMode CoreWidget::actionMode ( )
inline

Set action mode. The ActionMode determines the type of reaction on mouse events.

Definition at line 1477 of file CoreWidget.hh.

◆ actionPickMenu

void CoreWidget::actionPickMenu ( QAction *  _action)
slot

Vector of all Picking modes

Definition at line 333 of file picking.cc.

◆ addAboutInfo

void CoreWidget::addAboutInfo ( const QString &  _text,
const QString &  _tabName 
)
slot

Adds an entry to the about dialog.

Parameters
_textContent of the tab
_tabNameHeader of the tab

Definition at line 83 of file About.cc.

◆ addContextMenus()

bool CoreWidget::addContextMenus ( QMenu *  _menu,
ContextMenuType  _type,
int  _id = -1 
)
private
Todo:
Sort the menu entries by the order given in visibleContextMenus

Definition at line 521 of file ContextMenu.cc.

◆ addCoreLicenseInfo()

void CoreWidget::addCoreLicenseInfo ( )
private

Add license information about core parts.

Adds the license information to the about dialog for used libraries.

Definition at line 45 of file CoreLicenseInfos.cc.

◆ addPickMode()

void CoreWidget::addPickMode ( const std::string &  _name,
bool  _mouse_tracking = false,
int  _pos = -1,
bool  _visible = true,
QCursor  _cursor = Qt::ArrowCursor 
)

add pick mode

Parameters
_nameName of the Pick Mode or "Separator" to insert a separator
_mouse_trackingtrue: every mouse movement will emit mouse events not only when mousebutton is pressed
_posposition to insert the mode in the popup menu.
_visibleIf true, the ode will be visible in the ui, otherwise it is a hidden pick mode
_cursorThe cursor that should be used when the given pickmode is active

Definition at line 393 of file picking.cc.

◆ addRecent()

void CoreWidget::addRecent ( QString  _filename,
DataType  _type 
)

Add a recent file and update menu.

Definition at line 878 of file CoreWidget.cc.

◆ addWidgetToStatusbar

void CoreWidget::addWidgetToStatusbar ( QWidget *  _widget)
slot

Definition at line 128 of file StatusBar.cc.

◆ applicationSnapshot

void CoreWidget::applicationSnapshot ( )
slot

Create a snapshot of the whole app.

Take a snapshot of the whole application.

Definition at line 541 of file viewerControl.cc.

◆ applicationSnapshotDialog

void CoreWidget::applicationSnapshotDialog ( )
slot

Create a snapshot of the whole app with fileDialog.

Take a snapshot of the whole application.

Definition at line 492 of file viewerControl.cc.

◆ applicationSnapshotName

void CoreWidget::applicationSnapshotName ( const QString &  _name)
slot

Set the snapshot name.

Definition at line 900 of file viewerControl.cc.

◆ clearPickModes()

void CoreWidget::clearPickModes ( )

clear all pick modes

Definition at line 481 of file picking.cc.

◆ clearStatusMessage

void CoreWidget::clearStatusMessage ( )
slot

Definition at line 95 of file StatusBar.cc.

◆ closeChangeViewModePopup

void CoreWidget::closeChangeViewModePopup ( )
privateslot

Closes the change view mode popup.

Definition at line 342 of file viewMode.cc.

◆ closeEvent

void CoreWidget::closeEvent ( QCloseEvent *  event)
privateslot

Called on applications close.

Definition at line 925 of file CoreWidget.cc.

◆ coreKeyPressEvent() [1/2]

void CoreWidget::coreKeyPressEvent ( )
private

handle key events for the core

This function is called to handle key events which are registered to the core

◆ coreKeyPressEvent() [2/2]

void CoreWidget::coreKeyPressEvent ( QKeyEvent *  _e)
private

Handle core key events.

if a keyPressEvent belongs to the core this functions is called

Definition at line 564 of file keyHandling.cc.

◆ coreKeyReleaseEvent()

void CoreWidget::coreKeyReleaseEvent ( QKeyEvent *  _e)
private

if a keyReleaseEvent belongs to the core this functions is called

Definition at line 671 of file keyHandling.cc.

◆ defaultIconSize()

QSize CoreWidget::defaultIconSize ( )

Show logger in splitter or not.

Definition at line 142 of file CoreWidgetToolbar.cc.

◆ delete_garbage

void CoreWidget::delete_garbage ( )
privateslot

Definition at line 925 of file viewerControl.cc.

◆ dragEnterEvent

void CoreWidget::dragEnterEvent ( QDragEnterEvent *  _event)
privateslot
Todo:
This is deprecated as its now handled by the url code above which should be used. Normally this code is not reached at all now. Remove it soon!

Definition at line 128 of file dragAndDrop.cc.

◆ dragOpenFile

void CoreWidget::dragOpenFile ( QString  _filename)
signal
Todo:
This is deprecated as its now handled by the url code above which should be used. Normally this code is not reached at all now. Remove it soon!

◆ dropEvent

void CoreWidget::dropEvent ( QDropEvent *  _event)
privateslot
Todo:
This is deprecated as its now handled by the url code above which should be used. Normally this code is not reached at all now. Remove it soon!

Definition at line 142 of file dragAndDrop.cc.

◆ event()

bool CoreWidget::event ( QEvent *  event)
private

typedefs

Definition at line 1105 of file CoreWidget.cc.

◆ eventFilter()

bool CoreWidget::eventFilter ( QObject *  _obj,
QEvent *  _event 
)
private

typedefs

Definition at line 131 of file MenuBar.cc.

◆ examineMode

bool CoreWidget::examineMode ( )
inlineslot

Set action mode. The ActionMode determines the type of reaction on mouse events.

Definition at line 1461 of file CoreWidget.hh.

◆ expandToolBoxWidget()

void CoreWidget::expandToolBoxWidget ( QWidget *  widget,
bool  expand 
)

Vector of all Picking modes

Definition at line 492 of file picking.cc.

◆ getActionMode()

void CoreWidget::getActionMode ( Viewer::ActionMode _am)

Set action mode. The ActionMode determines the type of reaction on mouse events.

Definition at line 152 of file picking.cc.

◆ getCoordsysProjection

ACG::SceneGraph::CoordsysNode::ProjectionMode CoreWidget::getCoordsysProjection ( )
privateslot

Toggle coordsys projection mode of the active viewer.

Definition at line 182 of file viewerControl.cc.

◆ getKeyBinding()

KeyBinding CoreWidget::getKeyBinding ( QObject *  _plugin,
int  _keyIndex 
)
private

typedefs

Definition at line 50 of file keyHandling.cc.

◆ getPickMode

void CoreWidget::getPickMode ( std::string &  _name)
slot

Vector of all Picking modes

Definition at line 173 of file picking.cc.

◆ getRPCName()

QString CoreWidget::getRPCName ( QObject *  _plugin)
private

typedefs

Definition at line 63 of file keyHandling.cc.

◆ getToolBar

void CoreWidget::getToolBar ( QString  _name,
QToolBar *&  _toolbar 
)
privateslot

Called by Plugins to get access to specific Toolbars by name.

Definition at line 112 of file CoreWidgetToolbar.cc.

◆ getToolbox()

SideArea * CoreWidget::getToolbox ( )
inline

Show logger in splitter or not.

Definition at line 516 of file CoreWidget.hh.

◆ getToolboxArea()

QWidget * CoreWidget::getToolboxArea ( )
inline

Show logger in splitter or not.

Definition at line 515 of file CoreWidget.hh.

◆ getToolboxScrollArea()

QScrollArea * CoreWidget::getToolboxScrollArea ( )
inline

Show logger in splitter or not.

Definition at line 514 of file CoreWidget.hh.

◆ hidePickToolBar

void CoreWidget::hidePickToolBar ( )
slot

Hide picking toolbar.

Definition at line 270 of file picking.cc.

◆ hidePopupMenus

void CoreWidget::hidePopupMenus ( )
privateslot

Vector of all Picking modes

Definition at line 349 of file picking.cc.

◆ initViewModes

void CoreWidget::initViewModes ( )
slot

init ViewModes that were loaded via ini-file

Definition at line 54 of file viewMode.cc.

◆ keyPressEvent()

void CoreWidget::keyPressEvent ( QKeyEvent *  _e)
protectedvirtual

Handle key events.

passes keyPressEvents to either the Core or a Plugin depending on who has registered the key

Definition at line 77 of file keyHandling.cc.

◆ keyReleaseEvent()

void CoreWidget::keyReleaseEvent ( QKeyEvent *  _e)
protectedvirtual

passes keyReleaseEvents to either the Core or a Plugin depending on who has registered the key

Definition at line 149 of file keyHandling.cc.

◆ lastActionMode()

Viewer::ActionMode CoreWidget::lastActionMode ( )
inline

Set action mode. The ActionMode determines the type of reaction on mouse events.

Definition at line 1478 of file CoreWidget.hh.

◆ lightMode()

bool CoreWidget::lightMode ( )
inline

Set action mode. The ActionMode determines the type of reaction on mouse events.

Definition at line 1463 of file CoreWidget.hh.

◆ loadKeyBindings()

void CoreWidget::loadKeyBindings ( INIFile _ini)

Load key assignments from a given INI file.

Definition at line 414 of file keyHandling.cc.

◆ moveBack

void CoreWidget::moveBack ( )
privateslot

When using first person mode move backward.

Definition at line 1143 of file viewerControl.cc.

◆ moveForward

void CoreWidget::moveForward ( )
privateslot

When using first person mode move forward.

Definition at line 1147 of file viewerControl.cc.

◆ moveToolBoxToBottom

void CoreWidget::moveToolBoxToBottom ( QString  _name)
slot

Move a specific toolbox widget to the bottom of the side area.

Definition at line 492 of file viewMode.cc.

◆ moveToolBoxToTop

void CoreWidget::moveToolBoxToTop ( QString  _name)
slot

Move a specific toolbox widget to the top of the side area.

Definition at line 487 of file viewMode.cc.

◆ nextViewerLayout

void CoreWidget::nextViewerLayout ( )
privateslot

Switches over to the next view mode.

Definition at line 956 of file CoreWidget.cc.

◆ pickingMode()

bool CoreWidget::pickingMode ( )
inline

Set action mode. The ActionMode determines the type of reaction on mouse events.

Definition at line 1462 of file CoreWidget.hh.

◆ pickMode() [1/2]

const std::string & CoreWidget::pickMode ( ) const

return the currently active pick mode

Definition at line 497 of file picking.cc.

◆ pickMode() [2/2]

void CoreWidget::pickMode ( int  _id)

Switch to given picking mode

Parameters
_idId of the picking Mode

Definition at line 363 of file picking.cc.

◆ PluginKeyEvent

void CoreWidget::PluginKeyEvent ( QKeyEvent *  )
signal

When this Signal is emitted when a Keyevent Event occures The signal is connected to all Plugins implementing KeyInterface by the pluginLoader

◆ PluginKeyReleaseEvent

void CoreWidget::PluginKeyReleaseEvent ( QKeyEvent *  )
signal

When this Signal is emitted when a Keyevent Release occures The signal is connected to all Plugins implementing KeyInterface by the pluginLoader

◆ plugins()

std::vector< PluginInfo > & CoreWidget::plugins ( )
private

Convenient way to access plugin list.

Definition at line 679 of file CoreWidget.cc.

◆ questionMode()

bool CoreWidget::questionMode ( )
inline

Set action mode. The ActionMode determines the type of reaction on mouse events.

Definition at line 1464 of file CoreWidget.hh.

◆ registerCoreKeys()

void CoreWidget::registerCoreKeys ( )
private

Register all events related to the core.

if a keyPressEvent belongs to the core this functions is called

Definition at line 520 of file keyHandling.cc.

◆ removePickModeToolbar

void CoreWidget::removePickModeToolbar ( const std::string &  _mode)
slot

Removes the additional toolbar of the given PickMode.

Set the additional toolbar that should be shown in the pickMode

Parameters
_modeIdentifier of Picking mode

Definition at line 466 of file picking.cc.

◆ saveKeyBindings()

void CoreWidget::saveKeyBindings ( INIFile _ini)

Store current key assignments to a given INI file.

Definition at line 471 of file keyHandling.cc.

◆ sceneRectChanged

void CoreWidget::sceneRectChanged ( const QRectF &  rect)
privateslot

Updates the size of the main graphics widget in the scene

Definition at line 1053 of file CoreWidget.cc.

◆ setActionMode()

void CoreWidget::setActionMode ( const Viewer::ActionMode  _am)

Set action mode. The ActionMode determines the type of reaction on mouse events.

Definition at line 62 of file picking.cc.

◆ setActivePickToolBar

void CoreWidget::setActivePickToolBar ( QToolBar *  _tool)
slot

Set toolbar to be active pick toolbar.

Definition at line 179 of file picking.cc.

◆ setExamineMode()

void CoreWidget::setExamineMode ( )
inline

Set action mode. The ActionMode determines the type of reaction on mouse events.

Definition at line 1469 of file CoreWidget.hh.

◆ setForceNativeCursor()

void CoreWidget::setForceNativeCursor ( bool  _state)

Use native or gl painted cursor.

Definition at line 1098 of file CoreWidget.cc.

◆ setFullscreen

void CoreWidget::setFullscreen ( bool  _state)
slot

Enable or disable fullscreen mode.

Enable or disable Fullscreen Mode

Definition at line 700 of file CoreWidget.cc.

◆ setPickingMode()

void CoreWidget::setPickingMode ( )
inline

Set action mode. The ActionMode determines the type of reaction on mouse events.

Definition at line 1470 of file CoreWidget.hh.

◆ setPickMode

void CoreWidget::setPickMode ( const std::string &  _name)
slot

Switch to given picking mode

Parameters
_nameName of the picking mode

Definition at line 158 of file picking.cc.

◆ setPickModeCursor

void CoreWidget::setPickModeCursor ( const std::string &  _name,
QCursor  _cursor 
)
slot

set a new cursor for the pick mode

Parameters
_nameName of the Pick Mode
_cursorthe new cursor

Definition at line 414 of file picking.cc.

◆ setPickModeMouseTracking

void CoreWidget::setPickModeMouseTracking ( const std::string &  _name,
bool  _mouseTracking 
)
slot

set mouseTracking for the pick mode

Parameters
_nameName of the Pick Mode
_mouseTrackingtrue: every mouse movement will emit mouse events not only when mousebutton is pressed

Definition at line 429 of file picking.cc.

◆ setPickModeToolbar

void CoreWidget::setPickModeToolbar ( const std::string &  _mode,
QToolBar *  _toolbar 
)
slot

Set the additional toolbar of the given PickMode.

Set the additional toolbar that should be shown in the pickMode

Parameters
_modeIdentifier of Picking mode
_toolbarthe toolbar

Definition at line 446 of file picking.cc.

◆ setQuestionMode()

void CoreWidget::setQuestionMode ( )
inline

Set action mode. The ActionMode determines the type of reaction on mouse events.

Definition at line 1471 of file CoreWidget.hh.

◆ setStatus

void CoreWidget::setStatus ( ApplicationStatus::applicationStatus  _status)
slot

Definition at line 102 of file StatusBar.cc.

◆ setToolBoxOrientationOnTheRight

void CoreWidget::setToolBoxOrientationOnTheRight ( bool  _toolBoxRight)
slot

Set orientation of tool box (either on the right or the left side of the screen)

Definition at line 838 of file CoreWidget.cc.

◆ setupMenuBar()

void CoreWidget::setupMenuBar ( )

Setup the main menubar.

Definition at line 153 of file MenuBar.cc.

◆ setupStatusBar()

void CoreWidget::setupStatusBar ( )
private

Definition at line 70 of file StatusBar.cc.

◆ setViewerLayout

void CoreWidget::setViewerLayout ( int  _idx)
slot

Change viewer layout that was selected in the combo box.

Definition at line 995 of file CoreWidget.cc.

◆ setViewMode

void CoreWidget::setViewMode ( const QString &  _mode,
bool  _expandAll = false 
)
slot

Set the view Mode to the given Mode.

Slot for setting the viewMode from menu.

Definition at line 318 of file viewMode.cc.

◆ showAboutWidget

void CoreWidget::showAboutWidget ( )
slot

Display the about widget.

Definition at line 87 of file About.cc.

◆ showHelpBrowser

void CoreWidget::showHelpBrowser ( const QString &  page = homePage_)
slot

Display the help Browser.

Definition at line 65 of file Help.cc.

◆ showLogger

void CoreWidget::showLogger ( OpenFlipper::Options::LoggerState  _state)
slot

Change visibility of the logger.

Hide or show logger

Definition at line 68 of file LoggerHandling.cc.

◆ showLoggerInSplitView()

void CoreWidget::showLoggerInSplitView ( bool  _show)

Show logger in splitter or not.

Definition at line 110 of file LoggerHandling.cc.

◆ showMenuBar

void CoreWidget::showMenuBar ( bool  _state)
slot

Show or hide menubar.

Definition at line 776 of file CoreWidget.cc.

◆ showOptionsWidget

void CoreWidget::showOptionsWidget ( )
slot

Display the Options Browser.

Definition at line 929 of file CoreWidget.cc.

◆ showPythonScriptInterpreter

void CoreWidget::showPythonScriptInterpreter ( )
slot

Pointer to the OptionsWidget.

Definition at line 3 of file Python.cc.

◆ showReducedMenuBar()

void CoreWidget::showReducedMenuBar ( bool  reduced)

typedefs

Definition at line 147 of file MenuBar.cc.

◆ showStatusBar

void CoreWidget::showStatusBar ( bool  _state)
slot

Show or hide status bar.

Hide or show Status bar

Definition at line 155 of file StatusBar.cc.

◆ showToolBar

void CoreWidget::showToolBar ( bool  _state)
slot

Show or hide toolbar, emits toolBarToggled( bool _state )

Show or hide toolbar.

Definition at line 793 of file CoreWidget.cc.

◆ showToolbox

void CoreWidget::showToolbox ( bool  _state)
slot

Show or hide toolbox.

Hide or show toolbox

Definition at line 759 of file CoreWidget.cc.

◆ showViewModeControls

void CoreWidget::showViewModeControls ( bool  _show)
slot

Hide or show the View Mode controls.

Definition at line 718 of file CoreWidget.cc.

◆ signalPickModeChanged

void CoreWidget::signalPickModeChanged ( const std::string &  )
signal

This signal is emitted when the pickMode is changed and contains the new PickMode

◆ slotActivateExaminer

void CoreWidget::slotActivateExaminer ( )
privateslot

Makes the sender examiner active

Definition at line 1076 of file CoreWidget.cc.

◆ slotAddContextItem [1/2]

void CoreWidget::slotAddContextItem ( QAction *  _entry,
ContextMenuType  _type 
)
privateslot

called by plugins to add a new context menu item

Definition at line 746 of file ContextMenu.cc.

◆ slotAddContextItem [2/2]

void CoreWidget::slotAddContextItem ( QAction *  _entry,
DataType  _dataType,
ContextMenuType  type_ 
)
privateslot

called by plugins to add a real context menu item depending on DataType

Definition at line 755 of file ContextMenu.cc.

◆ slotAddContextItemToViewMode

void CoreWidget::slotAddContextItemToViewMode ( QAction *  _entry)
privateslot

called by slotAddContextItem to add the item to the view mode

Definition at line 765 of file ContextMenu.cc.

◆ slotAddKeyMapping

void CoreWidget::slotAddKeyMapping ( int  _key,
Qt::KeyboardModifiers  _modifiers,
QObject *  _plugin,
int  _keyBindingID 
)
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 348 of file keyHandling.cc.

◆ slotAddMenubarAction

void CoreWidget::slotAddMenubarAction ( QAction *  _action,
QString  _name 
)
privateslot

File Menu.

Definition at line 61 of file MenuBar.cc.

◆ slotAddMenubarActions

void CoreWidget::slotAddMenubarActions ( std::vector< QAction * >  _actions,
QString  _name 
)
privateslot

File Menu.

Definition at line 82 of file MenuBar.cc.

◆ slotAddStackWidget

void CoreWidget::slotAddStackWidget ( QString  _name,
QWidget *  _widget 
)
privateslot

QMenu containing the recently opened files.

Definition at line 79 of file StackWidget.cc.

◆ slotAddToolbar

void CoreWidget::slotAddToolbar ( QToolBar *  _toolbar)
privateslot

Called by Plugins to add a Toolbar.

Definition at line 60 of file CoreWidgetToolbar.cc.

◆ slotAddViewModeComplete

void CoreWidget::slotAddViewModeComplete ( const QString &  _mode,
bool  _custom,
const QStringList &  _toolboxes,
const QStringList &  _toolbars,
const QStringList &  _contextmenus 
)
slot

Completly configure a view mode ( set toolbars, toolboxes, context menus, ... )

Definition at line 322 of file viewMode.cc.

◆ slotAddViewModeContextMenus [1/2]

void CoreWidget::slotAddViewModeContextMenus ( const QString &  _mode,
bool  _custom,
const QStringList &  _usedToolbars 
)
slot

Add or change Toolbars for a ViewMode (_custom == userdefined viewMode)

Definition at line 202 of file viewMode.cc.

◆ slotAddViewModeContextMenus [2/2]

void CoreWidget::slotAddViewModeContextMenus ( const QString &  _mode,
const QStringList &  _usedToolbars 
)
slot

Add or change Toolbars for a ViewMode (non-userdefined viewMode)

Definition at line 198 of file viewMode.cc.

◆ slotAddViewModeToolbars [1/2]

void CoreWidget::slotAddViewModeToolbars ( const QString &  _mode,
bool  _custom,
const QStringList &  _usedToolbars 
)
slot

Add or change Toolbars for a ViewMode (_custom == userdefined viewMode)

Definition at line 145 of file viewMode.cc.

◆ slotAddViewModeToolbars [2/2]

void CoreWidget::slotAddViewModeToolbars ( const QString &  _mode,
const QStringList &  _usedToolbars 
)
slot

Add or change Toolbars for a ViewMode (non-userdefined viewMode)

Definition at line 141 of file viewMode.cc.

◆ slotAddViewModeToolboxes [1/2]

void CoreWidget::slotAddViewModeToolboxes ( const QString &  _mode,
bool  _custom,
const QStringList &  _usedWidgets 
)
slot

Add or change Toolboxes for a ViewMode (_custom == userdefined viewMode)

Definition at line 97 of file viewMode.cc.

◆ slotAddViewModeToolboxes [2/2]

void CoreWidget::slotAddViewModeToolboxes ( const QString &  _mode,
const QStringList &  _usedWidgets 
)
slot

Add or change Toolboxes for a ViewMode (non-userdefined viewMode)

Definition at line 93 of file viewMode.cc.

◆ slotApplyStereoSettings

void CoreWidget::slotApplyStereoSettings ( int  _tmpParam = 0)
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 519 of file viewMode.cc.

◆ slotChangeView

void CoreWidget::slotChangeView ( QString  _mode,
QStringList  _toolboxWidgets,
QStringList  _toolbars,
QStringList  _contextmenus,
bool  _expandAll = false 
)
slot

Slot for Changing visible toolWidgets.

Definition at line 382 of file viewMode.cc.

◆ slotContextHomeView

void CoreWidget::slotContextHomeView ( )
privateslot

Set the active viewer to home position.

Set the viewer to home position.

Definition at line 124 of file viewerControl.cc.

◆ slotContextSetHomeView

void CoreWidget::slotContextSetHomeView ( )
privateslot

Set the active viewers home position.

Set the viewers home position.

Definition at line 153 of file viewerControl.cc.

◆ slotContextSwitchCoordsysProjection

void CoreWidget::slotContextSwitchCoordsysProjection ( )
privateslot

Toggle coordsys projection mode of the active viewer.

Definition at line 195 of file viewerControl.cc.

◆ slotContextSwitchProjection

void CoreWidget::slotContextSwitchProjection ( )
privateslot

Toggle projection mode of the active viewer.

Definition at line 177 of file viewerControl.cc.

◆ slotContextViewAll

void CoreWidget::slotContextViewAll ( )
privateslot

Change view on active viewer to view complete scene.

Definition at line 165 of file viewerControl.cc.

◆ slotCoordSysVisibility

void CoreWidget::slotCoordSysVisibility ( bool  _visible)
privateslot

Hide coordinate systems in all viewers.

Definition at line 1106 of file viewerControl.cc.

◆ slotCopyView

void CoreWidget::slotCopyView ( )
privateslot

Copy view from the last active examiner.

Definition at line 1088 of file viewerControl.cc.

◆ slotCustomContextMenu

void CoreWidget::slotCustomContextMenu ( const QPoint &  _point)
privateslot

This slot is called by the examiner widgets gl area when a context menu is requested.

Definition at line 60 of file ContextMenu.cc.

◆ slotExaminerSnapshot

void CoreWidget::slotExaminerSnapshot ( )
privateslot

Create a snapshot of the last active examiner.

Take a snapshot of the current Viewer.

Definition at line 349 of file viewerControl.cc.

◆ slotFilterToolboxes

void CoreWidget::slotFilterToolboxes ( QString  searchBarText)
slot

Slot for Filtering visible Toolboxes.

Definition at line 349 of file viewMode.cc.

◆ slotGetMenubarMenu

void CoreWidget::slotGetMenubarMenu ( QString  _name,
QMenu *&  _menu,
bool  _create 
)
privateslot

File Menu.

Definition at line 108 of file MenuBar.cc.

◆ slotGetStackWidget

void CoreWidget::slotGetStackWidget ( const QString &  _name,
QWidget *&  _widget 
)
privateslot

QMenu containing the recently opened files.

Definition at line 67 of file StackWidget.cc.

◆ slotGlobalChangeAnimation

void CoreWidget::slotGlobalChangeAnimation ( bool  _animation)
privateslot

Set the animation mode for all viewers.

Definition at line 241 of file viewerControl.cc.

◆ slotGlobalChangeBackFaceCulling

void CoreWidget::slotGlobalChangeBackFaceCulling ( bool  _backFaceCulling)
privateslot

Set backface culling for all viewers.

Definition at line 265 of file viewerControl.cc.

◆ slotGlobalChangeMipmapping

void CoreWidget::slotGlobalChangeMipmapping ( bool  _multisampling)
privateslot

Set mipmapping for all viewers.

Definition at line 338 of file viewerControl.cc.

◆ slotGlobalChangeMultisampling

void CoreWidget::slotGlobalChangeMultisampling ( bool  _multisampling)
privateslot

Set multisampling for all viewers.

Definition at line 314 of file viewerControl.cc.

◆ slotGlobalChangeTwoSidedLighting

void CoreWidget::slotGlobalChangeTwoSidedLighting ( bool  _lighting)
privateslot

Set two-sided lighting for all viewers.

Definition at line 290 of file viewerControl.cc.

◆ slotGlobalDrawMenu

void CoreWidget::slotGlobalDrawMenu ( QAction *  _action)
privateslot

Called when the global drawMode is selected.

Definition at line 935 of file MenuBar.cc.

◆ slotGlobalHomeView

void CoreWidget::slotGlobalHomeView ( )
privateslot

Set the viewer to home position.

Definition at line 147 of file viewerControl.cc.

◆ slotGlobalOrthographicProjection

void CoreWidget::slotGlobalOrthographicProjection ( )
privateslot

Toggle projection mode of all viewers to orthographic projection.

Toggle projection mode of all viewers to orthogonal projection.

Definition at line 222 of file viewerControl.cc.

◆ slotGlobalPerspectiveProjection

void CoreWidget::slotGlobalPerspectiveProjection ( )
privateslot

Toggle projection mode of all viewers to perspective projection.

Definition at line 216 of file viewerControl.cc.

◆ slotGlobalPostProcessorMenu

void CoreWidget::slotGlobalPostProcessorMenu ( QAction *  _action)
privateslot

Called when the global postprocessor is selected.

Definition at line 925 of file MenuBar.cc.

◆ slotGlobalRendererMenu

void CoreWidget::slotGlobalRendererMenu ( QAction *  _action)
privateslot

Called when the global renderer is selected.

Definition at line 909 of file MenuBar.cc.

◆ slotGlobalSetHomeView

void CoreWidget::slotGlobalSetHomeView ( )
privateslot

Set the home position for all viewers.

Definition at line 159 of file viewerControl.cc.

◆ slotGlobalToggleAnimation

void CoreWidget::slotGlobalToggleAnimation ( )
privateslot

If animation is disabled in all viewers, enable it in all viewers. Otherwise disable it.

Definition at line 229 of file viewerControl.cc.

◆ slotGlobalToggleBackFaceCulling

void CoreWidget::slotGlobalToggleBackFaceCulling ( )
privateslot

If backface culling is disabled in all viewers, enable it in all viewers. Otherwise disable it.

Definition at line 253 of file viewerControl.cc.

◆ slotGlobalToggleMipmapping

void CoreWidget::slotGlobalToggleMipmapping ( )
privateslot

If mipmapping is disabled in all viewers, enable it in all viewers. Otherwise disable it.

Definition at line 326 of file viewerControl.cc.

◆ slotGlobalToggleMultisampling

void CoreWidget::slotGlobalToggleMultisampling ( )
privateslot

If multisampling is disabled in all viewers, enable it in all viewers. Otherwise disable it.

Definition at line 302 of file viewerControl.cc.

◆ slotGlobalToggleTwoSidedLighting

void CoreWidget::slotGlobalToggleTwoSidedLighting ( )
privateslot

If two-sided lighting is disabled in all viewers, enable it in all viewers. Otherwise disable it.

Definition at line 278 of file viewerControl.cc.

◆ slotGlobalViewAll

void CoreWidget::slotGlobalViewAll ( )
privateslot

Change view on all viewers to view complete scene.

Definition at line 171 of file viewerControl.cc.

◆ slotHideContextMenu

void CoreWidget::slotHideContextMenu ( )
slot

Hide the context menu.

Definition at line 77 of file ContextMenu.cc.

◆ slotLocalChangeAnimation

void CoreWidget::slotLocalChangeAnimation ( bool  _animation)
privateslot

Set the animation mode for active viewer.

Definition at line 247 of file viewerControl.cc.

◆ slotLocalChangeBackFaceCulling

void CoreWidget::slotLocalChangeBackFaceCulling ( bool  _backFaceCulling)
privateslot

Set backface culling for active viewer.

Definition at line 272 of file viewerControl.cc.

◆ slotLocalChangeMipmapping

void CoreWidget::slotLocalChangeMipmapping ( bool  _mipmapping)
privateslot

Set mipmapping for active viewer.

Definition at line 344 of file viewerControl.cc.

◆ slotLocalChangeMultisampling

void CoreWidget::slotLocalChangeMultisampling ( bool  _multisampling)
privateslot

Set multisampling for active viewer.

Definition at line 320 of file viewerControl.cc.

◆ slotLocalChangeTwoSidedLighting

void CoreWidget::slotLocalChangeTwoSidedLighting ( bool  _lighting)
privateslot

Set two-sided lighting for active viewer.

Definition at line 296 of file viewerControl.cc.

◆ slotLockRotation

void CoreWidget::slotLockRotation ( bool  _lock)
privateslot

Lock rotation in current examiner widget.

Definition at line 1136 of file viewerControl.cc.

◆ slotLog

void CoreWidget::slotLog ( Logtype  _type,
QString  _message 
)
privateslot

Slot writing everything to the Logger widget.

Display a log message in the Mainwidget

Parameters
_typeType of Message (OUT,WARN,ERR)
_messageThe message to be displayed

This slot has to be called by all loggers. It is used to serialize and color the Output.

Parameters
_typeLogtype (defines the color of the output)
_messageThe message for output

Definition at line 71 of file CoreWidgetLogging.cc.

◆ slotPasteView

void CoreWidget::slotPasteView ( )
privateslot

Paste the view to the last active examiner.

Definition at line 946 of file viewerControl.cc.

◆ slotPasteViewAndWindow

void CoreWidget::slotPasteViewAndWindow ( )
privateslot

Paste the view, the window and toolbox size to the last active examiner.

Definition at line 1045 of file viewerControl.cc.

◆ slotPostProcessorMenu

void CoreWidget::slotPostProcessorMenu ( QAction *  _action)
privateslot

Called when a different post processor has been chosen.

Definition at line 896 of file ContextMenu.cc.

◆ slotRegisterKey

void CoreWidget::slotRegisterKey ( int  _key,
Qt::KeyboardModifiers  _modifiers,
const QString &  _description,
bool  _multiUse = false 
)
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 206 of file keyHandling.cc.

◆ slotRegisterSlotKeyBindings

void CoreWidget::slotRegisterSlotKeyBindings ( )
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 283 of file keyHandling.cc.

◆ slotRemoveToolbar

void CoreWidget::slotRemoveToolbar ( QToolBar *  _toolbar)
privateslot

Called by Plugins to remove a Toolbar.

Definition at line 128 of file CoreWidgetToolbar.cc.

◆ slotRemoveViewMode

void CoreWidget::slotRemoveViewMode ( const QString &  _name)
privateslot

Remove viewMode.

Remove a viewMode.

Definition at line 295 of file viewMode.cc.

◆ slotRenderMenu

void CoreWidget::slotRenderMenu ( QAction *  _action)
privateslot

Called when a different renderer has been chosen.

Definition at line 901 of file ContextMenu.cc.

◆ slotSetContextBackgroundColor

void CoreWidget::slotSetContextBackgroundColor ( )
privateslot

Set Background Color for one viewer.

Definition at line 109 of file viewerControl.cc.

◆ slotSetGlobalBackgroundColor

void CoreWidget::slotSetGlobalBackgroundColor ( )
privateslot

Set Background Color for all viewers at once.

Definition at line 92 of file viewerControl.cc.

◆ slotSetView

void CoreWidget::slotSetView ( QString  view)
privateslot

Set the supplied serialized view.

Definition at line 950 of file viewerControl.cc.

◆ slotSetViewAndWindowGeometry

void CoreWidget::slotSetViewAndWindowGeometry ( QString  view)
privateslot

Set the supplied serialized view.

Definition at line 954 of file viewerControl.cc.

◆ slotSetViewingDirection

void CoreWidget::slotSetViewingDirection ( QAction *  _action)
privateslot

Change the viewing direction from context-menu.

Definition at line 1126 of file viewerControl.cc.

◆ slotSetViewMode

void CoreWidget::slotSetViewMode ( QAction *  action)
privateslot

Slot for setting ViewMode from Menu.

Slot for setting the viewMode from menu.

Definition at line 313 of file viewMode.cc.

◆ slotSetViewModeIcon [1/2]

void CoreWidget::slotSetViewModeIcon ( const QString &  _mode,
bool  _custom,
const QString &  _iconName 
)
slot

Sets the Icon for a given View Mode (_custom == userdefined viewMode)

Sets the Icon for a given View Mode.

Definition at line 250 of file viewMode.cc.

◆ slotSetViewModeIcon [2/2]

void CoreWidget::slotSetViewModeIcon ( const QString &  _mode,
const QString &  _iconName 
)
slot

Sets the Icon for a given View Mode (non-userdefined viewMode)

Sets the Icon for a given View Mode.

Definition at line 245 of file viewMode.cc.

◆ slotShowPostProcessorManager

void CoreWidget::slotShowPostProcessorManager ( )
slot

Definition at line 56 of file postProcessorDialog.cc.

◆ slotShowRenderManager

void CoreWidget::slotShowRenderManager ( )
slot

shows the widget for the rendermanager

Definition at line 56 of file rendererDialog.cc.

◆ slotShowRenderObjectWidget

void CoreWidget::slotShowRenderObjectWidget ( )
slot

Shows the widget containing the current render objects.

Definition at line 69 of file rendererDialog.cc.

◆ slotShowSceneGraphDialog

void CoreWidget::slotShowSceneGraphDialog ( )
privateslot

Creates and shows the Scenegraph Dialog

Definition at line 1027 of file CoreWidget.cc.

◆ slotSnapshotName

void CoreWidget::slotSnapshotName ( )
privateslot

Set the snapShot name for all examiners.

Definition at line 720 of file ContextMenu.cc.

◆ slotSwitchNavigation

void CoreWidget::slotSwitchNavigation ( bool  _egomode)
privateslot

Switch navigation mode.

Definition at line 137 of file viewerControl.cc.

◆ slotSwitchWheels

void CoreWidget::slotSwitchWheels ( bool  _state)
privateslot

Show / hide wheels.

Show / hide wheels in examiner windows.

Definition at line 129 of file viewerControl.cc.

◆ slotToggleStereoMode

void CoreWidget::slotToggleStereoMode ( )
privateslot

Enable or disable Stereo.

Definition at line 74 of file viewerControl.cc.

◆ slotUpdateExaminer

void CoreWidget::slotUpdateExaminer ( unsigned  _id)
privateslot

update the content of the specified examiner

Definition at line 545 of file viewMode.cc.

◆ slotUpdateGlobalDrawMenu

void CoreWidget::slotUpdateGlobalDrawMenu ( )
slot

Setup and update the global draw menu.

Definition at line 850 of file MenuBar.cc.

◆ slotUpdateRendererMenu

void CoreWidget::slotUpdateRendererMenu ( )
slot

Setup and update the global renderer menu.

Definition at line 774 of file MenuBar.cc.

◆ slotUpdateStackMenu

void CoreWidget::slotUpdateStackMenu ( )
privateslot

QMenu containing the recently opened files.

Definition at line 143 of file StackWidget.cc.

◆ slotUpdateStackWidget

void CoreWidget::slotUpdateStackWidget ( QString  _name,
QWidget *  _widget 
)
privateslot

QMenu containing the recently opened files.

Definition at line 96 of file StackWidget.cc.

◆ slotUpdateViewerDrawMenu

void CoreWidget::slotUpdateViewerDrawMenu ( )
privateslot

Creates a draw Menu for the currently active Viewer.

Definition at line 802 of file ContextMenu.cc.

◆ slotViewerDrawMenu

void CoreWidget::slotViewerDrawMenu ( QAction *  _action)
privateslot

Called when a coordsys drawMode has been changed.

Definition at line 868 of file ContextMenu.cc.

◆ slotViewMenuAboutToShow

void CoreWidget::slotViewMenuAboutToShow ( )
privateslot

Called before the view Menu is shown.

Definition at line 655 of file MenuBar.cc.

◆ slotViewMenuAction

void CoreWidget::slotViewMenuAction ( QAction *  _action)
privateslot

QMenu containing the recently opened files.

Definition at line 122 of file StackWidget.cc.

◆ slotViewModeDialog

void CoreWidget::slotViewModeDialog ( )
privateslot

Show a dialog in which the viewMode can be edited.

show dialog for changing ViewMode

Definition at line 329 of file viewMode.cc.

◆ startDrag

void CoreWidget::startDrag ( QMouseEvent *  _event)
privateslot
Todo:
This is deprecated as its now handled by the url code above which should be used. Normally this code is not reached at all now. Remove it soon!

Definition at line 67 of file dragAndDrop.cc.

◆ startVideoCaptureDialog

void CoreWidget::startVideoCaptureDialog ( )
privateslot

Definition at line 1062 of file CoreWidget.cc.

◆ statusMessage

void CoreWidget::statusMessage ( QString  _message,
int  _timeout = 0 
)
slot

Definition at line 62 of file StatusBar.cc.

◆ stereoButtonContextMenu

void CoreWidget::stereoButtonContextMenu ( const QPoint &  _pos)
slot

Creates custom context menu for stereo viewer settings.

Definition at line 497 of file viewMode.cc.

◆ strafeLeft

void CoreWidget::strafeLeft ( )
privateslot

When using first person mode strafe to the left.

Definition at line 1151 of file viewerControl.cc.

◆ strafeRight

void CoreWidget::strafeRight ( )
privateslot

When using first person mode strafe to the right.

Definition at line 1155 of file viewerControl.cc.

◆ toggleFullscreen

void CoreWidget::toggleFullscreen ( )
slot

Set application to Fullscreen and back.

Set viewer to Fullscreen Mode and back

Definition at line 688 of file CoreWidget.cc.

◆ toggleLogger

void CoreWidget::toggleLogger ( )
slot

Hide or show logging area.

Hide or show logger

Definition at line 46 of file LoggerHandling.cc.

◆ toggleMenuBar

void CoreWidget::toggleMenuBar ( )
slot

Hide or show menu bar.

Hide or show menubar.

Definition at line 821 of file CoreWidget.cc.

◆ toggleStatusBar

void CoreWidget::toggleStatusBar ( )
slot

Change visibility of the Status Bar.

Hide or show Status bar

Definition at line 144 of file StatusBar.cc.

◆ toggleToolBar

void CoreWidget::toggleToolBar ( )
slot

Hide or show current toolbar.

Definition at line 829 of file CoreWidget.cc.

◆ toggleToolbox

void CoreWidget::toggleToolbox ( )
slot

Hide or show toolbox area.

Hide or show toolbox

Definition at line 747 of file CoreWidget.cc.

◆ updateInSceneLoggerGeometry()

void CoreWidget::updateInSceneLoggerGeometry ( )

Set in-scene logger geometry right.

Definition at line 151 of file LoggerHandling.cc.

◆ updatePickMenu()

void CoreWidget::updatePickMenu ( )
private

update pick mode menu

Definition at line 291 of file picking.cc.

◆ updatePopupMenu()

void CoreWidget::updatePopupMenu ( const QPoint &  _point)
private

check current context and initialize context menu according to this context.

Update the contextmenu for the given position inside an examiner widget

Parameters
_pointPicking 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 657 of file ContextMenu.cc.

◆ updatePopupMenuBackground()

void CoreWidget::updatePopupMenuBackground ( QMenu *  _menu,
const QPoint &  _point 
)
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.

Parameters
_menuPointer to the context Menu
_pointposition in the viewer where the user clicked.

Definition at line 449 of file ContextMenu.cc.

◆ updatePopupMenuCoordsysNode()

void CoreWidget::updatePopupMenuCoordsysNode ( QMenu *  _menu,
const int  _part 
)
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...

Parameters
_menuPointer to the context Menu
_partid of the coordsys part which has been clicked on.

Definition at line 111 of file ContextMenu.cc.

◆ updatePopupMenuNode()

void CoreWidget::updatePopupMenuNode ( QMenu *  _menu,
ACG::SceneGraph::BaseNode _node 
)
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.

Parameters
_menuPointer to the context Menu
_nodenode which has been clicked on.

Definition at line 89 of file ContextMenu.cc.

◆ updatePopupMenuObject()

void CoreWidget::updatePopupMenuObject ( QMenu *  _menu,
BaseObjectData _object 
)
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.

Parameters
_menuPointer to the context Menu
_objectObject that has been clicked on.

Definition at line 499 of file ContextMenu.cc.

◆ updateRecent()

void CoreWidget::updateRecent ( )

Update the recent files menu.

Definition at line 892 of file CoreWidget.cc.

◆ viewerSnapshot [1/2]

void CoreWidget::viewerSnapshot ( )
slot

Create a snapshot of the whole app.

Take a snapshot of all viewers.

Definition at line 802 of file viewerControl.cc.

◆ viewerSnapshot [2/2]

void CoreWidget::viewerSnapshot ( QString  file_name,
bool  store_comments,
bool  comments_visible_only,
bool  comments_targeted_only,
bool  store_material_info,
int  snapshot_width,
int  snapshot_height,
bool  snapshot_transparent,
bool  hide_coord_sys,
int  snapshot_multisampling,
bool  store_view 
)
slot

Scriptable snapshot method offering full control.

Definition at line 555 of file viewerControl.cc.

◆ viewerSnapshotDialog

void CoreWidget::viewerSnapshotDialog ( )
slot

Create a snapshot of the whole app with fileDialog.

Take a snapshot of all viewers.

Definition at line 759 of file viewerControl.cc.

◆ writeImageAsynchronously()

void CoreWidget::writeImageAsynchronously ( QImage *  _image,
const QString &  _name 
)

Definition at line 911 of file viewerControl.cc.

Friends And Related Function Documentation

◆ Core

friend class Core
friend

Definition at line 289 of file CoreWidget.hh.

Member Data Documentation

◆ aboutWidget_

AboutWidget* CoreWidget::aboutWidget_
private

Pointer to the about widget.

Definition at line 1209 of file CoreWidget.hh.

◆ AC_ShowViewModeControls_

QAction* CoreWidget::AC_ShowViewModeControls_
private

Action for View Mode Widget Conrol in Menu.

Definition at line 711 of file CoreWidget.hh.

◆ actionMode_

Viewer::ActionMode CoreWidget::actionMode_
private

Set action mode. The ActionMode determines the type of reaction on mouse events.

Definition at line 1481 of file CoreWidget.hh.

◆ activeDrawModes_

ACG::SceneGraph::DrawModes::DrawMode CoreWidget::activeDrawModes_
private

This variable holds the global draw menu.

Definition at line 905 of file CoreWidget.hh.

◆ additionalAboutTabs_

QMap<QString,QString> CoreWidget::additionalAboutTabs_
private

Additional tab information, that could be provided by plugins.

Definition at line 1212 of file CoreWidget.hh.

◆ algorithmMenu_

QMenu* CoreWidget::algorithmMenu_
private

Algorithms Menu.

Definition at line 702 of file CoreWidget.hh.

◆ availableGlobalDrawModes_

ACG::SceneGraph::DrawModes::DrawMode CoreWidget::availableGlobalDrawModes_
private

This variable holds the global draw menu.

Definition at line 907 of file CoreWidget.hh.

◆ baseLayout_

QtMultiViewLayout* CoreWidget::baseLayout_
private

Base layout that holds gl views.

Definition at line 726 of file CoreWidget.hh.

◆ centerWidget_

QGraphicsWidget* CoreWidget::centerWidget_
private

center widged

Definition at line 723 of file CoreWidget.hh.

◆ contextMenu_

QMenu* CoreWidget::contextMenu_
private

context Menu for the gl area

Definition at line 998 of file CoreWidget.hh.

◆ contextMenus_

std::vector< MenuInfo > CoreWidget::contextMenus_
private

All real context menu entries.

Definition at line 1004 of file CoreWidget.hh.

◆ contextSelectionMenu_

QMenu* CoreWidget::contextSelectionMenu_
private

Context Menu containing all selection elements.

Definition at line 1001 of file CoreWidget.hh.

◆ coordSysMenu_

QMenu* CoreWidget::coordSysMenu_
private

Menu which holds the context menu entries for the coordsys node if invisible

Definition at line 1017 of file CoreWidget.hh.

◆ coreKeys_

std::vector<KeyBinding> CoreWidget::coreKeys_
private

vector of keys registered to the core

Definition at line 390 of file CoreWidget.hh.

◆ coreSlots_

QList< SlotInfo >& CoreWidget::coreSlots_
private

list of scripting slots from core

Definition at line 399 of file CoreWidget.hh.

◆ curPickingToolbarItems_

PickToolBarMap CoreWidget::curPickingToolbarItems_
private

Handle to picking toolbar.

Definition at line 748 of file CoreWidget.hh.

◆ cursorPainter_

CursorPainter* CoreWidget::cursorPainter_
private

Cursor handling.

Definition at line 757 of file CoreWidget.hh.

◆ defaultIconSize_

QSize CoreWidget::defaultIconSize_
private

Show logger in splitter or not.

Definition at line 574 of file CoreWidget.hh.

◆ drawGroup_

QActionGroup* CoreWidget::drawGroup_
private

This variable holds the global draw menu.

Definition at line 879 of file CoreWidget.hh.

◆ drawGroupViewer_

QActionGroup* CoreWidget::drawGroupViewer_
private

DrawGroup for per Viewer Draw Modes.

Definition at line 1007 of file CoreWidget.hh.

◆ examiner_widgets_

std::vector< glViewer* > CoreWidget::examiner_widgets_
private

Examiner Widget.

Definition at line 684 of file CoreWidget.hh.

◆ extended_actions

std::vector<QAction*> CoreWidget::extended_actions
private

Actions that are hidden in reduced mode.

Definition at line 1596 of file CoreWidget.hh.

◆ fileMenu_

QMenu* CoreWidget::fileMenu_
private

File Menu.

Definition at line 804 of file CoreWidget.hh.

◆ fileMenuEnd_

QAction* CoreWidget::fileMenuEnd_
private

First entry after all relevant parts of the File Menu.

Definition at line 816 of file CoreWidget.hh.

◆ globalAnimationAction_

QAction* CoreWidget::globalAnimationAction_
private

Action to globally set animation.

Definition at line 891 of file CoreWidget.hh.

◆ globalBackfaceCullingAction_

QAction* CoreWidget::globalBackfaceCullingAction_
private

Action to globally set backface culling.

Definition at line 894 of file CoreWidget.hh.

◆ globalDrawMenu_

QMenu* CoreWidget::globalDrawMenu_
private

This variable holds the global draw menu.

Definition at line 874 of file CoreWidget.hh.

◆ globalMipmappingAction_

QAction* CoreWidget::globalMipmappingAction_
private

Action to globally set mipmapping.

Definition at line 903 of file CoreWidget.hh.

◆ globalMultisamplingAction_

QAction* CoreWidget::globalMultisamplingAction_
private

Action to globally set multisampling.

Definition at line 900 of file CoreWidget.hh.

◆ globalTwosidedLightingAction_

QAction* CoreWidget::globalTwosidedLightingAction_
private

Action to globally set two-sided lighting.

Definition at line 897 of file CoreWidget.hh.

◆ glScene_

QtGLGraphicsScene* CoreWidget::glScene_
private

graphics scene used to paint gl context and widgets

Definition at line 717 of file CoreWidget.hh.

◆ glView_

QtGLGraphicsView* CoreWidget::glView_
private

graphics view that holds the gl scene

Definition at line 720 of file CoreWidget.hh.

◆ glWidget_

OFGLWidget* CoreWidget::glWidget_
private

gl widget used as drawing area to paint the graphics scene

Definition at line 714 of file CoreWidget.hh.

◆ helpMenu_

QMenu* CoreWidget::helpMenu_
private

Help Menu.

Definition at line 705 of file CoreWidget.hh.

◆ helpWidget_

HelpWidget* CoreWidget::helpWidget_
private

Pointer to the help Browser.

Definition at line 1124 of file CoreWidget.hh.

◆ homePage_

const QString CoreWidget::homePage_ = "qthelp://org.openflipper.user/user/index.html"
staticprivate

Pointer to the help Browser.

Definition at line 1113 of file CoreWidget.hh.

◆ invKeys_

InverseKeyMap CoreWidget::invKeys_
private

mapping of all registered keys and the corresponding plugins to currently assigned keys

Definition at line 396 of file CoreWidget.hh.

◆ keys_

KeyMap CoreWidget::keys_
private

mapping of all keys to registered keys and the corresponding plugins

Definition at line 393 of file CoreWidget.hh.

◆ lastActionMode_

Viewer::ActionMode CoreWidget::lastActionMode_
private

Set action mode. The ActionMode determines the type of reaction on mouse events.

Definition at line 1481 of file CoreWidget.hh.

◆ loggerState_

OpenFlipper::Options::LoggerState CoreWidget::loggerState_
private

Show logger in splitter or not.

Definition at line 572 of file CoreWidget.hh.

◆ logWidget_

LoggerWidget* CoreWidget::logWidget_
private

Textedit at the bottom for log messages.

Definition at line 693 of file CoreWidget.hh.

◆ mainToolbar_

QToolBar* CoreWidget::mainToolbar_
private

Called by Plugins to add a Toolbar.

Definition at line 1267 of file CoreWidget.hh.

◆ map_mutex_

QMutex CoreWidget::map_mutex_
private

Definition at line 1072 of file CoreWidget.hh.

◆ menus_

QMap<QString, QMenu *> CoreWidget::menus_
private

All available menus.

Definition at line 819 of file CoreWidget.hh.

◆ modeChangeWidget

viewModeChangeWidget* CoreWidget::modeChangeWidget
private

Handle to picking toolbar.

Definition at line 765 of file CoreWidget.hh.

◆ moveButton_

QToolButton* CoreWidget::moveButton_
private

Called by Plugins to add a Toolbar.

Definition at line 833 of file CoreWidget.hh.

◆ optionsWidget_

OptionsWidget* CoreWidget::optionsWidget_
private

Pointer to the OptionsWidget.

Definition at line 1232 of file CoreWidget.hh.

◆ originalLoggerSize_

int CoreWidget::originalLoggerSize_
private

Size of the logging window ( defaults to 240 )

Definition at line 696 of file CoreWidget.hh.

◆ orthogonalProjectionAction_

QAction* CoreWidget::orthogonalProjectionAction_
private

This variable holds the global draw menu.

Definition at line 888 of file CoreWidget.hh.

◆ perspectiveProjectionAction_

QAction* CoreWidget::perspectiveProjectionAction_
private

This variable holds the global draw menu.

Definition at line 887 of file CoreWidget.hh.

◆ pick_mode_idx_

int CoreWidget::pick_mode_idx_
private

Index of current pickMode

Definition at line 1591 of file CoreWidget.hh.

◆ pick_mode_name_

std::string CoreWidget::pick_mode_name_
private

Name of current pickMode

Definition at line 1587 of file CoreWidget.hh.

◆ pick_modes_

std::vector<PickMode> CoreWidget::pick_modes_
private

Vector of all Picking modes

Definition at line 1583 of file CoreWidget.hh.

◆ pickButton_

QToolButton* CoreWidget::pickButton_
private

Called by Plugins to add a Toolbar.

Definition at line 834 of file CoreWidget.hh.

◆ pickMenu_

QMenu* CoreWidget::pickMenu_
private

Vector of all Picking modes

Definition at line 1579 of file CoreWidget.hh.

◆ pickToolBarExternal_

QToolBar* CoreWidget::pickToolBarExternal_
private

Extra toolbar not in scene for picking.

Definition at line 751 of file CoreWidget.hh.

◆ postProcessorDialog_

PostProcessorDialog* CoreWidget::postProcessorDialog_
private

Definition at line 1139 of file CoreWidget.hh.

◆ pythonMenu_

QMenu* CoreWidget::pythonMenu_
private

Python Menu.

Definition at line 810 of file CoreWidget.hh.

◆ pythonWidget_

PythonWidget* CoreWidget::pythonWidget_
private

Pointer to the about widget.

Definition at line 1248 of file CoreWidget.hh.

◆ questionButton_

QToolButton* CoreWidget::questionButton_
private

Called by Plugins to add a Toolbar.

Definition at line 835 of file CoreWidget.hh.

◆ recentFilesMenu_

QMenu* CoreWidget::recentFilesMenu_
private

QMenu containing the recently opened files.

Definition at line 699 of file CoreWidget.hh.

◆ registeredToolbars_

std::set<QToolBar*> CoreWidget::registeredToolbars_
private

Store all toolbars that once have been registered.

Definition at line 754 of file CoreWidget.hh.

◆ rendererDialog_

RendererDialog* CoreWidget::rendererDialog_
private

shows the widget for the rendermanager

Definition at line 1158 of file CoreWidget.hh.

◆ rendererGroup_

QActionGroup* CoreWidget::rendererGroup_
private

Group for all renderers.

Definition at line 882 of file CoreWidget.hh.

◆ rendererMenu_

QMenu* CoreWidget::rendererMenu_
private

This variable holds the global renderer menu.

Definition at line 877 of file CoreWidget.hh.

◆ rendererObjectWidget_

RendererObjectWidget* CoreWidget::rendererObjectWidget_
private

shows the widget for the rendermanager

Definition at line 1159 of file CoreWidget.hh.

◆ sceneGraphDialog_

ACG::QtWidgets::QtSceneGraphDialog* CoreWidget::sceneGraphDialog_
private

Handle to picking toolbar.

Definition at line 761 of file CoreWidget.hh.

◆ shiftPressed_

bool CoreWidget::shiftPressed_
private

Store the state of the shift key.

Definition at line 435 of file CoreWidget.hh.

◆ slidingLogger_

QtSlideWindow* CoreWidget::slidingLogger_
private

Class that holds the animated log widget.

Definition at line 729 of file CoreWidget.hh.

◆ snapshotCounter_

int CoreWidget::snapshotCounter_
private

Create a snapshot of the whole app with fileDialog.

Take a snapshot of all viewers.

Definition at line 1029 of file CoreWidget.hh.

◆ snapshotName_

QString CoreWidget::snapshotName_
private

Create a snapshot of the whole app with fileDialog.

Take a snapshot of all viewers.

Definition at line 1028 of file CoreWidget.hh.

◆ splitter_

QSplitter* CoreWidget::splitter_
private

Spliter between toplevel objects and the textedit at the bottom.

Definition at line 687 of file CoreWidget.hh.

◆ stackedWidget_

QStackedWidget* CoreWidget::stackedWidget_

Container widget for holding multiple views.

Definition at line 1103 of file CoreWidget.hh.

◆ stackMenu_

QMenu* CoreWidget::stackMenu_
private

QMenu containing the recently opened files.

Definition at line 1097 of file CoreWidget.hh.

◆ stackWidgetList_

std::vector< StackWidgetInfo > CoreWidget::stackWidgetList_
private

QMenu containing the recently opened files.

Definition at line 1099 of file CoreWidget.hh.

◆ statusBar_

ColorStatusBar* CoreWidget::statusBar_
private

Definition at line 1290 of file CoreWidget.hh.

◆ statusIcon_

QLabel* CoreWidget::statusIcon_
private

Definition at line 1292 of file CoreWidget.hh.

◆ stereoActive_

bool CoreWidget::stereoActive_
private

The viewer with id _viewerId changed its draw Mode.

Definition at line 1450 of file CoreWidget.hh.

◆ stereoButton_

QToolButton* CoreWidget::stereoButton_
private

Called by Plugins to add a Toolbar.

Definition at line 832 of file CoreWidget.hh.

◆ stereoSettingsWidget_

StereoSettingsWidget* CoreWidget::stereoSettingsWidget_
private

Widget to change stereo settings.

Definition at line 1180 of file CoreWidget.hh.

◆ toolbarCount_

int CoreWidget::toolbarCount_
private

Called by Plugins to add a Toolbar.

Definition at line 830 of file CoreWidget.hh.

◆ toolbars_

std::vector< QToolBar* > CoreWidget::toolbars_
private

Called by Plugins to add a Toolbar.

Definition at line 1269 of file CoreWidget.hh.

◆ toolBox_

SideArea* CoreWidget::toolBox_
private

Toolbox.

Definition at line 741 of file CoreWidget.hh.

◆ toolBoxArea_

QWidget* CoreWidget::toolBoxArea_
private

Widget for toolBox.

Definition at line 732 of file CoreWidget.hh.

◆ toolBoxScroll_

QScrollArea* CoreWidget::toolBoxScroll_
private

Toolbox scroll area.

Definition at line 744 of file CoreWidget.hh.

◆ toolsMenu_

QMenu* CoreWidget::toolsMenu_
private

Tools Menu.

Definition at line 813 of file CoreWidget.hh.

◆ toolSplitter_

QSplitter* CoreWidget::toolSplitter_
private

Spliter between toplevel objects and toolbox.

Definition at line 738 of file CoreWidget.hh.

◆ toolWidgets_

QVector<QWidget*> CoreWidget::toolWidgets_
private

a List of all widgets in the toolbar

Definition at line 585 of file CoreWidget.hh.

◆ viewerDrawMenu_

QMenu* CoreWidget::viewerDrawMenu_
private

Draw Menu for per Viewer Draw Modes.

Definition at line 1010 of file CoreWidget.hh.

◆ viewerDrawMenuWidget_

QWidget* CoreWidget::viewerDrawMenuWidget_
private

owns all the checkboxes of viewerDrawMenu_

Definition at line 1013 of file CoreWidget.hh.

◆ viewerLayoutBox_

QComboBox* CoreWidget::viewerLayoutBox_
private

Called by Plugins to add a Toolbar.

Definition at line 837 of file CoreWidget.hh.

◆ viewerToolbar_

QToolBar* CoreWidget::viewerToolbar_
private

Called by Plugins to add a Toolbar.

Definition at line 828 of file CoreWidget.hh.

◆ viewGroup_

QActionGroup* CoreWidget::viewGroup_
private

Group for all menu items.

Definition at line 885 of file CoreWidget.hh.

◆ viewMenu_

QMenu* CoreWidget::viewMenu_
private

View Menu.

Definition at line 807 of file CoreWidget.hh.

◆ viewModeButton_

QAction* CoreWidget::viewModeButton_
private

a List of all widgets in the toolbar

Definition at line 593 of file CoreWidget.hh.

◆ viewModeChangePopupAction_

QWidgetAction* CoreWidget::viewModeChangePopupAction_
private

Handle to picking toolbar.

Definition at line 763 of file CoreWidget.hh.

◆ viewModeControlBox_

QWidget* CoreWidget::viewModeControlBox_
private

Group box containing Task Switcher Controls.

Definition at line 690 of file CoreWidget.hh.

◆ viewModeMenu_

QMenu* CoreWidget::viewModeMenu_
private

Submenu holding all ViewMode actions.

Definition at line 596 of file CoreWidget.hh.

◆ viewModePopupBtn_

QToolButton* CoreWidget::viewModePopupBtn_
private

view mode gear icon at the upper left of the tool box

Definition at line 735 of file CoreWidget.hh.

◆ viewModes_

QVector<ViewMode*>& CoreWidget::viewModes_

List of currently available viewModes.

Definition at line 589 of file CoreWidget.hh.

◆ watcher_garbage_

std::map<QFutureWatcher<void>*,QFuture<void>*> CoreWidget::watcher_garbage_
private

Definition at line 1069 of file CoreWidget.hh.

◆ windowMenu_

QMenu* CoreWidget::windowMenu_
private

Window Menu.

Definition at line 708 of file CoreWidget.hh.


The documentation for this class was generated from the following files: