75 #include <OpenFlipper/BasePlugin/ViewInterface.hh>
78 #include <OpenFlipper/widgets/coreWidget/SideArea.hh>
79 #include <OpenFlipper/widgets/coreWidget/ColorStatusBar.hh>
81 #include <OpenFlipper/widgets/glWidget/QtBaseViewer.hh>
82 #include <OpenFlipper/widgets/glWidget/QtGLGraphicsScene.hh>
83 #include <OpenFlipper/widgets/glWidget/QtGLGraphicsView.hh>
84 #include <OpenFlipper/widgets/glWidget/QtMultiViewLayout.hh>
85 #include <OpenFlipper/widgets/glWidget/QtSlideWindow.hh>
88 #include <QMainWindow>
89 #include <QStackedWidget>
95 #include <QFutureWatcher>
97 #include <QDockWidget>
99 #include <OpenFlipper/widgets/aboutWidget/aboutWidget.hh>
100 #include <OpenFlipper/widgets/loggerWidget/loggerWidget.hh>
101 #include <OpenFlipper/widgets/optionsWidget/optionsWidget.hh>
102 #include <OpenFlipper/widgets/helpWidget/helpWidget.hh>
103 #include <OpenFlipper/widgets/stereoSettingsWidget/stereoSettingsWidget.hh>
104 #include <OpenFlipper/widgets/postProcessorWidget/postProcessorWidget.hh>
105 #include <OpenFlipper/widgets/rendererWidget/rendererWidget.hh>
106 #include <OpenFlipper/widgets/rendererWidget/rendererObjectWidget.hh>
108 #include <OpenFlipper/Core/PluginInfo.hh>
110 #include <ACG/QtWidgets/QtSceneGraphWidget.hh>
112 #include <ACG/Scenegraph/DrawModes.hh>
113 #include <ACG/Scenegraph/CoordsysNode.hh>
115 #include <OpenFlipper/INIFile/INIFile.hh>
118 #include "../viewModeWidget/viewModeChangeWidget.hh"
188 PickMode(
const std::string& _n,
const bool _t,
const bool _v, QCursor _c, QToolBar *_tb = 0 );
198 void visible(
const bool _visible);
210 std::string
name()
const;
219 void tracking(
const bool _tracking);
242 void cursor(
const QCursor _cursor);
251 void toolbar(QToolBar* _toolbar);
293 CoreWidget( QVector<ViewMode*>& _viewModes, std::vector<PluginInfo>& _plugins, QList< SlotInfo >& _coreSlots );
301 void addEmptyObjectMenu();
306 void recentOpen(QAction*);
324 void log(QString _message);
344 bool event( QEvent *event );
361 void registerKey(
int _key, Qt::KeyboardModifiers _modifiers, QString _description,
362 bool _multiUse =
false);
365 void call( QString _expression ,
bool& _success );
369 typedef std::multimap< std::pair< int, Qt::KeyboardModifiers > , std::pair< QObject*, int > >
KeyMap;
371 typedef std::pair< KeyMap::iterator, KeyMap::iterator >
KeyRange;
408 void slotRegisterKey(
int _key, Qt::KeyboardModifiers _modifiers, QString _description,
409 bool _multiUse =
false);
416 void slotAddKeyMapping(
int _key, Qt::KeyboardModifiers _modifiers, QObject* _plugin,
int _keyBindingID);
465 void startVideoCaptureDialog();
518 void showLogger(OpenFlipper::Options::LoggerState _state);
610 void slotAddViewModeComplete(QString _mode ,
bool _custom, QStringList _toolboxes, QStringList _toolbars, QStringList _contextmenus);
619 void slotChangeView(QString _mode, QStringList _toolboxWidgets, QStringList _toolbars, QStringList _contextmenus,
bool _expandAll =
false);
649 void setViewMode( QString _mode,
bool _expandAll =
false );
1032 bool comments_visible_only,
bool comments_targeted_only,
1033 bool store_material_info,
int snapshot_width,
int snapshot_height,
1034 bool snapshot_transparent,
bool hide_coord_sys,
1035 int snapshot_multisampling,
bool store_view);
1046 void writeImageAsynchronously(QImage* _image,
const QString _name);
1051 std::map<QFutureWatcher<void>*,QFuture<void>*> watcher_garbage_;
1058 void delete_garbage();
1118 void slotShowPostProcessorManager();
1230 void getToolBar( QString _name, QToolBar*& _toolbar);
1244 void statusMessage(QString _message,
int _timeout = 0);
1246 void clearStatusMessage();
1250 void addWidgetToStatusbar(QWidget* _widget);
1253 void setupStatusBar();
1258 QLabel* statusIcon_;
1472 bool _mouse_tracking =
false,
1474 bool _visible =
true,
1475 QCursor _cursor = Qt::ArrowCursor );
1483 const std::string&
pickMode()
const;
1581 #endif // COREWIDGET_HH defined
void removePickModeToolbar(const std::string &_mode)
Removes the additional toolbar of the given PickMode.
void resizeApplication(int _width, int _height)
resize the whole Application
void slotSetViewMode(QAction *action)
Slot for setting ViewMode from Menu.
void drawModeChanged(int _viewerId)
The viewer with id _viewerId changed its draw Mode.
void updatePopupMenuObject(QMenu *_menu, BaseObjectData *_object)
Update popup Menu when an object has been clicked on.
bool tracking() const
PickMode mouse tracking.
void slotContextSetHomeView()
Set the active viewers home position.
void moveToolBoxToBottom(QString _name)
Move a specific toolbox widget to the bottom of the side area.
void slotAddStackWidget(QString _name, QWidget *_widget)
QMenu containing the recently opened files.
void getActionMode(Viewer::ActionMode &_am)
void dropEvent(QDropEvent *_event)
void PluginKeyReleaseEvent(QKeyEvent *)
QMap< QString, QString > additionalAboutTabs_
Additional tab information, that could be provided by plugins.
void updateContextMenuBackground()
tells the plugins to update their context menu when the background is picked
static const QString homePage_
Pointer to the help Browser.
void slotAddViewModeToolboxes(QString _mode, QStringList _usedWidgets)
Add or change Toolboxes for a ViewMode (non-userdefined viewMode)
void slotSetContextBackgroundColor()
Set Background Color for one viewer.
QAction * orthogonalProjectionAction_
This variable holds the global draw menu.
void changeHelpSite(QUrl)
Pointer to the help Browser.
void addCoreLicenseInfo()
Add license information about core parts.
void clearAll()
Clear all data objects.
void registerCoreKeys()
Register all events related to the core.
void slotAddMenubarActions(std::vector< QAction * > _actions, QString _name)
File Menu.
QSize defaultIconSize()
Show logger in splitter or not.
void slotApplyStereoSettings(int _tmpParam=0)
void slotLocalChangeBackFaceCulling(bool _backFaceCulling)
Set backface culling for active viewer.
void slotLocalChangeMultisampling(bool _multisampling)
Set multisampling for active viewer.
QtGLGraphicsView * glView_
graphics view that holds the gl scene
ACG::SceneGraph::DrawModes::DrawMode activeDrawModes_
This variable holds the global draw menu.
void addPickMode(const std::string &_name, bool _mouse_tracking=false, int _pos=-1, bool _visible=true, QCursor _cursor=Qt::ArrowCursor)
add pick mode
void viewerSnapshotDialog()
Create a snapshot of the whole app with fileDialog.
CursorPainter * cursorPainter_
Cursor handling.
Logtype
Log types for Message Window.
int snapshotCounter_
Create a snapshot of the whole app with fileDialog.
QWidgetAction * viewModeChangePopupAction_
Handle to picking toolbar.
void setActivePickToolBar(QToolBar *_tool)
Set toolbar to be active pick toolbar.
void setPickModeToolbar(const std::string &_mode, QToolBar *_toolbar)
Set the additional toolbar of the given PickMode.
QMap< QString, QMenu * > menus_
All available menus.
void slotCoordSysVisibility(bool _visible)
Hide coordinate systems in all viewers.
std::string name_
Name of the pickMode.
QActionGroup * drawGroupViewer_
DrawGroup for per Viewer Draw Modes.
QMenu * viewMenu_
View Menu.
void applicationSnapshotDialog()
Create a snapshot of the whole app with fileDialog.
void slotPostProcessorMenu(QAction *_action)
Called when a different post processor has been chosen.
void expandToolBoxWidget(QWidget *widget, bool expand)
void startVideoCapture(QString _baseName, int _fps, bool _captureViewers)
Start video capturing.
QToolBar * mainToolbar_
Called by Plugins to add a Toolbar.
applicationStatus
Enum for the statusBar Status Icon.
void slotShowRenderObjectWidget()
Shows the widget containing the current render objects.
void slotAddViewModeContextMenus(QString _mode, QStringList _usedToolbars)
Add or change Toolbars for a ViewMode (non-userdefined viewMode)
QActionGroup * rendererGroup_
Group for all renderers.
SideArea * getToolbox()
Show logger in splitter or not.
QtGLGraphicsScene * glScene_
graphics scene used to paint gl context and widgets
void dragEnterEvent(QDragEnterEvent *_event)
void setForceNativeCursor(bool _state)
Use native or gl painted cursor.
void resizeViewers(int _width, int _height)
resize the examinerViewer
void updateContextMenuNode(int)
tells the plugins to update their context menu when a node is picked
SideArea * toolBox_
Toolbox.
void slotLog(Logtype _type, QString _message)
Slot writing everything to the Logger widget.
QMenu * rendererMenu_
This variable holds the global renderer menu.
void showToolBar(bool _state)
Show or hide toolbar, emits toolBarToggled( bool _state )
void saveOptions()
Pointer to the OptionsWidget.
void statusBarVisChanged(bool _state)
will be emitted if the visibility of the statusbar is changed
void setFullscreen(bool _state)
Enable or disable fullscreen mode.
QMenu * windowMenu_
Window Menu.
RendererDialog * rendererDialog_
shows the widget for the rendermanager
QSplitter * toolSplitter_
Spliter between toplevel objects and toolbox.
void slotSwitchNavigation(bool _egomode)
Switch navigation mode.
void updateRecent()
Update the recent files menu.
void strafeLeft()
When using first person mode strafe to the left.
void slotViewModeDialog()
Show a dialog in which the viewMode can be edited.
void showViewModeControls(bool _show)
Hide or show the View Mode controls.
QToolButton * questionButton_
Called by Plugins to add a Toolbar.
void slotShowRenderManager()
shows the widget for the rendermanager
void registerKey(int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false)
internal signal to register CoreWidget keys
void slotCustomContextMenu(const QPoint &_point)
This slot is called by the examiner widgets gl area when a context menu is requested.
void setPickModeMouseTracking(const std::string &_name, bool _mouseTracking)
set mouseTracking for the pick mode
void closeEvent(QCloseEvent *event)
Called on applications close.
ProjectionMode
projection mode
void slotUpdateViewerDrawMenu()
Creates a draw Menu for the currently active Viewer.
QMenu * viewModeMenu_
Submenu holding all ViewMode actions.
void slotSetViewModeIcon(QString _mode, QString _iconName)
Sets the Icon for a given View Mode (non-userdefined viewMode)
QAction * globalMultisamplingAction_
Action to globally set multisampling.
void slotViewMenuAboutToShow()
Called before the view Menu is shown.
Viewer::ActionMode lastActionMode_
void slotChangeView(QString _mode, QStringList _toolboxWidgets, QStringList _toolbars, QStringList _contextmenus, bool _expandAll=false)
Slot for Changing visible toolWidgets.
AboutWidget * aboutWidget_
Pointer to the about widget.
void addAboutInfo(QString _text, QString _tabName)
Adds an entry to the about dialog.
QActionGroup * drawGroup_
This variable holds the global draw menu.
void slotGlobalHomeView()
Set the viewer to home position.
void coreKeyReleaseEvent(QKeyEvent *_e)
if a keyReleaseEvent belongs to the core this functions is called
void slotToggleStereoMode()
Enable or disable Stereo.
LoggerWidget * logWidget_
Textedit at the bottom for log messages.
void showOptionsWidget()
Display the Options Browser.
void showLogger(OpenFlipper::Options::LoggerState _state)
Change visibility of the logger.
PickToolBarMap curPickingToolbarItems_
Handle to picking toolbar.
void slotUpdateExaminer(unsigned _id)
update the content of the specified examiner
void slotUpdateGlobalDrawMenu()
Setup and update the global draw menu.
void toolBoxVisChanged(bool _state)
will be emitted if the visibility of the toolbox is changed
void setViewerLayout(int _idx)
Change viewer layout that was selected in the combo box.
void slotGlobalChangeMipmapping(bool _multisampling)
Set mipmapping for all viewers.
QtMultiViewLayout * baseLayout_
Base layout that holds gl views.
QAction * perspectiveProjectionAction_
This variable holds the global draw menu.
void showReducedMenuBar(bool reduced)
typedefs
void menuBarVisChanged(bool _state)
will be emitted if the visibility of the menubar is changed
void getPickMode(std::string &_name)
std::vector< QAction * > extended_actions
std::multimap< std::pair< int, Qt::KeyboardModifiers >, std::pair< QObject *, int > > KeyMap
typedefs
void slotRemoveViewMode(QString _name)
Remove viewMode.
void slotUpdateStackMenu()
QMenu containing the recently opened files.
bool eventFilter(QObject *_obj, QEvent *_event)
typedefs
QMenu * stackMenu_
QMenu containing the recently opened files.
void stopVideoCapture()
Stop video capturing.
void call(QString _expression, bool &_success)
call a scripting function
void toggleLogger()
Hide or show logging area.
QGraphicsWidget * centerWidget_
center widged
void slotGlobalChangeMultisampling(bool _multisampling)
Set multisampling for all viewers.
void slotGlobalToggleMipmapping()
If mipmapping is disabled in all viewers, enable it in all viewers. Otherwise disable it...
void slotSetViewingDirection(QAction *_action)
Change the viewing direction from context-menu.
void toggleFullscreen()
Set application to Fullscreen and back.
void slotExaminerSnapshot()
Create a snapshot of the last active examiner.
void updatePopupMenuNode(QMenu *_menu, ACG::SceneGraph::BaseNode *_node)
Update context Menu when an arbitrary node has been clicked on.
void slotActivateExaminer()
Viewer::ActionMode lastActionMode()
void nextViewerLayout()
Switches over to the next view mode.
QString snapshotName_
Create a snapshot of the whole app with fileDialog.
QAction * fileMenuEnd_
First entry after all relevant parts of the File Menu.
void slotAddToolbar(QToolBar *_toolbar)
Called by Plugins to add a Toolbar.
void coreKeyPressEvent()
handle key events for the core
The Menu will be shown when the background was picked.
void slotRegisterKey(int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false)
key registration
void slotAddKeyMapping(int _key, Qt::KeyboardModifiers _modifiers, QObject *_plugin, int _keyBindingID)
add a new key Mapping
QWidget * getToolboxArea()
Show logger in splitter or not.
void dragOpenFile(QString _filename)
QWidget * toolBoxArea_
Widget for toolBox.
void initViewModes()
init ViewModes that were loaded via ini-file
QStringList visibleContextMenus
List of context Menus in this view mode.
void saveKeyBindings(INIFile &_ini)
Store current key assignments to a given INI file.
Class for the handling of simple configuration files.
void viewerSnapshot()
Create a snapshot of the whole app.
void showToolbox(bool _state)
Show or hide toolbox.
virtual void keyReleaseEvent(QKeyEvent *_e)
passes keyReleaseEvents to either the Core or a Plugin depending on who has registered the key ...
bool custom
Is this a user defined custom view mode or a plugin generated one.
QMenu * fileMenu_
File Menu.
QMenu * algorithmMenu_
Algorithms Menu.
std::vector< PluginInfo > plugins_
List of all loaded plugins_.
void slotContextViewAll()
Change view on active viewer to view complete scene.
HelpWidget * helpWidget_
Pointer to the help Browser.
void updatePopupMenuCoordsysNode(QMenu *_menu, const int _part)
Update context Menu when Coordsys node has been clicked on.
void applicationSnapshot()
Create a snapshot of the whole app.
void setPickModeCursor(const std::string &_name, QCursor _cursor)
set a new cursor for the pick mode
void log(Logtype _type, QString _message)
Logg with OUT,WARN or ERR as type.
QString name
Name of the View Mode.
ACG::SceneGraph::CoordsysNode::ProjectionMode getCoordsysProjection()
Toggle coordsys projection mode of the active viewer.
void showStatusBar(bool _state)
Show or hide status bar.
void slotGlobalDrawMenu(QAction *_action)
Called when the global drawMode is selected.
void slotGlobalToggleMultisampling()
If multisampling is disabled in all viewers, enable it in all viewers. Otherwise disable it...
QStringList visibleToolboxes
List of Visible Toolboxes in this view mode.
QSplitter * splitter_
Spliter between toplevel objects and the textedit at the bottom.
void slotAddMenubarAction(QAction *_action, QString _name)
File Menu.
void setActionMode(const Viewer::ActionMode _am)
QMenu * globalDrawMenu_
This variable holds the global draw menu.
Implementation of the logger Widget.
QToolBar * pickToolBarExternal_
Extra toolbar not in scene for picking.
void slotGlobalSetHomeView()
Set the home position for all viewers.
void setViewMode(QString _mode, bool _expandAll=false)
Set the view Mode to the given Mode.
void stereoButtonContextMenu(const QPoint &_pos)
Creates custom context menu for stereo viewer settings.
Struct containing information about pickModes.
void toggleStatusBar()
Change visibility of the Status Bar.
std::pair< KeyMap::iterator, KeyMap::iterator > KeyRange
typedefs
QGLWidget * glWidget_
gl widget used as drawing area to paint the graphics scene
void setToolBoxOrientationOnTheRight(bool _toolBoxRight)
Set orientation of tool box (either on the right or the left side of the screen)
QList< SlotInfo > & coreSlots_
list of scripting slots from core
void hidePickToolBar()
Hide picking toolbar.
std::set< QToolBar * > registeredToolbars_
Store all toolbars that once have been registered.
QtSlideWindow * slidingLogger_
Class that holds the animated log widget.
RendererObjectWidget * rendererObjectWidget_
shows the widget for the rendermanager
void showAboutWidget()
Display the about widget.
PickMode(const std::string &_n, const bool _t, const bool _v, QCursor _c, QToolBar *_tb=0)
Constructor.
std::string name() const
PickMode Name.
viewModeChangeWidget * modeChangeWidget
Handle to picking toolbar.
void showLoggerInSplitView(bool _show)
Show logger in splitter or not.
void slotGlobalToggleTwoSidedLighting()
If two-sided lighting is disabled in all viewers, enable it in all viewers. Otherwise disable it...
ContextMenuType type
Type of the context Menu ( Context for what type .. Background,Object,Node)
QStackedWidget * stackedWidget_
Container widget for holding multiple views.
QActionGroup * viewGroup_
Group for all menu items.
QMenu * toolsMenu_
Tools Menu.
bool shiftPressed_
Store the state of the shift key.
void actionPickMenu(QAction *_action)
void closeChangeViewModePopup()
Closes the change view mode popup.
QString getRPCName(QObject *_plugin)
typedefs
void slotUpdateRendererMenu()
Setup and update the global renderer menu.
void addRecent(QString _filename, DataType _type)
Add a recent file and update menu.
void slotLockRotation(bool _lock)
Lock rotation in current examiner widget.
void slotRegisterSlotKeyBindings()
register scripting slots to allow keyBindings
void showMenuBar(bool _state)
Show or hide menubar.
std::string pick_mode_name_
bool visible() const
PickMode visible.
void slotShowSceneGraphDialog()
void updatePickMenu()
update pick mode menu
ACG::SceneGraph::DrawModes::DrawMode availableGlobalDrawModes_
This variable holds the global draw menu.
void moveForward()
When using first person mode move forward.
OpenFlipper::Options::LoggerState loggerState_
Show logger in splitter or not.
ViewMode struct This struct contains a ViewMode and its status information such as used widgets...
void updatePopupMenuBackground(QMenu *_menu, const QPoint &_point)
Update context Menu when background has been clicked on.
void startDrag(QMouseEvent *_event)
bool stereoActive_
The viewer with id _viewerId changed its draw Mode.
void moveToolBoxToTop(QString _name)
Move a specific toolbox widget to the top of the side area.
KeyMap keys_
mapping of all keys to registered keys and the corresponding plugins
void slotGlobalViewAll()
Change view on all viewers to view complete scene.
void slotGlobalChangeAnimation(bool _animation)
Set the animation mode for all viewers.
void slotRemoveToolbar(QToolBar *_toolbar)
Called by Plugins to remove a Toolbar.
void slotGlobalOrthographicProjection()
Toggle projection mode of all viewers to orthographic projection.
void applicationSnapshotName(QString _name)
Set the snapshot name.
ACG::QtWidgets::QtSceneGraphDialog * sceneGraphDialog_
Handle to picking toolbar.
QAction * action
The context item.
void slotSetViewAndWindowGeometry(QString view)
Set the supplied serialized view.
QToolButton * pickButton_
Called by Plugins to add a Toolbar.
QMenu * contextMenu_
context Menu for the gl area
void slotLocalChangeTwoSidedLighting(bool _lighting)
Set two-sided lighting for active viewer.
void toggleToolbox()
Hide or show toolbox area.
void toolBarVisChanged(bool _state)
will be emitted if the visibility of the toolbar is changed
QCursor cursor() const
PickMode cursor.
std::vector< QToolBar * > toolbars_
Called by Plugins to add a Toolbar.
void slotViewMenuAction(QAction *_action)
QMenu containing the recently opened files.
void PluginKeyEvent(QKeyEvent *)
void slotAddContextItem(QAction *_entry, ContextMenuType _type)
called by plugins to add a new context menu item
QAction * globalTwosidedLightingAction_
Action to globally set two-sided lighting.
bool event(QEvent *event)
typedefs
KeyBinding getKeyBinding(QObject *_plugin, int _keyIndex)
typedefs
QMenu * helpMenu_
Help Menu.
QWidget * viewerDrawMenuWidget_
owns all the checkboxes of viewerDrawMenu_
void slotAddViewModeComplete(QString _mode, bool _custom, QStringList _toolboxes, QStringList _toolbars, QStringList _contextmenus)
Completly configure a view mode ( set toolbars, toolboxes, context menus, ... )
Viewer::ActionMode actionMode_
void toggleToolBar()
Hide or show current toolbar.
QScrollArea * toolBoxScroll_
Toolbox scroll area.
QMenu * recentFilesMenu_
QMenu containing the recently opened files.
void updateContextMenu(int)
tells the plugins to update their context menu when an object is picked
void getToolBar(QString _name, QToolBar *&_toolbar)
Called by Plugins to get access to specific Toolbars by name.
QToolButton * viewModePopupBtn_
view mode gear icon at the upper left of the tool box
void slotAddContextItemToViewMode(QAction *_entry)
called by slotAddContextItem to add the item to the view mode
DataType contextType
Type of objects for which the context Menu should be visible.
const std::string & pickMode() const
void slotContextSwitchProjection()
Toggle projection mode of the active viewer.
void signalPickModeChanged(const std::string &)
std::vector< StackWidgetInfo > stackWidgetList_
QMenu containing the recently opened files.
QAction * globalAnimationAction_
Action to globally set animation.
void updateInSceneLoggerGeometry()
Set in-scene logger geometry right.
void slotPasteView()
Paste the view to the last active examiner.
void slotSetGlobalBackgroundColor()
Set Background Color for all viewers at once.
int originalLoggerSize_
Size of the logging window ( defaults to 240 )
void slotContextSwitchCoordsysProjection()
Toggle coordsys projection mode of the active viewer.
QAction * viewModeButton_
a List of all widgets in the toolbar
QAction * globalBackfaceCullingAction_
Action to globally set backface culling.
void slotGlobalRendererMenu(QAction *_action)
Called when the global renderer is selected.
Viewer::ActionMode actionMode()
QStringList visibleToolbars
List of Toolbars in this view mode.
QMenu * contextSelectionMenu_
Context Menu containing all selection elements.
void moveBack()
When using first person mode move backward.
void loadPlugin(const QString &_filename, const bool _silent, QString &_licenseErrors, QObject *_plugin=0)
Function for loading Plugins.
void slotSetView(QString view)
Set the supplied serialized view.
void strafeRight()
When using first person mode strafe to the right.
void slotGetStackWidget(QString _name, QWidget *&_widget)
QMenu containing the recently opened files.
std::vector< PickMode > pick_modes_
QVector< ViewMode * > & viewModes_
List of currently available viewModes.
std::vector< MenuInfo > contextMenus_
All real context menu entries.
void slotPasteViewAndWindow()
Paste the view, the window and toolbox size to the last active examiner.
void showHelpBrowser(const QString &page=homePage_)
Display the help Browser.
void loadKeyBindings(INIFile &_ini)
Load key assignments from a given INI file.
void slotGlobalPerspectiveProjection()
Toggle projection mode of all viewers to perspective projection.
void toggleMenuBar()
Hide or show menu bar.
QToolButton * stereoButton_
Called by Plugins to add a Toolbar.
void slotViewerDrawMenu(QAction *_action)
Called when a coordsys drawMode has been changed.
InverseKeyMap invKeys_
mapping of all registered keys and the corresponding plugins to currently assigned keys ...
std::map< QToolBar *, QGraphicsProxyWidget * > PickToolBarMap
Handle to picking toolbar.
QToolBar * viewerToolbar_
Called by Plugins to add a Toolbar.
void slotContextHomeView()
Set the active viewer to home position.
void slotHideContextMenu()
Hide the context menu.
QSize defaultIconSize_
Show logger in splitter or not.
QAction * AC_ShowViewModeControls_
Action for View Mode Widget Conrol in Menu.
void slotLocalChangeAnimation(bool _animation)
Set the animation mode for active viewer.
void slotSwitchWheels(bool _state)
Show / hide wheels.
void fullScreenChanged(bool _state)
will be emitted if the fullscreen state is changed (_state = true => in fullscreen) ...
CoreWidget(QVector< ViewMode * > &_viewModes, std::vector< PluginInfo > &_plugins, QList< SlotInfo > &_coreSlots)
constructor
void slotGlobalToggleAnimation()
If animation is disabled in all viewers, enable it in all viewers. Otherwise disable it...
bool addContextMenus(QMenu *_menu, ContextMenuType _type, int _id=-1)
void setPickMode(const std::string &_name)
void slotSnapshotName()
Set the snapShot name for all examiners.
void slotGetMenubarMenu(QString _name, QMenu *&_menu, bool _create)
File Menu.
void slotGlobalChangeBackFaceCulling(bool _backFaceCulling)
Set backface culling for all viewers.
virtual void keyPressEvent(QKeyEvent *_e)
Handle key events.
int toolbarCount_
Called by Plugins to add a Toolbar.
QScrollArea * getToolboxScrollArea()
Show logger in splitter or not.
void slotRenderMenu(QAction *_action)
Called when a different renderer has been chosen.
QComboBox * viewerLayoutBox_
Called by Plugins to add a Toolbar.
void slotAddViewModeToolbars(QString _mode, QStringList _usedToolbars)
Add or change Toolbars for a ViewMode (non-userdefined viewMode)
std::vector< KeyBinding > coreKeys_
vector of keys registered to the core
void slotGlobalPostProcessorMenu(QAction *_action)
Called when the global postprocessor is selected.
QVector< QWidget * > toolWidgets_
a List of all widgets in the toolbar
void slotGlobalToggleBackFaceCulling()
If backface culling is disabled in all viewers, enable it in all viewers. Otherwise disable it...
void slotGlobalChangeTwoSidedLighting(bool _lighting)
Set two-sided lighting for all viewers.
QToolButton * moveButton_
Called by Plugins to add a Toolbar.
void slotUpdateStackWidget(QString _name, QWidget *_widget)
QMenu containing the recently opened files.
void sceneRectChanged(const QRectF &rect)
StereoSettingsWidget * stereoSettingsWidget_
Widget to change stereo settings.
QAction * globalMipmappingAction_
Action to globally set mipmapping.
QWidget * viewModeControlBox_
Group box containing Task Switcher Controls.
QMenu * viewerDrawMenu_
Draw Menu for per Viewer Draw Modes.
void updatePopupMenu(const QPoint &_point)
check current context and initialize context menu according to this context.
void slotLocalChangeMipmapping(bool _mipmapping)
Set mipmapping for active viewer.
std::vector< glViewer * > examiner_widgets_
Examiner Widget.
void setupMenuBar()
Setup the main menubar.
void slotCopyView()
Copy view from the last active examiner.
QToolBar * toolbar() const
PickMode toolbar.
OptionsWidget * optionsWidget_
Pointer to the OptionsWidget.
void applyOptions()
Pointer to the OptionsWidget.