| MoveTo() hilighting object in wrong location |
 |
| EricThompson | 2010/08/05 17:28 | I'm having a problem with object hilighting in some cases. It works fine in 3 of my OpenCascade views, but is offset vertically in a 4th view. ( Each view is viewing a seperate interactive context. ) The amount of offset is proportional to the view scale.
I find that I can correct the problem by adjusting my y value as follows before calling MoveTo():
double scale = (*myView).Scale(); // Odd notation because using an arrow does not post to forum well
y = y - (int)(0.65*scale);
This hack is working, but if anyone can tell me what I'm doing wrong that is causing the error, I'd prefer to fix it right.
Thanks! |  |
|
|
|
 |
| EricThompson | 2010/08/09 19:44 | Paul-
Thanks for the suggestion, but that does not appear to be the problem in my case. |  |
|
|
 |
| Forum supervisor | 2010/08/27 12:01 | Hello Eric,
This problem is now registered with reference number OCC21986 "[OCC Forum] MoveTo() hilighting object in wrong location".
Thank you for your cooperation.
Yours sincerely,
Forum Supervisor |  |
|
|