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

#include <WindowVisitor.h>

Inheritance diagram for sofa::gui::qt::WindowVisitor:

Public Attributes

QWidgetstatsWidget
 

Protected Attributes

std::vector< dataTimecomponentsTime
 
std::vector< dataTimevisitorsTime
 
std::vector< dataTimecomponentsTimeTotal
 
std::vector< dataTimevisitorsTimeTotal
 
std::vector< dataTimecomponentsTimeMax
 
std::vector< dataTimevisitorsTimeMax
 
QVisitorControlPanelcontrolPanel
 
ChartsWidgetchartsComponent
 
ChartsWidgetchartsVisitor
 
QComboBox * typeOfCharts
 

Static Protected Attributes

static QPixmap * icons [OTHER+1]
 

Public Member Functions

 WindowVisitor (QWidget *parent)
 
void collapseNode (QTreeWidgetItem *item)
 
void expandNode (QTreeWidgetItem *item)
 
void setCharts (std::vector< dataTime > &latestC, std::vector< dataTime > &maxTC, std::vector< dataTime > &totalC, std::vector< dataTime > &latestV, std::vector< dataTime > &maxTV, std::vector< dataTime > &totalV)
 

Protected Member Functions

bool setFocusOn (QTreeWidgetItem *item, QString text)
 

Signals

void WindowVisitorClosed (bool)
 

Public Slots

void setCurrentCharts (int)
 
void rightClick (const QPoint &point)
 
void collapseNode ()
 
void expandNode ()
 
void focusOn (QString focus)
 
static componentType getComponentType (std::string name)
 
static QPixmap * getPixmap (componentType t)
 
void closeEvent (QCloseEvent *)
 
void clearGraph ()
 

Attribute details

◆ chartsComponent

ChartsWidget* sofa::gui::qt::WindowVisitor::chartsComponent
protected

◆ chartsVisitor

ChartsWidget* sofa::gui::qt::WindowVisitor::chartsVisitor
protected

◆ componentsTime

std::vector< dataTime > sofa::gui::qt::WindowVisitor::componentsTime
protected

◆ componentsTimeMax

std::vector< dataTime > sofa::gui::qt::WindowVisitor::componentsTimeMax
protected

◆ componentsTimeTotal

std::vector< dataTime > sofa::gui::qt::WindowVisitor::componentsTimeTotal
protected

◆ controlPanel

QVisitorControlPanel* sofa::gui::qt::WindowVisitor::controlPanel
protected

◆ icons

QPixmap * sofa::gui::qt::WindowVisitor::icons
staticprotected

◆ statsWidget

QWidget* sofa::gui::qt::WindowVisitor::statsWidget

◆ typeOfCharts

QComboBox* sofa::gui::qt::WindowVisitor::typeOfCharts
protected

◆ visitorsTime

std::vector< dataTime > sofa::gui::qt::WindowVisitor::visitorsTime
protected

◆ visitorsTimeMax

std::vector< dataTime > sofa::gui::qt::WindowVisitor::visitorsTimeMax
protected

◆ visitorsTimeTotal

std::vector< dataTime > sofa::gui::qt::WindowVisitor::visitorsTimeTotal
protected

Constructor details

◆ WindowVisitor()

sofa::gui::qt::WindowVisitor::WindowVisitor ( QWidget parent)

Function details

◆ clearGraph

void sofa::gui::qt::WindowVisitor::clearGraph ( )
inlineslot

◆ closeEvent

void sofa::gui::qt::WindowVisitor::closeEvent ( QCloseEvent *  )
inlineslot

◆ collapseNode [1/2]

void sofa::gui::qt::WindowVisitor::collapseNode ( )
slot

◆ collapseNode() [2/2]

void sofa::gui::qt::WindowVisitor::collapseNode ( QTreeWidgetItem *  item)

◆ expandNode [1/2]

void sofa::gui::qt::WindowVisitor::expandNode ( )
slot

◆ expandNode() [2/2]

void sofa::gui::qt::WindowVisitor::expandNode ( QTreeWidgetItem *  item)

◆ focusOn

void sofa::gui::qt::WindowVisitor::focusOn ( QString  focus)
slot

◆ getComponentType

static componentType sofa::gui::qt::WindowVisitor::getComponentType ( std::string  name)
inlinestaticslot

◆ getPixmap

static QPixmap* sofa::gui::qt::WindowVisitor::getPixmap ( componentType  t)
inlinestaticslot

◆ rightClick

void sofa::gui::qt::WindowVisitor::rightClick ( const QPoint &  point)
slot

◆ setCharts()

void sofa::gui::qt::WindowVisitor::setCharts ( std::vector< dataTime > &  latestC,
std::vector< dataTime > &  maxTC,
std::vector< dataTime > &  totalC,
std::vector< dataTime > &  latestV,
std::vector< dataTime > &  maxTV,
std::vector< dataTime > &  totalV 
)

◆ setCurrentCharts

void sofa::gui::qt::WindowVisitor::setCurrentCharts ( int  type)
slot

◆ setFocusOn()

bool sofa::gui::qt::WindowVisitor::setFocusOn ( QTreeWidgetItem *  item,
QString  text 
)
protected

◆ WindowVisitorClosed

void sofa::gui::qt::WindowVisitor::WindowVisitorClosed ( bool  )
signal

Enum details

◆ componentType

Enumerator
NODE 
COMMENT 
COMPONENT 
VECTOR 
OTHER