Draw nodes according to (X,Y) coordinates? Zest - eclipse

Can anybody help me please?
I should create a graph to display the nodes positions using eclipse. The positions are given as (X,Y) coordinates. Is this possible to do using Zest?
Or can you recommend other tool? (Note that I'm using eclipse RCP for other parts of the user interface)
Thank you in advance

If you already have the (X,Y) coordinates, Zest would not help you a lot, as it is centered around the concept of automatic layouting which does not work well with existing coordinates (however, it is possible to write a domain-specific layout algorithm that works with this input).
My opinion is that if supporting dragging of nodes (and possibly zooming) is a requirement, go and use Zest, in the end it will help you a lot. However, if you only need to draw a static graph without complex user interaction, I suggest drawing it by hand using either an SWT Canvas or Draw2d.

Related

Does Leaflet have a "geopositioning mode"?

I use the Leaflet plug-in "Leaflet.ImageOverlay.Rotated.js" to use its L.imageOverlay.rotated(...) thing in order to overlay certain map pieces in various places on top of the normal map.
It does this by taking an image and having me tell it its top-left, top-right and bottom-left coordinates to figure out how to rotate, tilt and stretch/squeeze it properly.
It took me a very long time to figure these coordinates out by hand. For this reason, I'm looking for some sort of "geopositioning mode", perhaps enabled by this extension, which would simply let me click three times on the map to tell it where these points go. That would be so simple for the developers to do and would help so much. It's such an obvious thing to do that I strongly suspect it's already implemented and ready.
Is there such a "mode"? If not, how am I expected to find the positions without spending so much time and trial-and-error as I did for the first overlay map image?
Added: I should also clarify that the image should be shown in this mode so that you can re-adjust the points and watch in real time as the image bends/warps, to get it just right.
you can develop a modul for this problem.
find minimum 4 point on raster map.
click on tilemap for 4 points
than find different slope and distance same 2 points.
maybe you must rotate and use affine transformation.

percent graphical representation as circle

im planning to do a percentage visualisation using a circle, and am currently trying to figure out what framework / technique to use.
i have used corePlot for graphs so far and have been wondering if it might be an option
my ideas are so far:
1: use a Core Plot piechart and add a covering circle layer in the middle
2: try to use quartz 2d to do it somehow
attached is a mockup how it should look like so you get an idea:
what do you think might be the best approach here? id like avoid using cover-up subviews and such..
is there any simple solution i might be missing?
thanks in advance
sebastian
(PS: i do not hope for any code here, just a general fingerpoint to the right direction)
As more of an alternative than an actual straightforward CorePlot answer, you could display your percentage in a customized version of the UICircularProgressView control which I can personally vouch for.

Simple form with pixel manipulation in Qt

I'm completely newbie to Qt
i want to create a 800X600 window that just show some circle and be able to manipulate pixels of the form. there is no interaction between user and form(no click, no dblclick,...) it just shows some circles with one color and lines with different pixel colors(each line may have different pixel colors)
also i want to be able to change the coordination system, i mean change it from top-left to the center of the window. could anyone help me do that with some sample code?
thanks in advance for your reply.
Please try downloading the Qt Creator (IDE), then reading through the tutorials. There's a whole host of very useful information provided for free, including a lot of the code samples you are looking for.
The following examples might also be of particular interest:
Animation Framework Examples
Graphics View Examples
Painting Examples

iPhone: GPS on custom map + CATiledLayer

Really hope someone can help me as I'm a bit stuck :S
I have a custom map of an event using the CATiledLayer so users can zoom in and scroll around the map. What I would like to do now is add the functionality to let the user know where they currently are on the map. I know it can be done as I've seen an app do this before. I'm not sure how to go about doing it though, maybe I need to convert lat/lon into pixels but I'm not sure if thats possible (depending on how big the image is, etc).
On another site it was mentioned to find out the boundaries of the map and then I can add pins to the map, but I'm not sure how to go about doing this? Will I need to find every coordinate (lat/lon) within the boundary so I can add the pin of where the user is currently?
If anyone can give me with any advice or pointers, I'd much appreciate it
You can use the route-me library by adding your own map source class. A good article that explains how to do it is here http://mobilegeo.wordpress.com/2010/07/07/route-me-native-iphone-mapping-framework/
I'm facing a challenge right now in trying to map GPS coords to a map that's an artist's rendition. In particular this is for a ski mountain, so the artist's rendition is a "trail map". The trail map is not accurate in that the whole mountain has been squeezed onto the one view, yet the actual topology of the mountain doesn't conform to the drawing.
I've tried several approaches:
1) Triangulation using known GPS coordinates of the lift stations. This is fairly simple to implement, yet this is not accurate enough and the algorithm fails if the rendition differs enough from the GPS map.
2) Creating a uniform grid for both the GPS map and the Trailmap, then doing a mapping from cells in the GPS map to the Trailmap. The downside to this is it can be a lot of busy work with no easy UI for doing it.
3) Calculating the vectors of each lift (being a straight line), find the closet lift station to a given GPS point, and calculate the estimated Trailmap location using this vector.
I'm considering #2, which is essentially the simplest solution. But if you've found a better way, I'd love to hear it.

How to draw points,lines and get coordinates in canvas in PLT scheme?

I am newbie in PLT scheme (using DrScheme). So, this question may be annoying to many developers.
I want to draw points in every click (mouse event) in a canvas and get the coordinate of that point. Also I want to draw a line from the last point to the last mouse event point.
As per documentation, they suggested to use world.ss (instead of draw.ss) from teachpack. But I am not getting it how to do that.
Now how will I do that? Any suggestion or hints are appreciated.
Thanks in advance.
If you're interested in writing such programs, and especially if you're new to Scheme, then have a look at the new How to Design Worlds book.