Entity Highlight and Fit to Zoom
sarge
3/29/2017 7:13 PM
|
---|
private SimpleTransformationProvider3D transformationProvider;
While trying to debug it, I found that the matrix4d of gdiGraphics3D is different then the one is within the transformationProvider. I don't know how or where I have to put the values from tp to gg3d.
kind regards
|
Wout
3/29/2017 7:34 PM
|
---|
Could you state your problem by the way, because I haven't seen your problem statement.
- Wout
|
sarge
3/29/2017 7:41 PM
|
---|
C# Code: private Matrix4D CalculateTo2DTransform( C# Code: private void FitToScreen( |
Wout
3/29/2017 7:56 PM
|
---|
That code was not provided by us, I cannot recommend using the code above.
Please just explain what it is that you need functionally, not in terms of matrix values, because they obviously depend on your Control size and drawing, so it's useless in terms of finding your problem.
- Wout
|
sarge
3/29/2017 8:01 PM
|
---|
Ok,
I need to zoom in/out, pan with mouse and zoom to bound e.g. with double wheel click like its in many CAX System.
Btw. some simliar code/functionality is provided by you/rammi in some other posts.
Thanks so far
kind regards
|
Wout
3/29/2017 8:33 PM
|
---|
Try using SimpleTransformationProvider2D and then just call ResetTransforms() in the double click handler:
C# Code: private void ViewControl_DoubleClick( |
sarge
3/30/2017 4:56 AM
|
---|
Good morning,
that seems to work as wished. But what here the difference in 2D and 3D?
Thanks so far :)
kind regards
|
Wout
3/30/2017 7:51 AM
|
---|
I wrote this in my first reply to your question: The 3D has some margin around the drawing by default to allow for 3D rotation within the window.
It's better to create a new topic for your problem next time. Replying to a 6 year old post is confusing the matter more than it helps.
- Wout
|