SOFA API  7352f41a
Open source framework for multi-physics simuation
sofa::gui::qt::SofaSceneGraphWidget Class Reference

#include <SofaSceneGraphWidget.h>

Inheritance diagram for sofa::gui::qt::SofaSceneGraphWidget:

Protected Attributes

bool m_isDirty
 
bool m_isLocked
 

Public Member Functions

 SofaSceneGraphWidget (QWidget *parent)
 
 ~SofaSceneGraphWidget ()
 
void lock ()
 
void unLock ()
 
bool isDirty ()
 
bool isLocked ()
 Returns true if the view updates for any scene graph change is disable. More...
 
void setViewToDirty ()
 

Signals

void dirtynessChanged (bool isDirty)
 Connect to this signal to be notified when the dirtyness status of the QSofaListView changed. More...
 
void lockingChanged (bool isLocked)
 Connect to this signal to be notified when the locking status changed. More...
 

Attribute details

◆ m_isDirty

bool sofa::gui::qt::SofaSceneGraphWidget::m_isDirty
protected

Indicate that the view is de-synchronized with the real content of the simulation graph. This can happen if the graph has been freezed (i.e. not graphically updated) for performance reason while simulating complex scenes.

◆ m_isLocked

bool sofa::gui::qt::SofaSceneGraphWidget::m_isLocked
protected

Constructor details

◆ SofaSceneGraphWidget()

sofa::gui::qt::SofaSceneGraphWidget::SofaSceneGraphWidget ( QWidget parent)
inline

◆ ~SofaSceneGraphWidget()

sofa::gui::qt::SofaSceneGraphWidget::~SofaSceneGraphWidget ( )
inline

Function details

◆ dirtynessChanged

void sofa::gui::qt::SofaSceneGraphWidget::dirtynessChanged ( bool  isDirty)
signal

Connect to this signal to be notified when the dirtyness status of the QSofaListView changed.

◆ isDirty()

bool sofa::gui::qt::SofaSceneGraphWidget::isDirty ( )

Returns true if the view is not syncrhonized anymore with the simulation graph. To re-syncronize the view you can:

  • call unfreeze() so any future change will be reflected
  • call update(), to update one time the graph.

◆ isLocked()

bool sofa::gui::qt::SofaSceneGraphWidget::isLocked ( )

Returns true if the view updates for any scene graph change is disable.

◆ lock()

void sofa::gui::qt::SofaSceneGraphWidget::lock ( )

◆ lockingChanged

void sofa::gui::qt::SofaSceneGraphWidget::lockingChanged ( bool  isLocked)
signal

Connect to this signal to be notified when the locking status changed.

◆ setViewToDirty()

void sofa::gui::qt::SofaSceneGraphWidget::setViewToDirty ( )

call this method to indicate that the internal model has changed and thus the view is now dirty.

◆ unLock()

void sofa::gui::qt::SofaSceneGraphWidget::unLock ( )