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

#include <GraphVisitor.h>

Protected Attributes

QTreeWidgetgraph
 
WindowVisitorwindow
 
double totalTime
 
double totalTimeMax
 
std::vector< double > timeComponentsBelow
 
int level
 
std::vector< dataTimecomponentsTime
 
std::vector< dataTimevisitorsTime
 
std::vector< dataTimecomponentsTimeTotal
 
std::vector< dataTimevisitorsTimeTotal
 
std::vector< dataTimecomponentsTimeMax
 
std::vector< dataTimevisitorsTimeMax
 
std::vector< std::string > visitedNode
 
bool initSize
 

Public Member Functions

 GraphVisitor (WindowVisitor *w)
 
QTreeWidgetItem * addNode (QTreeWidgetItem *parent, QTreeWidgetItem *elementAbove, std::string info)
 
QTreeWidgetItem * addComment (QTreeWidgetItem *element, QTreeWidgetItem *elementAbove, std::string comment)
 
void addInformation (QTreeWidgetItem *element, std::string name, std::string info)
 
void addTime (QTreeWidgetItem *element, std::string info)
 
bool load (std::string &file)
 
void setGraph (QTreeWidget *g)
 
void clear ()
 
double getTotalTime (tinyxml2::XMLNode *node) const
 
double getTime (const tinyxml2::XMLAttribute *attribute) const
 

Protected Member Functions

void openTime (tinyxml2::XMLNode *element, QTreeWidgetItem *item)
 
void openAttribute (tinyxml2::XMLElement *element, QTreeWidgetItem *item)
 
QTreeWidgetItem * openNode (tinyxml2::XMLNode *node, QTreeWidgetItem *parent, QTreeWidgetItem *elementAbove)
 

Attribute details

◆ componentsTime

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

◆ componentsTimeMax

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

◆ componentsTimeTotal

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

◆ graph

QTreeWidget* sofa::gui::qt::GraphVisitor::graph
protected

◆ initSize

bool sofa::gui::qt::GraphVisitor::initSize
protected

◆ level

int sofa::gui::qt::GraphVisitor::level
protected

◆ timeComponentsBelow

std::vector<double> sofa::gui::qt::GraphVisitor::timeComponentsBelow
protected

◆ totalTime

double sofa::gui::qt::GraphVisitor::totalTime
protected

◆ totalTimeMax

double sofa::gui::qt::GraphVisitor::totalTimeMax
protected

◆ visitedNode

std::vector< std::string > sofa::gui::qt::GraphVisitor::visitedNode
protected

◆ visitorsTime

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

◆ visitorsTimeMax

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

◆ visitorsTimeTotal

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

◆ window

WindowVisitor* sofa::gui::qt::GraphVisitor::window
protected

Constructor details

◆ GraphVisitor()

sofa::gui::qt::GraphVisitor::GraphVisitor ( WindowVisitor w)
inline

Function details

◆ addComment()

QTreeWidgetItem * sofa::gui::qt::GraphVisitor::addComment ( QTreeWidgetItem *  element,
QTreeWidgetItem *  elementAbove,
std::string  comment 
)

◆ addInformation()

void sofa::gui::qt::GraphVisitor::addInformation ( QTreeWidgetItem *  element,
std::string  name,
std::string  info 
)

◆ addNode()

QTreeWidgetItem * sofa::gui::qt::GraphVisitor::addNode ( QTreeWidgetItem *  parent,
QTreeWidgetItem *  elementAbove,
std::string  info 
)

◆ addTime()

void sofa::gui::qt::GraphVisitor::addTime ( QTreeWidgetItem *  element,
std::string  info 
)

◆ clear()

void sofa::gui::qt::GraphVisitor::clear ( )
inline

◆ getTime()

double sofa::gui::qt::GraphVisitor::getTime ( const tinyxml2::XMLAttribute *  attribute) const
inline

◆ getTotalTime()

double sofa::gui::qt::GraphVisitor::getTotalTime ( tinyxml2::XMLNode *  node) const

◆ load()

bool sofa::gui::qt::GraphVisitor::load ( std::string &  file)

◆ openAttribute()

void sofa::gui::qt::GraphVisitor::openAttribute ( tinyxml2::XMLElement *  element,
QTreeWidgetItem *  item 
)
protected

◆ openNode()

QTreeWidgetItem * sofa::gui::qt::GraphVisitor::openNode ( tinyxml2::XMLNode *  node,
QTreeWidgetItem *  parent,
QTreeWidgetItem *  elementAbove 
)
protected

◆ openTime()

void sofa::gui::qt::GraphVisitor::openTime ( tinyxml2::XMLNode *  element,
QTreeWidgetItem *  item 
)
protected

◆ setGraph()

void sofa::gui::qt::GraphVisitor::setGraph ( QTreeWidget g)
inline