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

#include <QSofaListView.h>

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

Protected Attributes

std::map< void *, QTreeWidgetItem * > map_modifyDialogOpened
 
std::map< void *, QDialog * > map_modifyObjectWindow
 
GraphListenerQListViewgraphListener_
 
std::vector< std::string > list_object
 
AddObjectAddObjectDialog_
 
ObjectModel object_
 
SofaListViewAttribute attribute_
 
QDisplayPropertyWidgetpropertyWidget
 

Public Member Functions

 QSofaListView (const SofaListViewAttribute &attribute, QWidget *parent=0, const char *name=0, Qt::WindowFlags f=0)
 
 ~QSofaListView () override
 
GraphListenerQListViewgetListener () const
 
void setPropertyWidget (QDisplayPropertyWidget *propertyWid)
 
void addInPropertyWidget (QTreeWidgetItem *item, bool clear)
 
void Clear (sofa::simulation::Node *rootNode)
 
void Freeze ()
 
void Unfreeze ()
 
SofaListViewAttribute getAttribute () const
 
void contextMenuEvent (QContextMenuEvent *event) override
 
void expandPathFrom (const std::vector< std::string > &pathes)
 
void getExpandedNodes (std::vector< std::string > &)
 

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)
 
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)
 

Public Slots

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

Protected Slots

void SaveNode ()
 
void exportOBJ ()
 
void collapseNode ()
 
void expandNode ()
 
void modifyUnlock (void *Id)
 
void RaiseAddObject ()
 
void RemoveNode ()
 
void Modify ()
 
void HideDatas ()
 
void ShowDatas ()
 
void openInEditor ()
 
void openInstanciation ()
 
void openImplementation ()
 
void copyFilePathToClipBoard ()
 
void DeactivateNode ()
 
void ActivateNode ()
 
void PutNodeToSleep ()
 
void WakeUpNode ()
 
void loadObject (std::string path, double dx, double dy, double dz, double rx, double ry, double rz, double scale)
 
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

AddObject* sofa::gui::qt::QSofaListView::AddObjectDialog_
protected
SofaListViewAttribute sofa::gui::qt::QSofaListView::attribute_
protected
GraphListenerQListView* sofa::gui::qt::QSofaListView::graphListener_
protected
std::vector< std::string > sofa::gui::qt::QSofaListView::list_object
protected
std::map< void*, QTreeWidgetItem* > sofa::gui::qt::QSofaListView::map_modifyDialogOpened
protected
std::map< void*, QDialog* > sofa::gui::qt::QSofaListView::map_modifyObjectWindow
protected
ObjectModel sofa::gui::qt::QSofaListView::object_
protected
QDisplayPropertyWidget* sofa::gui::qt::QSofaListView::propertyWidget
protected

Constructor details

sofa::gui::qt::QSofaListView::QSofaListView ( const SofaListViewAttribute attribute,
QWidget parent = 0,
const char *  name = 0,
Qt::WindowFlags  f = 0 
)
sofa::gui::qt::QSofaListView::~QSofaListView ( )
override

Function details

void sofa::gui::qt::QSofaListView::ActivateNode ( )
protectedslot
void sofa::gui::qt::QSofaListView::addInPropertyWidget ( QTreeWidgetItem *  item,
bool  clear 
)
void sofa::gui::qt::QSofaListView::Clear ( sofa::simulation::Node rootNode)
void sofa::gui::qt::QSofaListView::Close ( )
signal
void sofa::gui::qt::QSofaListView::CloseAllDialogs ( )
slot
void sofa::gui::qt::QSofaListView::collapseNode ( )
protectedslot
void sofa::gui::qt::QSofaListView::collapseNode ( QTreeWidgetItem *  item)
protected
std::list<core::objectmodel::BaseNode*> sofa::gui::qt::QSofaListView::collectNodesToChange ( core::objectmodel::BaseNode node)
protected
void sofa::gui::qt::QSofaListView::contextMenuEvent ( QContextMenuEvent *  event)
override
void sofa::gui::qt::QSofaListView::copyFilePathToClipBoard ( )
protectedslot
void sofa::gui::qt::QSofaListView::dataModified ( QString  )
signal
void sofa::gui::qt::QSofaListView::DeactivateNode ( )
protectedslot
void sofa::gui::qt::QSofaListView::expandNode ( )
protectedslot
void sofa::gui::qt::QSofaListView::expandNode ( QTreeWidgetItem *  item)
protected
void sofa::gui::qt::QSofaListView::expandPath ( const std::string &  path)
protected
void sofa::gui::qt::QSofaListView::expandPathFrom ( const std::vector< std::string > &  pathes)
void sofa::gui::qt::QSofaListView::Export ( )
slot
void sofa::gui::qt::QSofaListView::exportOBJ ( )
protectedslot
void sofa::gui::qt::QSofaListView::focusChanged ( sofa::core::objectmodel::BaseObject )
signal
void sofa::gui::qt::QSofaListView::focusChanged ( sofa::core::objectmodel::BaseNode )
signal
void sofa::gui::qt::QSofaListView::focusNode ( )
protectedslot
void sofa::gui::qt::QSofaListView::focusObject ( )
protectedslot
void sofa::gui::qt::QSofaListView::Freeze ( )
SofaListViewAttribute sofa::gui::qt::QSofaListView::getAttribute ( ) const
inline
void sofa::gui::qt::QSofaListView::getExpandedNodes ( std::vector< std::string > &  pathes)
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 the pathes std::vector::std::string>.

