SOFA API  c76874b7
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< doubletimeComponentsBelow
 
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 (TiXmlNode *node) const
 
double getTime (TiXmlAttribute *attribute) const
 

Protected Member Functions

void openTime (TiXmlNode *element, QTreeWidgetItem *item)
 
void openAttribute (TiXmlElement *element, QTreeWidgetItem *item)
 
QTreeWidgetItem * openNode (TiXmlNode *node, QTreeWidgetItem *parent, QTreeWidgetItem *elementAbove)
 

Attribute details

std::vector< dataTime > sofa::gui::qt::GraphVisitor::componentsTime
protected
std::vector< dataTime > sofa::gui::qt::GraphVisitor::componentsTimeMax
protected
std::vector< dataTime > sofa::gui::qt::GraphVisitor::componentsTimeTotal
protected
QTreeWidget* sofa::gui::qt::GraphVisitor::graph
protected
bool sofa::gui::qt::GraphVisitor::initSize
protected
int sofa::gui::qt::GraphVisitor::level
protected
std::vector<double> sofa::gui::qt::GraphVisitor::timeComponentsBelow
protected
double sofa::gui::qt::GraphVisitor::totalTime
protected
double sofa::gui::qt::GraphVisitor::totalTimeMax
protected
std::vector< std::string > sofa::gui::qt::GraphVisitor::visitedNode
protected
std::vector< dataTime > sofa::gui::qt::GraphVisitor::visitorsTime
protected
std::vector< dataTime > sofa::gui::qt::GraphVisitor::visitorsTimeMax
protected
std::vector< dataTime > sofa::gui::qt::GraphVisitor::visitorsTimeTotal
protected
WindowVisitor* sofa::gui::qt::GraphVisitor::window
protected

Constructor details

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

Function details

QTreeWidgetItem * sofa::gui::qt::GraphVisitor::addComment ( QTreeWidgetItem *  element,
QTreeWidgetItem *  elementAbove,
std::string  comment 
)
void sofa::gui::qt::GraphVisitor::addInformation ( QTreeWidgetItem *  element,
std::string  name,
std::string  info 
)
QTreeWidgetItem * sofa::gui::qt::GraphVisitor::addNode ( QTreeWidgetItem *  parent,
QTreeWidgetItem *  elementAbove,
std::string  info 
)
void sofa::gui::qt::GraphVisitor::addTime ( QTreeWidgetItem *  element,
std::string  info 
)
void sofa::gui::qt::GraphVisitor::clear ( )
inline
double sofa::gui::qt::GraphVisitor::getTime ( TiXmlAttribute *  attribute) const
inline
double sofa::gui::qt::GraphVisitor::getTotalTime ( TiXmlNode *  node) const
bool sofa::gui::qt::GraphVisitor::load ( std::string &  file)
void sofa::gui::qt::GraphVisitor::openAttribute ( TiXmlElement *  element,
QTreeWidgetItem *  item 
)
protected
QTreeWidgetItem * sofa::gui::qt::GraphVisitor::openNode ( TiXmlNode *  node,
QTreeWidgetItem *  parent,
QTreeWidgetItem *  elementAbove 
)
protected
void sofa::gui::qt::GraphVisitor::openTime ( TiXmlNode *  element,
QTreeWidgetItem *  item 
)
protected
void sofa::gui::qt::GraphVisitor::setGraph ( QTreeWidget g)
inline