#include <SofaWindowDataGraph.h>
This Class provide an interface with the library QtNodes to display Data Graph connection inside a QDialog. It will take a SOFA simulation scene and create Graph nodes for each Sofa component and display connections between Data.
Protected Attributes | |
QtNodes::FlowScene * | m_graphScene |
Pointer to the graphScene used to store nodes. More... | |
QtNodes::FlowView * | m_graphView |
Pointer to the view of the graph. More... | |
sofa::simulation::Node * | m_rootNode |
Point to the root node of the current simulation. More... | |
std::vector< std::string > | m_exceptions |
List of component name not to be display in the graph. More... | |
SReal | m_scaleX |
Scale paramater to apply between nodes for display in abscissa. More... | |
SReal | m_scaleY |
Scale paramater to apply between nodes for display in ordinate. More... | |
int | m_posX |
Increment position counter on abscissa for Node display. More... | |
int | m_posY |
Increment position counter on ordinate for Node display. More... | |
bool | debugNodeGraph |
parameter to activate graph logs. False by default. More... | |
Public Member Functions | |
SofaWindowDataGraph (QWidget *parent, sofa::simulation::Node *scene) | |
Default constructor of the Widget, given a QWidget as parent and a pointer to the current simulation scene. More... | |
~SofaWindowDataGraph () | |
void | resetNodeGraph (sofa::simulation::Node *scene) |
Method to be called when graph need to be recomputed (like reloading scene). Take a pointer to the root node of the scene. More... | |
Protected Member Functions | |
void | parseSimulationNode (sofa::simulation::Node *node, int posX=0) |
Internal method to parse all Sofa component inside a Sofa simulation Node. Will call. More... | |
size_t | addSimulationObject (sofa::core::objectmodel::BaseObject *bObject) |
Internal method to create a Node for this sofa BaseObject. More... | |
void | connectNodeData () |
Internal method to create all connection between component on the graph. More... | |
void | clearNodeData () |
Internal method to clear the graph structures. More... | |
|
protected |
parameter to activate graph logs. False by default.
|
protected |
List of component name not to be display in the graph.
|
protected |
Pointer to the graphScene used to store nodes.
|
protected |
Pointer to the view of the graph.
|
protected |
Increment position counter on abscissa for Node display.
|
protected |
Increment position counter on ordinate for Node display.
|
protected |
Point to the root node of the current simulation.
|
protected |
Scale paramater to apply between nodes for display in abscissa.
|
protected |
Scale paramater to apply between nodes for display in ordinate.
sofa::gui::qt::SofaWindowDataGraph::SofaWindowDataGraph | ( | QWidget * | parent, |
sofa::simulation::Node * | scene | ||
) |
Default constructor of the Widget, given a QWidget as parent and a pointer to the current simulation scene.
sofa::gui::qt::SofaWindowDataGraph::~SofaWindowDataGraph | ( | ) |
|
protected |
Internal method to create a Node for this sofa BaseObject.
|
protected |
Internal method to clear the graph structures.
|
protected |
Internal method to create all connection between component on the graph.
|
protected |
Internal method to parse all Sofa component inside a Sofa simulation Node. Will call.
void sofa::gui::qt::SofaWindowDataGraph::resetNodeGraph | ( | sofa::simulation::Node * | scene | ) |
Method to be called when graph need to be recomputed (like reloading scene). Take a pointer to the root node of the scene.