Page 1 of 1

Problem with Chart Position in OpenGl Mode

Posted: Thu Jan 19, 2012 2:44 pm
by 9342094
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

Re: Problem with Chart Position in OpenGl Mode

Posted: Fri Jan 20, 2012 4:46 pm
by yeray
Hi Dennis,

You could try doing something similar to the Calculate2DPosition call in the example here

Re: Problem with Chart Position in OpenGl Mode

Posted: Mon Jan 23, 2012 7:37 am
by 9342094
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

Re: Problem with Chart Position in OpenGl Mode

Posted: Mon Jan 23, 2012 4:13 pm
by yeray
Hi Dennis,

Right, the CalcXPos, CalcYPos functions seem not to work perfectly in OpenGL. I've just realized it was already identified (TV52015408).

Re: Problem with Chart Position in OpenGl Mode

Posted: Tue Jan 24, 2012 7:21 am
by 9342094
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

Re: Problem with Chart Position in OpenGl Mode

Posted: Tue Jan 24, 2012 11:04 am
by yeray
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...