Hi,
I have a problem where the data is represented in form of a tree (Ex: binary tree). The tree has nodes of different kind. So basically, there is a base class and then different nodes are derived from it.
This data also needs to be presented on the screen (to the user) and this involves custom drawing of each nodes. How the node is drawn depends on the type of the node. The tree also involves simplification process using which a new simplified form of the original tree is derived based on some rules.
In order to draw these nodes I need to maintain the position and size. I'd like to know how I can separate this code and data required to draw the tree on the screen from the other data in the node that will be used for simplification.
I hope the question made sense. Thanks for the help and time.