Jump to content

Sign in to follow this  
taguilo

XML <Arc> syntax

Recommended Posts

Hi,From the gps.dll:...Pie Arc Ellipse Circle Polygon Polyline Rectangle HorizontalLine VerticalLine ....The tric is to find the parameters like x=, radius, relclip etc.X="260" Y="130" CenterX="130" CenterY="150" Radius="150" etc.I tried, but didn't succeed yet.Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

Jan,Yes, from gps.dll as you said.I've tried the second option only, testing and testing but, like you, with no succeed so far.Actually I was thinking to use it as a way to draw the "turn arc" between two waypoints in my 757 ND, when setting the 10 nm zoom factor. Guess I'll need to go for another "trick"...Tom

Share this post


Link to post
Share on other sites

>Yes, from gps.dll as you said.>Actually I was thinking to use it as a way to draw the "turn>arc" between two waypoints in my 757 ND, when setting the 10>nm zoom factor. Guess I'll need to go for another "trick"...The "problem" is that the stuff from the gps.dll is "hard coded C++ GDI drawing code" that simply allows you to issue a request, and then it hands you back a completely drawn image and says 'here you are, show this...' ;)Have you tried using the "Circle?"........Perhaps something like that with a "Clip" might work?

Share this post


Link to post
Share on other sites

I've tried the circle, works fine except that I couldn't deal with .I'm not sure, but maybe "clipping" a circle with a rectangle in ND background color drawn on bottom could work...Tom

Share this post


Link to post
Share on other sites

Jan,That looks great!However, you can those circles because they are set in a fixed position. In my case, waypoint's connecting lines are dynamic calculated to fit within the ND display.Tom

Share this post


Link to post
Share on other sites
Guest Eugen

HiI looked in my GPS.DLL with notepad and I could not find any arc?Do you use any specific tool to decompile the dll ?BrgdsEugen

Share this post


Link to post
Share on other sites
Guest Eugen

Hi,Just found a shareware tool called PE Explorer which I used for GPS.DLL.I found out the the following function Arc(hDC: HDC; left, top, right, bottom, startX, startY, endX, endY: Integer): BOOL; stdcall; external 'gdi32.dll' name 'Arc' index 12; BrgdsEugen

Share this post


Link to post
Share on other sites

That's just bog-standard GDI drawing code. Nearly all of the "real work" of the default GPS is "blackboxed C, C++ & GDI code."

Share this post


Link to post
Share on other sites

Tom,I see.In what directions does that circle have to move, shift?Does it stay in contact with the "centerline"?I think no problem to shift the circle in any direction;You could use polygons or recrangles to move over the circle to hide some parts.Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

Jan,Every poly must start at coord 0,0 relative to the the aircraft symbol's vertex. From then it has to be shifted and rotated following proper trigonometric functions. Using a poly/rectangle to partially hide a circle is an option that works for sure; it's just I thought that might save some code and would be more "clean" to program.Tom

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...