Page 1 of 1

Are there any 2d free rotation tools?

Posted: Mon Apr 29, 2019 6:00 pm
by 15682448
I'm able to rotate about the origin 90 degrees at a time easily enough. Are there any tools to allow free rotation around some origin? I'm not finding anything!

Or, if I use a 3d graph but constrain it to 2d will this allow free rotation?

thx

Re: Are there any 2d free rotation tools?

Posted: Tue Apr 30, 2019 6:44 am
by Christopher
Hello,

have you found the Rotate tool? There's an example of it in the Feature Demo you can download from GitHub here:

TeeChartNetExamples_2019-04-30_08-33-10.png
TeeChartNetExamples_2019-04-30_08-33-10.png (205.34 KiB) Viewed 15702 times

Re: Are there any 2d free rotation tools?

Posted: Tue Apr 30, 2019 7:45 pm
by 15682448
OK... Like that, perhaps. There are some unfortunate zoom effects in the demo - if I grab to rotate it always also zooms in or out. Have hints on how to still have zoom and also have rotate?

Re: Are there any 2d free rotation tools?

Posted: Tue Apr 30, 2019 8:12 pm
by 15682448
Well, no. I don't think this does what i'd like. It allows rotation around axes that I don't care about. I'd like an x/y plane and I'd like to be able to do free rotation around an arbitrary point like, oh, the origin.

Re: Are there any 2d free rotation tools?

Posted: Wed May 01, 2019 2:27 pm
by 15682448
But given what you already have it should be trivial for you to make it do what I want :wink: :!: :!: :!:

Re: Are there any 2d free rotation tools?

Posted: Thu May 02, 2019 9:33 am
by Christopher
dx0ddyu wrote:
Wed May 01, 2019 2:27 pm
But given what you already have it should be trivial for you to make it do what I want :wink: :!: :!: :!:
Of course! :D But seriously, if you'd like us to give you a quote for the work, do please write to sales@steema.com and we'd be happy to give you one.

It is not trivial getting GDI+ to behave like native 3D canvases (OpenGL, Direct3D etc.), which leaves you with only the Rotate Tool to work with as things are.