c++ - GUI To Display Scene Graph -
I have an implementation question before I get started, I'm using QT4 Creator with OpenGL.
So I have this node class, defined like
class node {private: std :: vector & lt; Node *> Leaves; Node * guardian; GMTrix 3T; Polygon * p; Public: node () Zero addLeaf (node * n); Zero removal (); // and other}
I have a class view that is defined like this ~
private: node * route; Public: view (); Node * getRoot (); };
The creator of the scene creates a tree of node objects, each of which is a change matrix, an indicator for a polygon, an indicator for its parent node, and a vector of pointer to children. .
Finally, I have a Draw function which repeatedly enters the tree and asks OpenGL to draw the view.
So now, I want to create a GUI that the user has the ability to explicitly add nodes to the graph as a child of any other node, and to remove any leaf node in the structure. I am familiar with Qt tree tree, but I have never used it before and it is difficult to follow the tutorial on the website.
Does anyone point in the right direction / suggest any reading material may I see this project, where tree widgets have been used extensively.
and this article will Work as a base:
Comments
Post a Comment