#include <RealGUI.h>
Public Attributes | |
QSofaListView * | simulationGraph |
Public Member Functions | |
RealGUI (const char *viewername) | |
~RealGUI () override | |
void | showFPS (double fps) override |
Force the displayed FPS value (if any) More... | |
void | stepMainLoop () override |
int | mainLoop () override |
int | closeGUI () override |
Close the GUI. More... | |
sofa::simulation::Node * | currentSimulation () override |
Get the rootNode of the sofa scene. More... | |
virtual void | fileOpen (std::string filename, bool temporaryFile=false, bool reload=false) |
virtual void | fileOpenSimu (std::string filename) |
virtual void | setScene (Node::SPtr groot, const char *filename=nullptr, bool temporaryFile=false) override |
virtual void | setSceneWithoutMonitor (Node::SPtr groot, const char *filename=nullptr, bool temporaryFile=false) |
virtual void | unloadScene (bool _withViewer=true) |
virtual void | setTitle (std::string windowTitle) |
void | setViewerResolution (int w, int h) override |
void | setFullScreen () override |
virtual void | setFullScreen (bool enable) |
void | centerWindow () override |
void | setBackgroundColor (const sofa::type::RGBAColor &c) override |
virtual void | setBackgroundImage (const std::string &i) override |
void | setViewerConfiguration (sofa::component::setting::ViewerSetting *viewerConf) override |
void | setMouseButtonConfiguration (sofa::component::setting::MouseButtonSetting *button) override |
void | setDumpState (bool) override |
void | setLogTime (bool) override |
void | setExportState (bool) override |
virtual void | setGnuplotPath (const std::string &path) override |
virtual void | createViewer (const char *_viewerName, bool _updateViewerList=false) |
void | registerViewer (common::BaseViewer *_viewer) override |
Used to directly replace the current viewer. More... | |
common::BaseViewer * | getViewer () override |
sofa::gui::qt::viewer::SofaViewer * | getSofaViewer () |
virtual void | removeViewer () |
void | dragEnterEvent (QDragEnterEvent *event) override |
void | dropEvent (QDropEvent *event) override |
Public Member Functions inherited from sofa::gui::common::BaseGUI | |
virtual void | configureGUI (sofa::simulation::NodeSPtr groot) |
Use a component setting to configure our GUI. More... | |
void | exportGnuplot (sofa::simulation::Node *node, std::string gnuplot_directory="") |
virtual bool | canBeDefaultGUI () const |
virtual void | redraw ()=0 |
Update the GUI. More... | |
virtual void | setScene (sofa::simulation::NodeSPtr groot, const char *filename=nullptr, bool temporaryFile=false)=0 |
Register the scene in our GUI. More... | |
virtual bool | saveScreenshot (const std::string &filename, int compression_level=-1) |
virtual void | sendMessage (const std::string &, const std::string &) |
Send a (script) message. More... | |
Static Public Member Functions | |
static void | setupSurfaceFormat () |
static common::BaseGUI * | CreateGUI (const char *name, sofa::simulation::Node::SPtr groot=nullptr, const char *filename=nullptr) |
static void | SetPixmap (std::string pixmap_filename, QPushButton *b) |
Static Public Member Functions inherited from sofa::gui::common::BaseGUI | |
static std::string & | GetGUIName () |
static const char * | GetProgramName () |
static void | SetProgramName (const char *argv0) |
static void | SetArgumentParser (ArgumentParser *parser) |
static const std::string & | getConfigDirectoryPath () |
static const std::string & | getScreenshotDirectoryPath () |
static void | setConfigDirectoryPath (const std::string &path, bool createIfNecessary=false) |
static void | setScreenshotDirectoryPath (const std::string &path, bool createIfNecessary=false) |
Protected Member Functions | |
void | init () |
init data member from RealGUI for the viewer initialisation in the GUI More... | |
void | createDisplayFlags (Node::SPtr root) |
void | loadSimulation (bool one_step=false) |
void | eventNewStep () |
void | eventNewTime () |
void | keyPressEvent (QKeyEvent *e) override |
void | startDumpVisitor () |
void | stopDumpVisitor () |
void | initViewer (common::BaseViewer *_viewer) override |
init the viewer for the GUI (embeded or not we have to connect some info about viewer in the GUI) More... | |
virtual int | exitApplication (unsigned int _retcode=0) |
void | sleep (float seconds, float init_time) |
Protected Member Functions inherited from sofa::gui::common::BaseGUI | |
BaseGUI () | |
virtual | ~BaseGUI () |
The destructor should not be called directly. Use the closeGUI() method instead. More... | |
Static Protected Member Functions | |
static void | CreateApplication (int _argc=0, char **_argv=nullptr) |
static void | InitApplication (RealGUI *_gui) |
Signals | |
void | reload () |
void | newScene () |
void | newStep () |
void | quit () |
Public Slots | |
virtual void | newRootNode (sofa::simulation::Node *root, const char *path) |
virtual void | activateNode (sofa::simulation::Node *, bool) |
virtual void | setSleepingNode (sofa::simulation::Node *, bool) |
virtual void | lockAnimation (bool) |
virtual void | fileRecentlyOpened (QAction *action) |
virtual void | playpauseGUI (bool value) |
virtual void | interactionGUI (bool value) |
virtual void | step () |
virtual void | emitIdle () |
virtual void | setDt (const QString &) |
virtual void | updateDtEditState () |
virtual void | resetScene () |
virtual void | screenshot () |
virtual void | showhideElements () |
virtual void | update () |
virtual void | updateBackgroundColour () |
virtual void | updateBackgroundImage () |
virtual void | resetView () |
virtual void | saveView () |
virtual void | setSizeW (int _valW) |
virtual void | setSizeH (int _valH) |
virtual void | clear () |
void | redraw () override |
refresh the visualization window More... | |
virtual void | exportOBJ (sofa::simulation::Node *node, bool exportMTL=true) |
virtual void | dumpState (bool) |
virtual void | displayComputationTime (bool) |
virtual void | setExportGnuplot (bool) |
virtual void | setExportVisitor (bool) |
virtual void | displayProflierWindow (bool) |
virtual void | currentTabChanged (int index) |
virtual void | popupOpenFileSelector () |
This open popup the file selection windows. More... | |
virtual void | fileReload () |
virtual void | fileExit () |
virtual void | helpAbout () |
virtual void | editRecordDirectory () |
virtual void | editGnuplotDirectory () |
virtual void | showDocBrowser () |
virtual void | showAbout () |
virtual void | showPluginManager () |
virtual void | showMouseManager () |
virtual void | showVideoRecorderManager () |
virtual void | showWindowDataGraph () |
virtual void | toolsDockMoved () |
Protected Slots | |
virtual void | changeViewer () |
virtual void | updateViewerList () |
virtual void | onSceneGraphRefreshButtonClicked () |
Update the scenegraph and activate the automatic refresh. More... | |
virtual void | sceneGraphViewDirtynessChanged (bool isDirty) |
Update the SceneGraph update button to reflect the dirtyness status. More... | |
virtual void | sceneGraphViewLockingChanged (bool isLocked) |
Update the SceneGraph update button to reflect the locking status. More... | |
void | propertyDockMoved (Qt::DockWidgetArea a) |
void | appendToDataLogFile (QString) |
void | docBrowserVisibilityChanged (bool) |
Additional Inherited Members | |
Static Protected Attributes inherited from sofa::gui::common::BaseGUI | |
static std::string | mGuiName = "" |
static std::string | configDirectoryPath = "." |
static std::string | screenshotDirectoryPath = "." |
static const char * | mProgramName = nullptr |
static ArgumentParser * | mArgumentParser = nullptr |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Keep track of log files that have been modified since the GUI started.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
QSofaListView* sofa::gui::qt::RealGUI::simulationGraph |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
list of all viewer key name (for creation) mapped to its QAction in the GUI
sofa::gui::qt::RealGUI::RealGUI | ( | const char * | viewername | ) |
|
override |
|
virtualslot |
|
protectedslot |
|
overridevirtual |
Reimplemented from sofa::gui::common::BaseGUI.
|
protectedvirtualslot |
Allow to dynamicly change viewer. Called when click on another viewer in GUI Qt viewer list (see viewerMap). TODO: find a better way to propagate the argument when we construct the viewer
|
virtualslot |
|
overridevirtual |
Close the GUI.
Implements sofa::gui::common::BaseGUI.
|
staticprotected |
|
protected |
|
static |
|
virtual |
create a viewer according to the argument key
|
overridevirtual |
Get the rootNode of the sofa scene.
Implements sofa::gui::common::BaseGUI.
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
protectedslot |
|
override |
|
override |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
protected |
|
protected |
|
inlineprotectedvirtual |
|
virtualslot |
|
virtualslot |
|
virtual |
|
virtual |
|
virtualslot |
|
virtualslot |
sofa::gui::qt::viewer::SofaViewer * sofa::gui::qt::RealGUI::getSofaViewer | ( | ) |
A way to know if our viewer is embedded or not... (see initViewer) TODO: Find a better way to do this
|
overridevirtual |
Reimplemented from sofa::gui::common::BaseGUI.
|
inlinevirtualslot |
|
protected |
init data member from RealGUI for the viewer initialisation in the GUI
|
staticprotected |
|
overrideprotectedvirtual |
init the viewer for the GUI (embeded or not we have to connect some info about viewer in the GUI)
Reimplemented from sofa::gui::common::BaseGUI.
|
virtualslot |
|
overrideprotected |
|
protected |
|
virtualslot |
|
overridevirtual |
Implements sofa::gui::common::BaseGUI.
|
virtualslot |
|
signal |
|
signal |
|
protectedvirtualslot |
Update the scenegraph and activate the automatic refresh.
|
virtualslot |
|
virtualslot |
This open popup the file selection windows.
|
protectedslot |
|
signal |
|
overrideslot |
refresh the visualization window
|
overridevirtual |
Used to directly replace the current viewer.
Reimplemented from sofa::gui::common::BaseGUI.
|
signal |
|
virtual |
|
virtualslot |
|
inlinevirtualslot |
|
inlinevirtualslot |
|
protectedvirtualslot |
Update the SceneGraph update button to reflect the dirtyness status.
|
protectedvirtualslot |
Update the SceneGraph update button to reflect the locking status.
|
virtualslot |
|
overridevirtual |
Reimplemented from sofa::gui::common::BaseGUI.
|
overridevirtual |
Reimplemented from sofa::gui::common::BaseGUI.
|
virtualslot |
|
overridevirtual |
Reimplemented from sofa::gui::common::BaseGUI.
|
virtualslot |
|
overridevirtual |
Reimplemented from sofa::gui::common::BaseGUI.
|
virtualslot |
|
inlineoverridevirtual |
Reimplemented from sofa::gui::common::BaseGUI.
|
virtual |
|
overridevirtual |
Reimplemented from sofa::gui::common::BaseGUI.
|
overridevirtual |
Reimplemented from sofa::gui::common::BaseGUI.
|
overridevirtual |
Reimplemented from sofa::gui::common::BaseGUI.
|
static |
|
overridevirtual |
|
virtual |
|
inlinevirtualslot |
|
inlinevirtualslot |
|
virtualslot |
|
virtual |
|
static |
|
overridevirtual |
Reimplemented from sofa::gui::common::BaseGUI.
|
overridevirtual |
Reimplemented from sofa::gui::common::BaseGUI.
|
virtualslot |
|
virtualslot |
|
overridevirtual |
Force the displayed FPS value (if any)
Reimplemented from sofa::gui::common::BaseGUI.
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
protected |
|
virtualslot |
|
overridevirtual |
Reimplemented from sofa::gui::common::BaseGUI.
|
protected |
|
virtualslot |
|
virtual |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
protectedvirtualslot |
Update the viewerMap and create viewer if we haven't yet one (the first of the list) TODO: find a better way to propagate the argument when we construct the viewer