Today, when I was more awake, I didn't get a problem for a whole day. The reason is that the reason is that it is completely in the hard debugging of the feelings without a good logic structure. Whether it means reasonable, and whether the function is clear.
The key problem solved is actually not the data structure, but how to use this data structure correctly, the original problem is that there is no correct design to find the findattachedobj () function of the connected node, and there is always to track all when Onbuttonup Click on the situation instead of onbuttondown or during onmousemove! !
Note To update the M_CurrentID component in real time, otherwise the answer is not right!
-------------------------------------------------- --------
I feel that it is very processful style, because it is very concerned about the order of incident, and always pays attention to all related details between functions and functions (for example, to update certain variables yourself, this is a typical directional process. Style), so there is no good consideration throughout the design.
So how do you find an object-oriented design mode? Of course, it has already impressed that the data structure must be designed and designed.