Screen To Image

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
aby
Posts: 81
Joined: 21 May 2007, 13:02
Location: Turkey

Screen To Image

Post by aby » 11 Jan 2008, 12:16

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

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Post by support » 11 Jan 2008, 15:36

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

aby
Posts: 81
Joined: 21 May 2007, 13:02
Location: Turkey

Post by aby » 14 Jan 2008, 11:17

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

aby
Posts: 81
Joined: 21 May 2007, 13:02
Location: Turkey

Post by aby » 14 Jan 2008, 12:39

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

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Post by support » 14 Jan 2008, 14:49

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

Post Reply