Page 1 of 1

Screen To Image

Posted: 11 Jan 2008, 12:16
by aby
Hi,

Dxfimage::TsgDXFImage *FImg;

You are converting an Image Point by using FImg->GetPoint(Point) to Drawing Coordinates. What I need is the other way around. How can I get the Image Coordinates from a given Drawing Point.

Thanks

Aby

Posted: 11 Jan 2008, 15:36
by support
Hello Aby,

Function TsgDXFImage.GetPoint - transforms point in three-dimensional coordinate system into point in two-dimensional coordinate system, i.e. CAD point to screen point.

Function TsgDrawingNavigator.GetDrawingCoords - transforms drawing's point respectively to the controls' coordinates.

Sergey.

Please post questions to the forum or write to support@cadsofttools.com

Posted: 14 Jan 2008, 11:17
by aby
Hi Sergey,

I'm trying to convert and modify the Editor example according to my taste. There is no TsgDrawingNavigator object in this example.
The following has been taken from your help file.
"Component TsgDrawingNavigator is intended for displaying files of various graphic format. It descends from TsgCustomControl."

Why don't you define this object in this example, which object is displaying this file, when and how am I going to instantinate this class (in C++).

Can I suggest something for the user communities. Why don't you document this informations on Wikipedia. It will be marvellous if every body can document their experiences. [:)]

Aby

Posted: 14 Jan 2008, 12:39
by aby
Hi Sergey,

TsgDrawingNavigator replaces the TsgImage class. There is an abugity in defining this object since there isn't the design time package. There is only one component named sgImage. There must be another design time package which must install the TsgDrawingNavigator.

Thanks

Aby

Posted: 14 Jan 2008, 14:49
by support
Hi Aby,

Please download the following package: http://www.cadsofttools.com/download/Template_BCB.zip
It contains a demo how to use TsgDrawingNavigator in C++ Builder.

Sergey.


Please post questions to the forum or write to support@cadsofttools.com