Implemented a mechanism that detects in the data tree the object that is currently selected in the window. Added also code to select in the TreeView the data corresponding to the selected object. This will be used for operations like Extrude, Cut to detect on what data the transformation takes place.
The object detection is made like the following: the selected shape is extracted from the InteractiveObject, the OCAF tree structure is traversed looking for OCTNaming_NamedShape attributes from which extract the shape, compare the shapes using the IsSame() method to see if they are identical. Will implement also the reversed process: detect the InteractiveObject that represents the selected data from the tree.