Why does the View react one step slower after the Doc is modified?
Posted on 2003-03-20
To summarize, i've modified the CView class to hold the OpenGL viewing codes, the CAD model data to be viewed is stored in a member of the Document class. The application works fine when I open the CAD files, the model is shown on the screen, it can be rotated, translated, zoom in, zoom out etc. (The update works fine as long as the modifications are made only in the View class parameters.) But when i tried changing the model data by an icon click, the View is updated one step behind. (i.e. i clicked some operations in the sequence A-B-C-D-E, the program react one step slower, becoming NOTHING_HAPPEN-A-B-C-D. i tracked by debugger that the data in Document are modified correctly. So why does it react slower? How to solve this?
(I'm just newly registered, so don't have many points....)