69 if (!
menus_.contains(_name))
78 if ( menuBar()->actions().contains(
helpMenu_->menuAction()) )
81 menus_[_name]->addAction(_action);
83 menus_[_name]->addAction(_action);
90 if (!
menus_.contains(_name))
95 for (std::vector<QAction*>::iterator it = _actions.begin(); it != _actions.end(); ++it )
100 if ( menuBar()->actions().contains(
helpMenu_->menuAction()) )
103 for (std::vector<QAction*>::iterator it = _actions.begin(); it != _actions.end(); ++it )
104 menus_[_name]->addAction(*it);
106 for (std::vector<QAction*>::iterator it = _actions.begin(); it != _actions.end(); ++it )
107 menus_[_name]->addAction(*it);
117 if (
menus_.contains (_name))
122 _menu =
new QMenu(_name);
125 _menu->installEventFilter(
this);
127 menuBar()->insertAction(
helpMenu_->menuAction() ,_menu->menuAction ());
140 if( _event->type() == QEvent::WhatsThisClicked )
142 QWhatsThisClickedEvent *wtcEvent =
static_cast<QWhatsThisClickedEvent*
>(_event);
143 QWhatsThis::hideText();
148 return _obj->event(_event);
155 (*it)->setVisible(!reduced);
170 QAction* AC_clear_all =
new QAction(tr(
"Clear All"),
this);;
171 AC_clear_all->setStatusTip(tr(
"Clear all Objects"));
172 AC_clear_all->setWhatsThis(tr(
"Close all open Objects"));
173 AC_clear_all->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"edit-clear.png"));
174 connect(AC_clear_all, SIGNAL(triggered()),
this, SIGNAL(
clearAll()));
180 QAction* AC_Load =
new QAction(tr(
"Load Object"),
this);
181 AC_Load->setStatusTip(tr(
"Load an object"));
182 AC_Load->setWhatsThis(tr(
"Load a new object"));
183 AC_Load->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"document-open.png"));
184 connect(AC_Load, SIGNAL(triggered()),
this, SIGNAL(loadMenu()));
188 QAction* AC_AddEmpty =
new QAction(tr(
"Add Empty Object"),
this);
189 AC_AddEmpty->setStatusTip(tr(
"Add an empty object"));
190 AC_AddEmpty->setWhatsThis(tr(
"Creates a new empty object of a given type"));
191 AC_AddEmpty->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"add-empty-object.png"));
192 connect(AC_AddEmpty, SIGNAL(triggered()),
this, SIGNAL(addEmptyObjectMenu()));
198 QAction* AC_Save =
new QAction(tr(
"Save Objects"),
this);
200 AC_Save->setStatusTip(tr(
"Save current objects"));
201 AC_Save->setWhatsThis(tr(
"Save current objects"));
202 AC_Save->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"document-save.png"));
203 connect(AC_Save, SIGNAL(triggered()),
this, SIGNAL(saveMenu()));
208 QAction* AC_Save_to =
new QAction(tr(
"Save Objects to"),
this);
209 AC_Save_to->setStatusTip(tr(
"Save current Object(s) to"));
210 AC_Save_to->setWhatsThis(tr(
"Save current Object(s) under a new name"));
211 AC_Save_to->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"document-save-as.png"));
212 connect(AC_Save_to, SIGNAL(triggered()),
this, SIGNAL(saveToMenu()));
218 QAction* AC_load_ini =
new QAction(tr(
"Load Settings"),
this);
219 AC_load_ini->setStatusTip(tr(
"Load Settings from INI file"));
220 AC_load_ini->setWhatsThis(tr(
"Load a previous settings from file (objects,colors,...)"));
221 AC_load_ini->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"load-settings.png"));
222 connect(AC_load_ini, SIGNAL(triggered()),
this, SIGNAL(loadIniMenu()));
227 QAction* AC_save_ini =
new QAction(tr(
"Save Settings"),
this);
228 AC_save_ini->setStatusTip(tr(
"Save current settings to INI file"));
229 AC_save_ini->setWhatsThis(tr(
"Save settings to file (objects,colors,...)"));
230 AC_save_ini->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"save-settings.png"));
231 connect(AC_save_ini, SIGNAL(triggered()),
this, SIGNAL(saveIniMenu()));
238 QAction* AC_Options =
new QAction(tr(
"Options"),
this);
239 AC_Options->setStatusTip(tr(
"Edit OpenFlipper Options"));
240 AC_Options->setWhatsThis(tr(
"Edit OpenFlipper Options"));
241 AC_Options->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"options.png"));
250 recentFilesMenu_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"document-open-recent.png"));
252 connect(
recentFilesMenu_,SIGNAL(triggered(QAction*)),
this,SIGNAL(recentOpen(QAction*)));
258 QAction* AC_exit =
new QAction(tr(
"Exit"),
this);;
259 AC_exit->setShortcut (Qt::CTRL + Qt::Key_Q);
260 AC_exit->setStatusTip(tr(
"Exit Application"));
262 AC_exit->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"application-exit.png"));
263 connect(AC_exit, SIGNAL(triggered()),
this, SIGNAL(exit()));
281 QMenu* renderingOptionsMenu =
new QMenu(tr(
"Global Rendering Options"),
viewMenu_);
282 renderingOptionsMenu->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"core_renderingOptions.png") );
284 viewMenu_->addMenu(renderingOptionsMenu));
287 orthogonalProjectionAction_->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"orthogonal.png") );
291 "Switch to <b>orthogonal</b> projection mode."));
296 perspectiveProjectionAction_->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"perspective.png") );
300 "Switch to <b>perspective</b> projection mode."));
307 globalAnimationAction_->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"animation.png") );
313 globalBackfaceCullingAction_->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"backFaceCulling.png") );
319 globalTwosidedLightingAction_->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"twosidedLighting.png") );
325 globalMultisamplingAction_->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"multisampling.png") );
330 globalMipmappingAction_->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"mipmapping.png") );
350 QString iconPath = OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator();
351 QAction* showPostProcessorDialog =
new QAction(tr(
"Show post processor manager"),
this);
352 showPostProcessorDialog->setIcon(QIcon(iconPath+
"postprocessors.png"));
353 connect(showPostProcessorDialog,SIGNAL(triggered()),
this,SLOT(slotShowPostProcessorManager()));
354 viewMenu_->addAction(showPostProcessorDialog);
361 QAction* navigationSwitchAction =
new QAction( tr(
"First-person Navigation"),
viewMenu_ );
362 navigationSwitchAction->setCheckable(
true );
363 navigationSwitchAction->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"core_firstPersonMode.png") );
364 navigationSwitchAction->setStatusTip( tr(
"Switch between normal and first-person navigation mode."));
365 navigationSwitchAction->setWhatsThis( tr(
"Switch between normal and first-person navigation mode."));
366 navigationSwitchAction->setChecked(
false );
368 connect( navigationSwitchAction, SIGNAL( toggled(
bool) ),
this, SLOT(
slotSwitchNavigation(
bool) ) );
369 viewMenu_->addAction( navigationSwitchAction);
376 QAction* homeAction =
new QAction(tr(
"Restore Home View"),
viewMenu_);
377 homeAction->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"go-home.png") );
378 homeAction->setCheckable(
false );
379 homeAction->setStatusTip( tr(
"Restore <b>home</b> view."));
380 homeAction->setWhatsThis( tr(
"Restore home view<br><br>"
381 "Resets the view to the home view"));
386 QAction* setHomeAction =
new QAction( tr(
"Set Home View") ,
viewMenu_ );
387 setHomeAction->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"set-home.png") );
388 setHomeAction->setCheckable(
false );
389 setHomeAction->setStatusTip( tr(
"Set <b>home</b> view"));
390 setHomeAction->setWhatsThis( tr(
"Store home view<br><br>"
391 "Stores the current view as the home view"));
395 QAction* viewAllAction =
new QAction( tr(
"View all"),
viewMenu_ );
396 viewAllAction->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"viewall.png") );
397 viewAllAction->setCheckable(
false );
398 viewAllAction->setStatusTip( tr(
"View all.") );
399 viewAllAction->setWhatsThis( tr(
"View all<br><br>"
400 "Move the objects in the scene so that"
401 " the whole scene is visible."));
402 connect( viewAllAction,SIGNAL( triggered() ),
this, SLOT(
slotGlobalViewAll() ) );
407 QAction* snapShotAction =
new QAction( tr(
"Viewer Snapshot"),
viewMenu_ );
408 snapShotAction->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"viewerSnapshot.png") );
409 snapShotAction->setCheckable(
false );
410 snapShotAction->setStatusTip( tr(
"Take a snapshot from all viewers."));
411 snapShotAction->setWhatsThis( tr(
"Viewer Snapshot<br><br>"
412 "Take a snapshot of all viewers at once."));
413 snapShotAction->setShortcut (Qt::Key_F2);
417 QAction* appSnapShotAction =
new QAction( tr(
"Application Snapshot"),
viewMenu_ );
418 appSnapShotAction->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"snapshot.png") );
419 appSnapShotAction->setCheckable(
false );
420 appSnapShotAction->setStatusTip( tr(
"Take a snapshot from OpenFlipper."));
421 appSnapShotAction->setWhatsThis( tr(
"Snapshot<br><br>"
422 "Take a snapshot from OpenFlipper."));
424 viewMenu_->addAction( appSnapShotAction);
428 QAction* wheelSwitchAction =
new QAction( tr(
"Show / hide wheels"),
viewMenu_ );
429 wheelSwitchAction->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"core_wheels.png") );
430 wheelSwitchAction->setCheckable(
true );
431 wheelSwitchAction->setStatusTip( tr(
"Show / hide navigation wheels in viewer widget."));
432 wheelSwitchAction->setWhatsThis( tr(
"Show / hide navigation wheels in viewer widget.<br><br>"
433 " These wheels appear in the corners of the viewports. "
434 " Use wheels to rotate and scale scene."));
437 wheelSwitchAction->setChecked(
true);
439 connect( wheelSwitchAction,SIGNAL( toggled(
bool) ),
this, SLOT(
slotSwitchWheels(
bool) ) );
440 viewMenu_->addAction( wheelSwitchAction);
442 QAction* coordSys =
viewMenu_->addAction(tr(
"Coordinate Systems"));
443 coordSys->setCheckable(
true);
444 coordSys->setChecked(
true);
445 coordSys->setStatusTip(tr(
"Toggle visibility of the coordinate systems"));
446 coordSys->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"coordsys.png") );
451 QAction* setGlobalBackgroundColor =
new QAction(tr(
"Set Background Color"),
this);;
452 setGlobalBackgroundColor->setToolTip(tr(
"Set Background Color for all viewers"));
453 setGlobalBackgroundColor->setStatusTip(tr(
"Set Background Color for all viewers"));
454 setGlobalBackgroundColor->setWhatsThis(tr(
"Set Background Color for all viewers"));
455 setGlobalBackgroundColor->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"BackgroundColor.png") );
457 viewMenu_->addAction(setGlobalBackgroundColor);
467 QAction* sceneGraphAction =
new QAction( tr(
"Show SceneGraph ") ,
toolsMenu_ );
468 sceneGraphAction->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"scenegraph.png") );
469 sceneGraphAction->setCheckable(
false );
470 sceneGraphAction->setToolTip( tr(
"Show scene graph viewer.") );
471 sceneGraphAction->setWhatsThis( tr(
"Toggle scene graph viewer<br><br>"
472 "The scene graph viewer enables you to examine the "
473 "displayed scene graph and to modify certain nodes.<br><br>" ) );
474 QObject::connect( sceneGraphAction, SIGNAL( triggered() ),
481 QAction* startVideoCaptureAction =
new QAction( tr(
"Start Video Capture ") ,
toolsMenu_ );
482 startVideoCaptureAction->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"video-start.png") );
483 startVideoCaptureAction->setCheckable(
false );
484 startVideoCaptureAction->setToolTip( tr(
"Start video capturing.") );
485 startVideoCaptureAction->setWhatsThis( tr(
"Start to capture a video sequence of the user actions")) ;
486 toolsMenu_->addAction( startVideoCaptureAction );
487 connect(startVideoCaptureAction, SIGNAL(triggered()),
this, SLOT(startVideoCaptureDialog()) );
489 QAction* stopVideoCaptureAction =
new QAction( tr(
"Stop Video Capture ") ,
toolsMenu_ );
490 stopVideoCaptureAction->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"video-stop.png") );
491 stopVideoCaptureAction->setCheckable(
false );
492 stopVideoCaptureAction->setToolTip( tr(
"Stop video capturing." ));
493 stopVideoCaptureAction->setWhatsThis( tr(
"Stop Video capturing" ));
495 toolsMenu_->addAction( stopVideoCaptureAction);
496 connect(stopVideoCaptureAction, SIGNAL(triggered()),
this, SIGNAL(
stopVideoCapture()) );
504 QAction* AC_Plugins =
new QAction(tr(
"Plugins"),
this);
505 AC_Plugins->setStatusTip(tr(
"Show loaded plugins"));
506 AC_Plugins->setWhatsThis(tr(
"Show loaded plugins"));
507 AC_Plugins->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"network-connect.png"));
508 connect(AC_Plugins, SIGNAL(triggered()),
this, SIGNAL(showPlugins()));
531 QAction* AC_ShowToolbox =
new QAction(tr(
"Show Toolboxes"),
this);
532 AC_ShowToolbox->setStatusTip(tr(
"Show or Hide the Toolbox Widget"));
534 AC_ShowToolbox->setWhatsThis(tr(
"Show or Hide the Toolbox Widget"));
535 AC_ShowToolbox->setCheckable(
true);
536 AC_ShowToolbox->setChecked( !
OpenFlipperSettings().value(
"Core/Gui/ToolBoxes/hidden",
false).toBool() );
537 connect(AC_ShowToolbox, SIGNAL( triggered()),
this, SLOT(
toggleToolbox()));
538 connect(
this,SIGNAL(
toolBoxVisChanged(
bool)),AC_ShowToolbox,SLOT(setChecked(
bool)));
542 QAction* AC_ShowStatusBar =
new QAction(tr(
"Show Statusbar"),
this);
543 AC_ShowStatusBar->setStatusTip(tr(
"Show or Hide the Statusbar"));
544 AC_ShowStatusBar->setWhatsThis(tr(
"Show or Hide the Statusbar"));
545 AC_ShowStatusBar->setCheckable(
true);
546 AC_ShowStatusBar->setChecked( !
OpenFlipperSettings().value(
"Core/Gui/StatusBar/hidden",
false).toBool());
547 connect(AC_ShowStatusBar,SIGNAL(triggered()),
this,SLOT(
toggleStatusBar()));
552 QAction* AC_ShowMenuBar =
new QAction(tr(
"Show Menubar"),
this);
553 AC_ShowMenuBar->setStatusTip(tr(
"Show or Hide the Menubar"));
554 AC_ShowMenuBar->setWhatsThis(tr(
"Show or Hide the Menubar"));
555 AC_ShowMenuBar->setCheckable(
true);
556 AC_ShowMenuBar->setChecked( !
OpenFlipperSettings().value(
"Core/Gui/MenuBar/hidden",
false).toBool());
557 connect(AC_ShowMenuBar,SIGNAL(triggered()),
this,SLOT(
toggleMenuBar()));
558 connect(
this,SIGNAL(
menuBarVisChanged(
bool)),AC_ShowMenuBar,SLOT(setChecked(
bool)));
563 QAction* AC_ShowToolBar =
new QAction(tr(
"Show Toolbar"),
this);
564 AC_ShowToolBar->setStatusTip(tr(
"Show or Hide the Toolbar"));
565 AC_ShowToolBar->setWhatsThis(tr(
"Show or Hide the Toolbar"));
566 AC_ShowToolBar->setCheckable(
true);
567 AC_ShowToolBar->setChecked( !
OpenFlipperSettings().value(
"Core/Gui/ToolBar/hidden",
false).toBool());
568 connect(AC_ShowToolBar,SIGNAL(triggered()),
this,SLOT(
toggleToolBar()));
569 connect(
this,SIGNAL(
toolBarVisChanged(
bool)),AC_ShowToolBar,SLOT(setChecked(
bool)));
573 QAction* AC_Fullscreen =
new QAction(tr(
"Fullscreen"),
this);
574 AC_Fullscreen->setStatusTip(tr(
"Enable or Disable the Fullscreen"));
575 AC_Fullscreen->setWhatsThis(tr(
"Enable or Disable the Fullscreen"));
576 AC_Fullscreen->setCheckable(
true);
577 AC_Fullscreen->setChecked(
OpenFlipperSettings().value(
"Core/Gui/fullscreen",
false ).toBool() );
579 connect(
this,SIGNAL(
fullScreenChanged(
bool)),AC_Fullscreen,SLOT(setChecked(
bool)));
596 QAction* AC_HelpBrowser =
new QAction(tr(
"Help"),
this);
597 AC_HelpBrowser->setStatusTip(tr(
"Open Help Browser with Documentation"));
598 AC_HelpBrowser->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"help-browser.png"));
599 AC_HelpBrowser->setWhatsThis(tr(
"Open the <b>Help Browser</b>"));
600 connect(AC_HelpBrowser, SIGNAL(triggered()),
this, SLOT(
showHelpBrowser()));
604 QAction* AC_Whats_this = QWhatsThis::createAction (
this );
605 AC_Whats_this->setStatusTip(tr(
"Enter What's this Mode"));
606 AC_Whats_this->setWhatsThis(tr(
"Get information about a specific Button/Widget/..."));
612 QAction* AC_About =
new QAction(tr(
"About"),
this);
613 AC_About->setStatusTip(tr(
"About OpenFlipper"));
614 AC_About->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"help-about.png"));
615 AC_About->setWhatsThis(tr(
"This entry shows information about <b>OpenFlipper</b>"));
643 uint enabledCount = 0;
650 if ( enabledCount != 0 ) {
669 if ( enabledCount != 0 ) {
688 if ( enabledCount != 0 ) {
707 if ( enabledCount != 0 ) {
726 if ( enabledCount != 0 ) {
738 int perspectiveCount = 0;
739 int orthogonalCount = 0;
748 if ( perspectiveCount == PluginFunctions::viewers() )
753 if ( orthogonalCount == PluginFunctions::viewers() )
765 QString iconPath = OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator();
802 for (
unsigned int i = 0 ; i < renderManager().
available() ; ++i) {
805 QAction * action =
new QAction( renderManager()[i]->name,
rendererGroup_ );
806 action->setCheckable(
true );
810 action->setChecked(
true);
813 action->setData(QVariant(i));
832 disconnect(
drawGroup_ , SIGNAL( triggered( QAction * ) ),
843 connect(
drawGroup_ , SIGNAL( triggered( QAction * ) ),
849 icon.addFile(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+
"drawModes.png");
869 std::vector< ACG::SceneGraph::DrawModes::DrawMode > availDrawModeIds;
874 for (
unsigned int i = 0; i < availDrawModeIds.size(); ++i )
877 std::string descr =
id.description();
879 QAction * action =
new QAction( descr.c_str(),
drawGroup_ );
880 action->setCheckable(
true );
890 unsigned int mode = _action->data().toUInt();
892 QString defaultRendererName = renderManager()[mode]->name;
898 QString defaultRendererKey =
"Viewer" + QString::number(i)+
"/DefaultRenderer";
906 unsigned int mode = _action->data().toUInt();
910 postProcessorManager().
setActive(mode,i);
920 std::vector< ACG::SceneGraph::DrawModes::DrawMode > availDrawModeIds;
922 for (
unsigned int i = 0; i < availDrawModeIds.size(); ++i )
924 QString descr = QString( ( availDrawModeIds[i].description() ).c_str() );
926 if ( descr == _action->text() ) {
927 mode = availDrawModeIds[i];
932 if ( qApp->keyboardModifiers() & Qt::ShiftModifier )
DLLEXPORT OpenFlipperQSettings & OpenFlipperSettings()
QSettings object containing all program settings of OpenFlipper.
ACG::SceneGraph::DrawModes::DrawMode drawMode(int _viewer)
Get the current draw Mode of a Viewer.
Viewer::ViewerProperties & viewerProperties(int _id)
Get the viewer properties Use this functions to get basic viewer properties such as backgroundcolor o...
QAction * orthogonalProjectionAction_
This variable holds the global draw menu.
void clearAll()
Clear all data objects.
void slotAddMenubarActions(std::vector< QAction * > _actions, QString _name)
File Menu.
ACG::SceneGraph::DrawModes::DrawMode activeDrawModes_
This variable holds the global draw menu.
void viewerSnapshotDialog()
Create a snapshot of the whole app with fileDialog.
DrawModes::DrawMode drawModes() const
Get the collected draw modes.
void setActive(unsigned int _active, int _viewerId)
set the active post processor for viewer
QMap< QString, QMenu * > menus_
All available menus.
void slotCoordSysVisibility(bool _visible)
Hide coordinate systems in all viewers.
QMenu * viewMenu_
View Menu.
bool containsAtomicDrawMode(DrawMode _atomicDrawMode) const
Check whether an Atomic DrawMode is active in this draw Mode.
void applicationSnapshotDialog()
Create a snapshot of the whole app with fileDialog.
QToolBar * mainToolbar_
Called by Plugins to add a Toolbar.
void twoSidedLighting(bool _state)
set 2-sided lighting on/off
QActionGroup * rendererGroup_
Group for all renderers.
QMenu * rendererMenu_
This variable holds the global renderer menu.
std::vector< DrawMode > getAtomicDrawModes() const
Separates this drawMode into a list of all separate atomic draw modes.
void statusBarVisChanged(bool _state)
will be emitted if the visibility of the statusbar is changed
QMenu * windowMenu_
Window Menu.
void slotSwitchNavigation(bool _egomode)
Switch navigation mode.
void showViewModeControls(bool _show)
Hide or show the View Mode controls.
void setDrawMode(const ACG::SceneGraph::DrawModes::DrawMode &_mode, int _viewer)
Set the draw Mode of a Viewer. .
QAction * globalMultisamplingAction_
Action to globally set multisampling.
void slotViewMenuAboutToShow()
Called before the view Menu is shown.
QActionGroup * drawGroup_
This variable holds the global draw menu.
void slotGlobalHomeView()
Set the viewer to home position.
void showOptionsWidget()
Display the Options Browser.
void slotUpdateGlobalDrawMenu()
Setup and update the global draw menu.
void toolBoxVisChanged(bool _state)
will be emitted if the visibility of the toolbox is changed
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
std::vector< QAction * > extended_actions
unsigned int available()
number of available renderers
bool eventFilter(QObject *_obj, QEvent *_event)
typedefs
void stopVideoCapture()
Stop video capturing.
void slotGlobalToggleMipmapping()
If mipmapping is disabled in all viewers, enable it in all viewers. Otherwise disable it...
void mipmapping(bool _state)
set mipmapping on/off
void toggleFullscreen()
Set application to Fullscreen and back.
QAction * fileMenuEnd_
First entry after all relevant parts of the File Menu.
QMenu * fileMenu_
File Menu.
QMenu * algorithmMenu_
Algorithms Menu.
#define ALGORITHMMENU
The Menu will be added inside the Algorithms Menu.
#define VIEWMENU
The Menu will be added inside the View Menu.
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...
void multisampling(bool _state)
set multisampling on/off
void slotAddMenubarAction(QAction *_action, QString _name)
File Menu.
QMenu * globalDrawMenu_
This variable holds the global draw menu.
void slotGlobalSetHomeView()
Set the home position for all viewers.
#define TOOLSMENU
The Menu will be added inside the Tools Menu.
void toggleStatusBar()
Change visibility of the Status Bar.
ACG::SceneGraph::BaseNode * getRootNode()
Get the root node for data objects.
int viewers()
Get the number of viewers.
void showAboutWidget()
Display the about widget.
void slotGlobalToggleTwoSidedLighting()
If two-sided lighting is disabled in all viewers, enable it in all viewers. Otherwise disable it...
QMenu * toolsMenu_
Tools Menu.
void slotUpdateRendererMenu()
Setup and update the global renderer menu.
void slotShowSceneGraphDialog()
ACG::SceneGraph::DrawModes::DrawMode availableGlobalDrawModes_
This variable holds the global draw menu.
bool backFaceCulling()
Get current state of backface culling.
void slotGlobalViewAll()
Change view on all viewers to view complete scene.
void slotGlobalOrthographicProjection()
Toggle projection mode of all viewers to orthographic projection.
void toggleToolbox()
Hide or show toolbox area.
void toolBarVisChanged(bool _state)
will be emitted if the visibility of the toolbar is changed
QAction * globalTwosidedLightingAction_
Action to globally set two-sided lighting.
void animation(bool _state)
set 2-sided lighting on/off
QMenu * helpMenu_
Help Menu.
void toggleToolBar()
Hide or show current toolbar.
QMenu * recentFilesMenu_
QMenu containing the recently opened files.
void setActive(unsigned int _active, int _id)
set the active renderer
QAction * globalAnimationAction_
Action to globally set animation.
#define FILEMENU
The Menu will be added inside the File Menu.
void slotSetGlobalBackgroundColor()
Set Background Color for all viewers at once.
QAction * globalBackfaceCullingAction_
Action to globally set backface culling.
void slotGlobalRendererMenu(QAction *_action)
Called when the global renderer is selected.
void setValue(const QString &key, const QVariant &value)
Wrapper function which makes it possible to enable Debugging output with -DOPENFLIPPER_SETTINGS_DEBUG...
void showHelpBrowser(const QString &page=homePage_)
Display the help Browser.
void slotGlobalPerspectiveProjection()
Toggle projection mode of all viewers to perspective projection.
void toggleMenuBar()
Hide or show menu bar.
unsigned int activeExaminer()
Get the id of the examiner which got the last mouse events.
void traverse(BaseNode *_node, Action &_action)
QAction * AC_ShowViewModeControls_
Action for View Mode Widget Conrol in Menu.
void slotSwitchWheels(bool _state)
Show / hide wheels.
void fullScreenChanged(bool _state)
will be emitted if the fullscreen state is changed (_state = true => in fullscreen) ...
void slotGlobalToggleAnimation()
If animation is disabled in all viewers, enable it in all viewers. Otherwise disable it...
void slotGetMenubarMenu(QString _name, QMenu *&_menu, bool _create)
File Menu.
void slotGlobalPostProcessorMenu(QAction *_action)
Called when the global postprocessor is selected.
DrawMode NONE
not a valid draw mode
void slotGlobalToggleBackFaceCulling()
If backface culling is disabled in all viewers, enable it in all viewers. Otherwise disable it...
QAction * globalMipmappingAction_
Action to globally set mipmapping.
std::vector< glViewer * > examiner_widgets_
Examiner Widget.
void setupMenuBar()
Setup the main menubar.