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

#include <DisplayFlagsDataWidget.h>

Inheritance diagram for sofa::gui::qt::DisplayFlagWidget:

Protected Attributes

QTreeWidgetItem * itemShowFlag [ALLFLAGS]
 
std::map< QTreeWidgetItem *, intmapFlag
 

Public Member Functions

 DisplayFlagWidget (QWidget *parent, const char *name=0, Qt::WindowFlags f=0)
 
bool getFlag (int idx)
 
void setFlag (int idx, bool value)
 

Protected Member Functions

void setTreeWidgetNodeCheckable (QTreeWidgetItem *w, const char *name)
 
void setTreeWidgetCheckable (QTreeWidgetItem *w, const char *name)
 
void mouseReleaseEvent (QMouseEvent *e) override
 
void findChildren (QTreeWidgetItem *, std::vector< QTreeWidgetItem * > &children)
 

Signals

void change (int, bool)
 
void clicked ()
 

Attribute details

QTreeWidgetItem* sofa::gui::qt::DisplayFlagWidget::itemShowFlag[ALLFLAGS]
protected
std::map< QTreeWidgetItem*, int > sofa::gui::qt::DisplayFlagWidget::mapFlag
protected

Constructor details

sofa::gui::qt::DisplayFlagWidget::DisplayFlagWidget ( QWidget parent,
const char *  name = 0,
Qt::WindowFlags  f = 0 
)

Function details

void sofa::gui::qt::DisplayFlagWidget::change ( int  ,
bool   
)
signal
void sofa::gui::qt::DisplayFlagWidget::clicked ( )
signal
void sofa::gui::qt::DisplayFlagWidget::findChildren ( QTreeWidgetItem *  item,
std::vector< QTreeWidgetItem * > &  children 
)
protected
bool sofa::gui::qt::DisplayFlagWidget::getFlag ( int  idx)
inline
void sofa::gui::qt::DisplayFlagWidget::mouseReleaseEvent ( QMouseEvent *  e)
overrideprotected
void sofa::gui::qt::DisplayFlagWidget::setFlag ( int  idx,
bool  value 
)
inline
void sofa::gui::qt::DisplayFlagWidget::setTreeWidgetCheckable ( QTreeWidgetItem *  w,
const char *  name 
)
protected
void sofa::gui::qt::DisplayFlagWidget::setTreeWidgetNodeCheckable ( QTreeWidgetItem *  w,
const char *  name 
)
protected

Enum details

Enumerator
VISUALMODELS 
BEHAVIORMODELS 
COLLISIONMODELS 
BOUNDINGCOLLISIONMODELS 
MAPPINGS 
MECHANICALMAPPINGS 
FORCEFIELDS 
INTERACTIONFORCEFIELDS 
RENDERING 
WIREFRAME 
NORMALS 
ALLFLAGS