SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::gui::qt::QSofaListView Class Reference

#include <QSofaListView.h>

Inheritance diagram for sofa::gui::qt::QSofaListView:

Classes

class  LockContextManager
 

Protected Attributes

std::map< void *, QTreeWidgetItem * > map_modifyDialogOpened
 
std::map< void *, QDialog * > map_modifyObjectWindow
 
GraphListenerQListViewgraphListener_
 
std::vector< std::string > list_object
 
AddObject * AddObjectDialog_
 
ObjectModel object_
 
SofaListViewAttribute attribute_
 
QDisplayPropertyWidgetpropertyWidget
 
- Protected Attributes inherited from sofa::gui::qt::SofaSceneGraphWidget
bool m_isDirty
 
bool m_isLocked
 

Public Member Functions

 QSofaListView (const SofaListViewAttribute &attribute, QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags f=Qt::WindowType::Widget)
 
 ~QSofaListView () override
 
GraphListenerQListViewgetListener () const
 
void setPropertyWidget (QDisplayPropertyWidget *propertyWid)
 
void addInPropertyWidget (QTreeWidgetItem *item, bool clear)
 
void Clear (sofa::simulation::Node *rootNode)
 
void update ()
 
void setRoot (sofa::simulation::Node *)
 
SofaListViewAttribute getAttribute () const
 
void contextMenuEvent (QContextMenuEvent *event) override
 
void expandPathFrom (const std::vector< std::string > &pathes)
 
void getExpandedNodes (std::vector< std::string > &)
 
void loadObject (std::string path, double dx, double dy, double dz, double rx, double ry, double rz, double scale)=delete
 
- Public Member Functions inherited from sofa::gui::qt::SofaSceneGraphWidget
 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 ()
 

Protected Member Functions

void expandPath (const std::string &path)
 
void getExpandedNodes (QTreeWidgetItem *item, std::vector< std::string > &)
 
void collapseNode (QTreeWidgetItem *item)
 
void expandNode (QTreeWidgetItem *item)
 
void transformObject (sofa::simulation::Node *node, double dx, double dy, double dz, double rx, double ry, double rz, double scale)=delete
 
bool isNodeErasable (core::objectmodel::BaseNode *node)
 
std::list< core::objectmodel::BaseNode * > collectNodesToChange (core::objectmodel::BaseNode *node)
 

Signals

void Close ()
 
void Lock (bool)
 
void RequestSaving (sofa::simulation::Node *)
 
void RequestExportOBJ (sofa::simulation::Node *node, bool exportMTL)
 
void RequestActivation (sofa::simulation::Node *, bool)
 
void RequestSleeping (sofa::simulation::Node *, bool)
 
void RootNodeChanged (sofa::simulation::Node *newroot, const char *newpath)
 
void NodeRemoved ()
 
void Updated ()
 
void NodeAdded ()
 
void focusChanged (sofa::core::objectmodel::BaseObject *)
 
void focusChanged (sofa::core::objectmodel::BaseNode *)
 
void dataModified (QString)
 
- Signals inherited from sofa::gui::qt::SofaSceneGraphWidget
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...
 

Public Slots

void Export ()
 
void CloseAllDialogs ()
 
void UpdateOpenedDialogs ()
 
void ExpandRootNodeOnly ()
 

Protected Slots

void SaveNode ()
 
void exportOBJ ()
 
void collapseNode ()
 
void expandNode ()
 
void modifyUnlock (void *Id)
 
void RemoveNode ()
 
void Modify ()
 
void openInEditor ()
 
void openInstanciation ()
 
void openImplementation ()
 
void copyFilePathToClipBoard ()
 
void DeactivateNode ()
 
void ActivateNode ()
 
void PutNodeToSleep ()
 
void WakeUpNode ()
 
void updateMatchingObjectmodel (QTreeWidgetItem *item, int)
 
void updateMatchingObjectmodel (QTreeWidgetItem *item)
 
void RunSofaRightClicked (const QPoint &point)
 
void RunSofaDoubleClicked (QTreeWidgetItem *item, int index)
 
void nodeNameModification (simulation::Node *)
 
void focusObject ()
 
void focusNode ()
 

Attribute details

◆ AddObjectDialog_

AddObject* sofa::gui::qt::QSofaListView::AddObjectDialog_
protected

◆ attribute_

SofaListViewAttribute sofa::gui::qt::QSofaListView::attribute_
protected

◆ graphListener_

GraphListenerQListView* sofa::gui::qt::QSofaListView::graphListener_
protected

