SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::gui::qt::QSofaRecorder Class Reference

#include <QSofaRecorder.h>

Inheritance diagram for sofa::gui::qt::QSofaRecorder:

Protected Attributes

QPushButtonrecord
 
QPushButtonstepbackward
 
QPushButtonplayforward
 
QPushButtonstepforward
 
QPushButtonforward
 
QPushButtonbackward
 
QSlider * timeSlider
 
QLabel * timeRecord
 
QLineEditloadRecordTime
 
QLabel * initialTime
 
QLabel * finalTime
 
QLabel * fpsLabel
 
QLabel * timeLabel
 
QTimer * timerStep
 
std::string simulationBaseName_
 
std::string writeSceneName_
 
std::string record_directory
 
simulation::Noderoot
 

Public Member Functions

 QSofaRecorder (QWidget *parent)
 
void Clear (simulation::Node *root)
 
void SetRecordDirectory (const std::string &)
 
void SetSimulation (simulation::Node *root, const std::string &initT, const std::string &endT, const std::string &writeName)
 
void setInitialTime (double)
 
void setFinalTime (double)
 
void setCurrentTime (double)
 
void setTimeSimulation (double)
 
void setFPS (double)
 
void Start ()
 
double getInitialTime () const
 
double getFinalTime () const
 
double getCurrentTime () const
 
QLabel * getTimeLabel ()
 
QLabel * getFPSLabel ()
 
void UpdateTime (simulation::Node *root)
 

Static Public Member Functions

static void sleep (float seconds, float init_time)
 

Protected Member Functions

bool querySimulationName ()
 
void addWriteState (const std::string &writeSceneName)
 
void addReadState (const std::string &writeSceneName, bool init)
 

Signals

void RecordSimulation (bool)
 
void NewTime ()
 

Public Slots

void TimerStart (bool)
 

Protected Slots

void slot_recordSimulation (bool)
 
void slot_backward ()
 
void slot_stepbackward ()
 
void slot_playforward ()
 
void slot_stepforward ()
 
void slot_forward ()
 
void slot_sliderValue (int value, bool updateTime=true)
 
void loadSimulation (bool one_step=false)
 

Attribute details

QPushButton* sofa::gui::qt::QSofaRecorder::backward
protected
QLabel* sofa::gui::qt::QSofaRecorder::finalTime
protected
QPushButton* sofa::gui::qt::QSofaRecorder::forward
protected
QLabel* sofa::gui::qt::QSofaRecorder::fpsLabel
protected
QLabel* sofa::gui::qt::QSofaRecorder::initialTime
protected
QLineEdit* sofa::gui::qt::QSofaRecorder::loadRecordTime
protected
QPushButton* sofa::gui::qt::QSofaRecorder::playforward
protected
QPushButton* sofa::gui::qt::QSofaRecorder::record
protected
std::string sofa::gui::qt::QSofaRecorder::record_directory
protected
simulation::Node* sofa::gui::qt::QSofaRecorder::root
protected
std::string sofa::gui::qt::QSofaRecorder::simulationBaseName_
protected
QPushButton* sofa::gui::qt::QSofaRecorder::stepbackward
protected
QPushButton* sofa::gui::qt::QSofaRecorder::stepforward
protected
QLabel* sofa::gui::qt::QSofaRecorder::timeLabel
protected
QLabel* sofa::gui::qt::QSofaRecorder::timeRecord
protected
QTimer* sofa::gui::qt::QSofaRecorder::timerStep
protected
QSlider* sofa::gui::qt::QSofaRecorder::timeSlider
protected
std::string sofa::gui::qt::QSofaRecorder::writeSceneName_
protected

Constructor details

sofa::gui::qt::QSofaRecorder::QSofaRecorder ( QWidget parent)

Function details

void sofa::gui::qt::QSofaRecorder::addReadState ( const std::string &  writeSceneName,
bool  init 
)
protected
void sofa::gui::qt::QSofaRecorder::addWriteState ( const std::string &  writeSceneName)
protected
void sofa::gui::qt::QSofaRecorder::Clear ( simulation::Node root)
double sofa::gui::qt::QSofaRecorder::getCurrentTime ( ) const
inline
double sofa::gui::qt::QSofaRecorder::getFinalTime ( ) const
inline
QLabel* sofa::gui::qt::QSofaRecorder::getFPSLabel ( )
inline
double sofa::gui::qt::QSofaRecorder::getInitialTime ( ) const
inline
QLabel* sofa::gui::qt::QSofaRecorder::getTimeLabel ( )
inline
void sofa::gui::qt::QSofaRecorder::loadSimulation ( bool  one_step = false)
protectedslot
void sofa::gui::qt::QSofaRecorder::NewTime ( )
signal
bool sofa::gui::qt::QSofaRecorder::querySimulationName ( )
protected
void sofa::gui::qt::QSofaRecorder::RecordSimulation ( bool  )
signal
void sofa::gui::qt::QSofaRecorder::setCurrentTime ( double  time)
void sofa::gui::qt::QSofaRecorder::setFinalTime ( double  time)
void sofa::gui::qt::QSofaRecorder::setFPS ( double  fps)
void sofa::gui::qt::QSofaRecorder::setInitialTime ( double  time)
void sofa::gui::qt::QSofaRecorder::SetRecordDirectory ( const std::string &  record_dir)
void sofa::gui::qt::QSofaRecorder::SetSimulation ( simulation::Node root,
const std::string &  initT,
const std::string &  endT,
const std::string &  writeName 
)
void sofa::gui::qt::QSofaRecorder::setTimeSimulation ( double  time)
void sofa::gui::qt::QSofaRecorder::sleep ( float  seconds,
float  init_time 
)
static
void sofa::gui::qt::QSofaRecorder::slot_backward ( )
protectedslot
void sofa::gui::qt::QSofaRecorder::slot_forward ( )
protectedslot
void sofa::gui::qt::QSofaRecorder::slot_playforward ( )
protectedslot
void sofa::gui::qt::QSofaRecorder::slot_recordSimulation ( bool  value)
protectedslot
void sofa::gui::qt::QSofaRecorder::slot_sliderValue ( int  value,
bool  updateTime = true 
)
protectedslot
void sofa::gui::qt::QSofaRecorder::slot_stepbackward ( )
protectedslot
void sofa::gui::qt::QSofaRecorder::slot_stepforward ( )
protectedslot
void sofa::gui::qt::QSofaRecorder::Start ( )
void sofa::gui::qt::QSofaRecorder::TimerStart ( bool  value)
slot
void sofa::gui::qt::QSofaRecorder::UpdateTime ( simulation::Node root)