SOFA API  1c8b807d
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 *, int > mapFlag
 

Public Member Functions

 DisplayFlagWidget (QWidget *parent, const char *name=nullptr, Qt::WindowFlags f=Qt::WindowType::Widget)
 
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

◆ itemShowFlag

QTreeWidgetItem* sofa::gui::qt::DisplayFlagWidget::itemShowFlag[ALLFLAGS]
protected

◆ mapFlag

std::map< QTreeWidgetItem*, int > sofa::gui::qt::DisplayFlagWidget::mapFlag
protected

Constructor details

◆ DisplayFlagWidget()

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

Function details

◆ change

void sofa::gui::qt::DisplayFlagWidget::change ( int  ,
bool   
)
signal

◆ clicked

void sofa::gui::qt::DisplayFlagWidget::clicked ( )
signal

◆ findChildren()

void sofa::gui::qt::DisplayFlagWidget::findChildren ( QTreeWidgetItem *  item,
std::vector< QTreeWidgetItem * > &  children 
)
protected

◆ getFlag()

bool sofa::gui::qt::DisplayFlagWidget::getFlag ( int  idx)
inline

◆ mouseReleaseEvent()

void sofa::gui::qt::DisplayFlagWidget::mouseReleaseEvent ( QMouseEvent *  e)
overrideprotected

◆ setFlag()

void sofa::gui::qt::DisplayFlagWidget::setFlag ( int  idx,
bool  value 
)
inline

◆ setTreeWidgetCheckable()

void sofa::gui::qt::DisplayFlagWidget::setTreeWidgetCheckable ( QTreeWidgetItem *  w,
const char name 
)
protected

◆ setTreeWidgetNodeCheckable()

void sofa::gui::qt::DisplayFlagWidget::setTreeWidgetNodeCheckable ( QTreeWidgetItem *  w,
const char name 
)
protected

Enum details

◆ VISUAL_FLAG

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