@Troels wrote:
Hi.
It is possible to add new views to the doc like this:RhinoView view = doc.Views.Add("new view", DefinedViewportProjection.Perspective, new System.Drawing.Rectangle(new System.Drawing.Point(0,0), new System.Drawing.Size(300, 300)), true);
This new RhinoView allows for the same interactions as the 4 views normally present in Rhino at startup - rotation, translation and zoom and selecting/moving geometry.
I realize that this may be a bit of a stretch, but I am wondering if it is possible to open a separate WPF window from a Rhino plugin and then add the RhinoView as a child to the window. The visual result being, that you have a separate window on top of Rhino with some UI controls and a RhinoView, which allows for the same interactions as the views at startup.
So far, all I have been able to achieve in that direction isBitmap bitmap = view.CaptureToBitmap();
Then I add the bitmap to a WPF window. In this solution the bitmap isn’t of course interactive at all as you’re dealing with a screen dump.
Posts: 2
Participants: 2