#include <HeadlessRecorder.h>
Static Public Attributes | |
static int | recordTimeInSeconds = 5 |
static bool | recordUntilStopAnimate = false |
Public Member Functions | |
HeadlessRecorder () | |
~HeadlessRecorder () override | |
int | mainLoop () override |
void | step () |
void | redraw () override |
Update the GUI. More... | |
void | resetView () |
void | initializeGL () |
void | paintGL () |
void | setScene (sofa::simulation::NodeSPtr scene, const char *filename=nullptr, bool temporaryFile=false) override |
Register the scene in our GUI. More... | |
void | newView () |
virtual sofa::simulation::Node * | currentSimulation () override |
Get the rootNode of the sofa scene. More... | |
virtual int | closeGUI () override |
Close the GUI. More... | |
virtual void | setViewerResolution (int width, int height) override |
virtual void | setBackgroundColor (const sofa::type::RGBAColor &color) 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 | setDumpState (bool) |
virtual void | setLogTime (bool) |
virtual void | setExportState (bool) |
virtual void | setGnuplotPath (const std::string &) |
virtual void | initViewer (BaseViewer *) |
virtual void | setViewerConfiguration (sofa::component::setting::ViewerSetting *) |
virtual void | setFullScreen () |
virtual void | centerWindow () |
virtual void | setBackgroundImage (const std::string &) |
virtual BaseViewer * | getViewer () |
virtual void | registerViewer (BaseViewer *) |
virtual bool | saveScreenshot (const std::string &filename, int compression_level=-1) |
virtual void | setMouseButtonConfiguration (sofa::component::setting::MouseButtonSetting *) |
virtual void | stepMainLoop () |
virtual void | sendMessage (const std::string &, const std::string &) |
Send a (script) message. More... | |
virtual void | showFPS (double) |
Force the displayed FPS value (if any) More... | |
Static Public Member Functions | |
static common::BaseGUI * | CreateGUI (const char *name, sofa::simulation::NodeSPtr groot=nullptr, const char *filename=nullptr) |
static int | RegisterGUIParameters (common::ArgumentParser *argumentParser) |
static void | parseRecordingModeOption () |
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) |
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 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 |
|
static |
sofa::gui::hrecorder::HeadlessRecorder::HeadlessRecorder | ( | ) |
|
override |
|
overridevirtual |
Close the GUI.
Implements sofa::gui::common::BaseGUI.
|
static |
|
overridevirtual |
Get the rootNode of the sofa scene.
Implements sofa::gui::common::BaseGUI.
void sofa::gui::hrecorder::HeadlessRecorder::initializeGL | ( | void | ) |
|
overridevirtual |
Implements sofa::gui::common::BaseGUI.
void sofa::gui::hrecorder::HeadlessRecorder::newView | ( | ) |
void sofa::gui::hrecorder::HeadlessRecorder::paintGL | ( | ) |
|
static |
|
overridevirtual |
Update the GUI.
Implements sofa::gui::common::BaseGUI.
|
static |
void sofa::gui::hrecorder::HeadlessRecorder::resetView | ( | ) |
|
overridevirtual |
Reimplemented from sofa::gui::common::BaseGUI.
|
overridevirtual |
Register the scene in our GUI.
Implements sofa::gui::common::BaseGUI.
|
overridevirtual |
Reimplemented from sofa::gui::common::BaseGUI.
void sofa::gui::hrecorder::HeadlessRecorder::step | ( | ) |