◆ list_object

std::vector< std::string > sofa::gui::qt::QSofaListView::list_object
protected

◆ map_modifyDialogOpened

std::map< void*, QTreeWidgetItem* > sofa::gui::qt::QSofaListView::map_modifyDialogOpened
protected

◆ map_modifyObjectWindow

std::map< void*, QDialog* > sofa::gui::qt::QSofaListView::map_modifyObjectWindow
protected

◆ object_

ObjectModel sofa::gui::qt::QSofaListView::object_
protected

◆ propertyWidget

QDisplayPropertyWidget* sofa::gui::qt::QSofaListView::propertyWidget
protected

Constructor details

◆ QSofaListView()

sofa::gui::qt::QSofaListView::QSofaListView ( const SofaListViewAttribute attribute,
QWidget parent = nullptr,
const char name = nullptr,
Qt::WindowFlags  f = Qt::WindowType::Widget 
)

◆ ~QSofaListView()

sofa::gui::qt::QSofaListView::~QSofaListView ( )
override

Function details

◆ ActivateNode

void sofa::gui::qt::QSofaListView::ActivateNode ( )
protectedslot

◆ addInPropertyWidget()

void sofa::gui::qt::QSofaListView::addInPropertyWidget ( QTreeWidgetItem *  item,
bool  clear 
)

◆ Clear()

void sofa::gui::qt::QSofaListView::Clear ( sofa::simulation::Node rootNode)

◆ Close

void sofa::gui::qt::QSofaListView::Close ( )
signal

◆ CloseAllDialogs

void sofa::gui::qt::QSofaListView::CloseAllDialogs ( )
slot

◆ collapseNode [1/2]

void sofa::gui::qt::QSofaListView::collapseNode ( )
protectedslot

◆ collapseNode() [2/2]

void sofa::gui::qt::QSofaListView::collapseNode ( QTreeWidgetItem *  item)
protected

◆ collectNodesToChange()

std::list<core::objectmodel::BaseNode*> sofa::gui::qt::QSofaListView::collectNodesToChange ( core::objectmodel::BaseNode node)
protected

◆ contextMenuEvent()

void sofa::gui::qt::QSofaListView::contextMenuEvent ( QContextMenuEvent *  event)
override

◆ copyFilePathToClipBoard

void sofa::gui::qt::QSofaListView::copyFilePathToClipBoard ( )
protectedslot

◆ dataModified

void sofa::gui::qt::QSofaListView::dataModified ( QString  )
signal

◆ DeactivateNode

void sofa::gui::qt::QSofaListView::DeactivateNode ( )
protectedslot

◆ expandNode [1/2]

void sofa::gui::qt::QSofaListView::expandNode ( )
protectedslot

◆ expandNode() [2/2]

void sofa::gui::qt::QSofaListView::expandNode ( QTreeWidgetItem *  item)
protected

◆ expandPath()

void sofa::gui::qt::QSofaListView::expandPath ( const std::string &  path)
protected

◆ expandPathFrom()

void sofa::gui::qt::QSofaListView::expandPathFrom ( const std::vector< std::string > &  pathes)

◆ ExpandRootNodeOnly

void sofa::gui::qt::QSofaListView::ExpandRootNodeOnly ( )
slot

◆ Export

void sofa::gui::qt::QSofaListView::Export ( )
slot

◆ exportOBJ

void sofa::gui::qt::QSofaListView::exportOBJ ( )
protectedslot

◆ focusChanged [1/2]

void sofa::gui::qt::QSofaListView::focusChanged ( sofa::core::objectmodel::BaseNode )
signal

◆ focusChanged [2/2]

void sofa::gui::qt::QSofaListView::focusChanged ( sofa::core::objectmodel::BaseObject )
signal

◆ focusNode

void sofa::gui::qt::QSofaListView::focusNode ( )
protectedslot

◆ focusObject

void sofa::gui::qt::QSofaListView::focusObject ( )
protectedslot

◆ getAttribute()

SofaListViewAttribute sofa::gui::qt::QSofaListView::getAttribute ( ) const
inline

◆ getExpandedNodes() [1/2]

void sofa::gui::qt::QSofaListView::getExpandedNodes ( QTreeWidgetItem *  item,
std::vector< std::string > &  pathes 
)
protected

Traverse the item tree and retrive the item that are expanded. The path of the node that are expanded are stored in the pathes std::vector::std::string>.

◆ getExpandedNodes() [2/2]

void sofa::gui::qt::QSofaListView::getExpandedNodes ( std::vector< std::string > &  pathes)