GraphListenerQListView* sofa::gui::qt::QSofaListView::getListener ( ) const
inline
void sofa::gui::qt::QSofaListView::HideDatas ( )
protectedslot
bool sofa::gui::qt::QSofaListView::isNodeErasable ( core::objectmodel::BaseNode node)
protected
void sofa::gui::qt::QSofaListView::loadObject ( std::string  path,
double  dx,
double  dy,
double  dz,
double  rx,
double  ry,
double  rz,
double  scale 
)
protectedslot
void sofa::gui::qt::QSofaListView::Lock ( bool  )
signal
void sofa::gui::qt::QSofaListView::Modify ( )
protectedslot
void sofa::gui::qt::QSofaListView::modifyUnlock ( void *  Id)
protectedslot
void sofa::gui::qt::QSofaListView::NodeAdded ( )
signal
void sofa::gui::qt::QSofaListView::nodeNameModification ( simulation::Node node)
protectedslot
void sofa::gui::qt::QSofaListView::NodeRemoved ( )
signal
void sofa::gui::qt::QSofaListView::openImplementation ( )
protectedslot
void sofa::gui::qt::QSofaListView::openInEditor ( )
protectedslot
void sofa::gui::qt::QSofaListView::openInstanciation ( )
protectedslot
void sofa::gui::qt::QSofaListView::PutNodeToSleep ( )
protectedslot
void sofa::gui::qt::QSofaListView::RaiseAddObject ( )
protectedslot
void sofa::gui::qt::QSofaListView::RemoveNode ( )
protectedslot
void sofa::gui::qt::QSofaListView::RequestActivation ( sofa::simulation::Node ,
bool   
)
signal
void sofa::gui::qt::QSofaListView::RequestExportOBJ ( sofa::simulation::Node node,
bool  exportMTL 
)
signal
void sofa::gui::qt::QSofaListView::RequestSaving ( sofa::simulation::Node )
signal
void sofa::gui::qt::QSofaListView::RequestSleeping ( sofa::simulation::Node ,
bool   
)
signal
void sofa::gui::qt::QSofaListView::RootNodeChanged ( sofa::simulation::Node newroot,
const char *  newpath 
)
signal
void sofa::gui::qt::QSofaListView::RunSofaDoubleClicked ( QTreeWidgetItem *  item,
int  index 
)
protectedslot
void sofa::gui::qt::QSofaListView::RunSofaRightClicked ( const QPoint &  point)
protectedslot
void sofa::gui::qt::QSofaListView::SaveNode ( )
protectedslot
void sofa::gui::qt::QSofaListView::setPropertyWidget ( QDisplayPropertyWidget propertyWid)
inline
void sofa::gui::qt::QSofaListView::ShowDatas ( )
protectedslot
void sofa::gui::qt::QSofaListView::transformObject ( sofa::simulation::Node node,
double  dx,
double  dy,
double  dz,
double  rx,
double  ry,
double  rz,
double  scale 
)
protected
void sofa::gui::qt::QSofaListView::Unfreeze ( )
void sofa::gui::qt::QSofaListView::Updated ( )
signal
void sofa::gui::qt::QSofaListView::updateMatchingObjectmodel ( QTreeWidgetItem *  item,
int   
)
protectedslot
void sofa::gui::qt::QSofaListView::updateMatchingObjectmodel ( QTreeWidgetItem *  item)
protectedslot
void sofa::gui::qt::QSofaListView::UpdateOpenedDialogs ( )
slot
void sofa::gui::qt::QSofaListView::WakeUpNode ( )
protectedslot