sofa::gui::BatchGUI Class Reference

#include <BatchGUI.h>

Inheritance diagram for sofa::gui::BatchGUI:

Inheritance graph
[legend]
Collaboration diagram for sofa::gui::BatchGUI:

Collaboration graph
[legend]

Public Member Functions

methods each GUI must implement
 BatchGUI ()
void setScene (sofa::simulation::Node *groot, const char *filename="")
int mainLoop ()
void redraw ()
int closeGUI ()
sofa::simulation::Node * currentSimulation ()

Static Public Member Functions

registration of each GUI
static int InitGUI (const char *name, const std::vector< std::string > &options)
static SofaGUI * CreateGUI (const char *name, const std::vector< std::string > &options, sofa::simulation::Node *groot=NULL, const char *filename=NULL)

Protected Member Functions

 ~BatchGUI ()
 The destructor should not be called directly. Use the closeGUI() method instead.

Protected Attributes

sofa::simulation::Node * groot
std::string filename
int nbIter

Detailed Description

Definition at line 39 of file BatchGUI.h.


Constructor & Destructor Documentation

sofa::gui::BatchGUI::BatchGUI (  ) 

Definition at line 36 of file BatchGUI.cpp.

Referenced by CreateGUI().

sofa::gui::BatchGUI::~BatchGUI (  )  [protected]

The destructor should not be called directly. Use the closeGUI() method instead.

Definition at line 41 of file BatchGUI.cpp.


Member Function Documentation

int sofa::gui::BatchGUI::closeGUI (  )  [virtual]

Implements sofa::gui::SofaGUI.

Definition at line 63 of file BatchGUI.cpp.

SofaGUI * sofa::gui::BatchGUI::CreateGUI ( const char *  name,
const std::vector< std::string > &  options,
sofa::simulation::Node *  groot = NULL,
const char *  filename = NULL 
) [static]

Definition at line 88 of file BatchGUI.cpp.

References BatchGUI(), sofa::gui::qt::gui, and setScene().

sofa::simulation::Node * sofa::gui::BatchGUI::currentSimulation (  )  [virtual]

Implements sofa::gui::SofaGUI.

Definition at line 75 of file BatchGUI.cpp.

References groot.

int sofa::gui::BatchGUI::InitGUI ( const char *  name,
const std::vector< std::string > &  options 
) [static]

Definition at line 83 of file BatchGUI.cpp.

int sofa::gui::BatchGUI::mainLoop (  )  [virtual]

Implements sofa::gui::SofaGUI.

Definition at line 45 of file BatchGUI.cpp.

References sofa::simulation::tree::getSimulation(), groot, and nbIter.

void sofa::gui::BatchGUI::redraw (  )  [virtual]

Implements sofa::gui::SofaGUI.

Definition at line 59 of file BatchGUI.cpp.

void sofa::gui::BatchGUI::setScene ( sofa::simulation::Node *  groot,
const char *  filename = "" 
)

Definition at line 69 of file BatchGUI.cpp.

Referenced by CreateGUI().


Field Documentation

std::string sofa::gui::BatchGUI::filename [protected]

Definition at line 72 of file BatchGUI.h.

Definition at line 71 of file BatchGUI.h.

Referenced by currentSimulation(), and mainLoop().

Definition at line 73 of file BatchGUI.h.

Referenced by mainLoop().


The documentation for this class was generated from the following files:

Generated on Sun Nov 23 04:24:07 2008 for Sofa by  doxygen 1.5.7.1