◆ getListener()

GraphListenerQListView* sofa::gui::qt::QSofaListView::getListener ( ) const
inline

◆ isNodeErasable()

bool sofa::gui::qt::QSofaListView::isNodeErasable ( core::objectmodel::BaseNode node)
protected

◆ loadObject()

void sofa::gui::qt::QSofaListView::loadObject ( std::string  path,
double  dx,
double  dy,
double  dz,
double  rx,
double  ry,
double  rz,
double  scale 
)
delete

◆ Lock

void sofa::gui::qt::QSofaListView::Lock ( bool  )
signal

◆ Modify

void sofa::gui::qt::QSofaListView::Modify ( )
protectedslot

◆ modifyUnlock

void sofa::gui::qt::QSofaListView::modifyUnlock ( void *  Id)
protectedslot

◆ NodeAdded

void sofa::gui::qt::QSofaListView::NodeAdded ( )
signal

◆ nodeNameModification

void sofa::gui::qt::QSofaListView::nodeNameModification ( simulation::Node node)
protectedslot

◆ NodeRemoved

void sofa::gui::qt::QSofaListView::NodeRemoved ( )
signal

◆ openImplementation

void sofa::gui::qt::QSofaListView::openImplementation ( )
protectedslot

◆ openInEditor

void sofa::gui::qt::QSofaListView::openInEditor ( )
protectedslot

◆ openInstanciation

void sofa::gui::qt::QSofaListView::openInstanciation ( )
protectedslot

◆ PutNodeToSleep

void sofa::gui::qt::QSofaListView::PutNodeToSleep ( )
protectedslot

◆ RemoveNode

void sofa::gui::qt::QSofaListView::RemoveNode ( )
protectedslot

◆ RequestActivation

void sofa::gui::qt::QSofaListView::RequestActivation ( sofa::simulation::Node ,
bool   
)
signal

◆ RequestExportOBJ

void sofa::gui::qt::QSofaListView::RequestExportOBJ ( sofa::simulation::Node node,
bool  exportMTL 
)
signal

◆ RequestSaving

void sofa::gui::qt::QSofaListView::RequestSaving ( sofa::simulation::Node )
signal

◆ RequestSleeping

void sofa::gui::qt::QSofaListView::RequestSleeping ( sofa::simulation::Node ,
bool   
)
signal

◆ RootNodeChanged

void sofa::gui::qt::QSofaListView::RootNodeChanged ( sofa::simulation::Node newroot,
const char newpath 
)
signal

◆ RunSofaDoubleClicked

void sofa::gui::qt::QSofaListView::RunSofaDoubleClicked ( QTreeWidgetItem *  item,
int  index 
)
protectedslot

◆ RunSofaRightClicked

void sofa::gui::qt::QSofaListView::RunSofaRightClicked ( const QPoint &  point)
protectedslot

◆ SaveNode

void sofa::gui::qt::QSofaListView::SaveNode ( )
protectedslot

◆ setPropertyWidget()

void sofa::gui::qt::QSofaListView::setPropertyWidget ( QDisplayPropertyWidget propertyWid)
inline

◆ setRoot()

void sofa::gui::qt::QSofaListView::setRoot ( sofa::simulation::Node root)

◆ transformObject()

void sofa::gui::qt::QSofaListView::transformObject ( sofa::simulation::Node node,
double  dx,
double  dy,
double  dz,
double  rx,
double  ry,
double  rz,
double  scale 
)
protecteddelete

◆ update()

void sofa::gui::qt::QSofaListView::update ( )

Updates the view so it is synchronized with the simulation graph. The view can be visually de-synchronized with the simulation graph. This happens when the view is "frozen" for performance reason. In that case, use isDirty to get current view state or the dirtynessChanged() signal. To resynchronize the view call the update methid.

◆ Updated

void sofa::gui::qt::QSofaListView::Updated ( )
signal

◆ updateMatchingObjectmodel [1/2]

void sofa::gui::qt::QSofaListView::updateMatchingObjectmodel ( QTreeWidgetItem *  item)
protectedslot

◆ updateMatchingObjectmodel [2/2]

void sofa::gui::qt::QSofaListView::updateMatchingObjectmodel ( QTreeWidgetItem *  item,
int   
)
protectedslot

◆ UpdateOpenedDialogs

void sofa::gui::qt::QSofaListView::UpdateOpenedDialogs ( )
slot

◆ WakeUpNode

void sofa::gui::qt::QSofaListView::WakeUpNode ( )
protectedslot