coin3d / coin

Coin3D core library
BSD 3-Clause "New" or "Revised" License
271 stars 105 forks source link

Coin3D can not be scaled to any size #51

Closed VolkerEnderlein closed 10 years ago

VolkerEnderlein commented 10 years ago

Original report by zcmacbeth (Bitbucket: zcmacbeth, GitHub: zcmacbeth).


Hello,I embed Coin3D's examiner viewer in a MFC control and want to realize the function that the size of examiner viewer changes with the size of the MFC control changing. But it seems that the minimum size of Coin3D's examiner viewer is 500x421 regardless of how small the size of the MFC control. How to fix it? Thanks

VolkerEnderlein commented 10 years ago

Original comment by Roy Walmsley (Bitbucket: walroy, GitHub: walroy).


Sorry, only more questions, not answers.

Do you only use the examiner viewer? If you have other viewers do they show the same problem? Why do you think it might be 421 high - this seems a strange number? However, what about the decorations - are they occupying the minimum size? When you reduce the size is it simply the inner client window that reduces? Presumably you have scroll bars enabled?

I don't use Coin's inbuilt examiner viewer. I use a more advanced version of my own so can't check directly.

Roy

VolkerEnderlein commented 10 years ago

Original comment by zcmacbeth (Bitbucket: zcmacbeth, GitHub: zcmacbeth).


Thank you very much for you answer. i checked the Coin3D's header files for a whole day, and finally i found that i could use the function "setSize()" in the SoWinComponent.h to scale the examiner viewer to any size in the MFC's dialoge program. i want to ask another question, what tool you use to display the scene since you don't use Coin's inbuilt examiner viewer? Best regards.

2014-04-25

chengzhust

VolkerEnderlein commented 10 years ago

Original comment by Roy Walmsley (Bitbucket: walroy, GitHub: walroy).


Glad you managed to solve the original problem. If you have no objections I will close this issue.

With respect to my own software I have my own extended version of SoWin. This includes Examiner, Walk, Fly and Plane viewers. My SoWin, and Coin (along with various other libraries) are all incorporated into my own viewer. This was designed by me while working for my employers and enabled the viewing of 3D models in not only the visible but also the infrared wavebands (with suitable extensions to the Coin nodes).

Roy

VolkerEnderlein commented 10 years ago

Original comment by Roy Walmsley (Bitbucket: walroy, GitHub: walroy).


See comments above