I am working on an application which draws maps on a screen. This is done
with using sets of x,y coordinates which are made into polygons and then
drawn in a paintComponent. The user now wants to add elevation (a "z"
component). The question at hand is how to quickly index into a data
structure to find an elevation point based on the mouse location (x,y) of
the screen. Currently, polygon.contains(x,y) is used. I was hoping that
someone might either relate how they might have done something similar or a
pointer to reference. Thanks - Lou
The z component is associated with every polygon, or with every vertex
or what?
mapping question ... I am working on an application which draws maps on a screen. ... This is done with using sets of x,y coordinates which are made into polygons and then drawn in a paintComponent. ... The question at hand is how to quickly index into a data structure to find an elevation point based on the mouse location of the screen. ... Although not exactly a GUI question I was hoping that someone might either relate how they might have done something similar or a pointer to reference. ... (comp.lang.java.gui)
Re: DEM-like maps using TYP customisation (GARMIN) ...Greg proposes to convert existing elevation polylines into elevation ... In this case all higher polygons would overlap ... (sci.geo.satellite-nav)
map algorithm question ... I am working on an application which draws maps on a screen. ... This is done with using sets of x,y coordinates which are made into polygons and then drawn in a paintComponent. ... The question at hand is how to quickly index into a data structure to find an elevation point based on the mouse location of the screen. ... I was hoping that someone might either relate how they might have done something similar or a pointer to reference.... (comp.lang.java)
map algorithm question ... I am working on an application which draws maps on a screen. ... This is done with using sets of x,y coordinates which are made into polygons and then drawn in a paintComponent. ... The question at hand is how to quickly index into a data structure to find an elevation point based on the mouse location of the screen. ... (comp.lang.java.programmer)
Re: Drawing two overlapping lines in different colors ... I currently can lasso select points and polygons in my OpenGL ... widget, whoopee!... What I do is change the color that the GL_LINE_LOOP is drawn to create the ... Use glPolygonOffset to draw it slightly closer than the other one. ... (comp.graphics.api.opengl)