#include <GUIManager.h>
Classes | |
struct | GUICreator |
Static Protected Attributes | |
static std::list< GUICreator > | guiCreators |
static std::vector< std::string > | guiOptions |
static BaseGUI * | currentGUI = nullptr |
static std::string | valid_guiname = "" |
static ArgumentParser * | currentArgumentParser = nullptr |
Static Public Member Functions | |
static int | Init (const char *argv0, const char *name="") |
static int | RegisterGUI (const char *name, CreateGUIFn *creator, RegisterGUIParameters *parameters=nullptr, int priority=0) |
Set parameter for a gui creation and Store in the guiCreators list. More... | |
static const char * | GetValidGUIName () |
static const std::string & | GetCurrentGUIName () |
static std::vector< std::string > | ListSupportedGUI () |
static std::string | ListSupportedGUI (char separator) |
static void | RegisterParameters (ArgumentParser *parser) |
static int | createGUI (sofa::simulation::NodeSPtr groot=nullptr, const char *filename=nullptr) |
static void | closeGUI () |
static BaseGUI * | getGUI () |
Static methods for direct access to GUI | |
static int | MainLoop (sofa::simulation::NodeSPtr groot=nullptr, const char *filename=nullptr) |
static void | Redraw () |
static sofa::simulation::Node * | CurrentSimulation () |
static void | SetScene (sofa::simulation::NodeSPtr groot, const char *filename=nullptr, bool temporaryFile=false) |
static void | SetDimension (int width, int height) |
static void | SetFullScreen () |
static void | CenterWindow () |
static void | SaveScreenshot (const char *filename) |
Static Protected Member Functions | |
static GUICreator * | GetGUICreator (const char *name=nullptr) |
Comparison between guiname passed as parameter and all guiname store in guiCreators list. More... | |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
staticprotected |
Comparison between guiname passed as parameter and all guiname store in guiCreators list.
name | : It is the name of your gui. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Set parameter for a gui creation and Store in the guiCreators list.
name | : It is the name of your gui. This name is compared with the name parameter when you set GUIManager::Init(name). It must be the same. |
creator | : The pointer function which call when GUIManager::createGUI() |
init | : The pointer function which call when GUIManager::Init() |
priority | : If nothing is given as name GUIManager::Init parameter GUIManager::valid_guiname is automatically set compared with the priority |
|
static |
|
static |
|
static |
|
static |