Problem with Chart Position in OpenGl Mode

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
S-ON-S
Newbie
Newbie
Posts: 12
Joined: Tue Jun 07, 2005 4:00 am

Problem with Chart Position in OpenGl Mode

Post by S-ON-S » Thu Jan 19, 2012 2:44 pm

Hi there,

I use the TSurfaceSeries in OpenGl mode. I need the distance to the left axis and the distance to zero point from underneath (in px). I would like move and rotate the Chart.
The values ​​of ChartRect not change if i rotate or move.

I need the distance to calculate the corsor position in my Chart.

See the Image:
Image

Thanks in advance,

Dennis

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Problem with Chart Position in OpenGl Mode

Post by Yeray » Fri Jan 20, 2012 4:46 pm

Hi Dennis,

You could try doing something similar to the Calculate2DPosition call in the example here
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

S-ON-S
Newbie
Newbie
Posts: 12
Joined: Tue Jun 07, 2005 4:00 am

Re: Problem with Chart Position in OpenGl Mode

Post by S-ON-S » Mon Jan 23, 2012 7:37 am

Hi Yeray,

Thanks for the answer, but the problem is not resolved. The x-Position is isn't exact to 100%,
if i use normal mode with opengl and not orthogonal mode. And the y-Postion is wrong. I need the cursor position from the point of origin. I've uploaded an example program.

Thanks in advance,
Dennis
Attachments
Example3D.zip
(85.29 KiB) Downloaded 321 times

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Problem with Chart Position in OpenGl Mode

Post by Yeray » Mon Jan 23, 2012 4:13 pm

Hi Dennis,

Right, the CalcXPos, CalcYPos functions seem not to work perfectly in OpenGL. I've just realized it was already identified (TV52015408).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

S-ON-S
Newbie
Newbie
Posts: 12
Joined: Tue Jun 07, 2005 4:00 am

Re: Problem with Chart Position in OpenGl Mode

Post by S-ON-S » Tue Jan 24, 2012 7:21 am

Hi Yeray,

is there another possibility to calculate a cross cursor on the x,y,z Value, if I move over with the mouse?

Thanks in advance,
Dennis

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Problem with Chart Position in OpenGl Mode

Post by Yeray » Tue Jan 24, 2012 11:04 am

Hi Dennis,

I'm afraid I can't think on another way to do it right now. There is the TSurfaceNearestTool but it uses the Clicked function that at the same time uses the CalcXPosValue/CalcYPosValue function...
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply