Re: fast drawing in delphi



I see. I will try your idea...
It seems to be simply, tough...
The hexagons I use for making a neural network feature map (invented by
Teuvo Kohonen, in the early 70's)
In my work (as student), we have an incredible huge amount of data to
process. Each datum has 10 associated values.
Those values correspond to many 10-dimensional time-series. So, I put the
whole bunch of timeseries into a Kohonen map and see the
result in a Umatrix map. I developed a fast algorithm that identifies data
clusters in the Umatrix and then for visualization we need to redraw the
Umatrix and the 10 components into a 100x100 hexagons map.

"Andreas Koch" <nospam@xxxxxxxxxxxxxxx> a écrit dans le message de news:
do49sd$hvs$01$1@xxxxxxxxxxxxxxxxxxxx
> Maldona8 wrote:
>
>> does it mean that if I need to draw rectangles or circles
>> I have to write the whole bunch of drawing functions
>> like Circle(x1,y1,x2,y2) or rectangle(x1,y1,x2,y2) etc?
>
> Yes, it means you can't use the system drawing functions.
>
> I also suppose that you are trying some game map, e.g.
> you want to draw your 10.000 hexagons all at once, at
> fixed places.
> In that case, you don't need to write a hexagon(x,y)-drawing
> routine (you could if you wanted) but do it the other way
> round.
>
> Lets view a little map of only 3 hexagons, A, B and C
>
> ..AA......CC...
> .AAAA....CCCC..
> AAAAAABBCCCCCC.
> .AAAABBBBCCCC..
> ..AABBBBBBCC...
> .....BBBB......
> ......BB.......
>
> You know, hexagon A should be red, B blue and C green.
> So you paint line by line
>
> y=0
> x=0 background
> x=1 background
> x=2 oh, this is hex a, so red
> x=3 still red
> x=4 background
> ....
>
> y=
> x=0 background
> x=1 oh, this is hex a, so red
> x=2 red
> x=3 red
> x=4 red
> x=5 background
> ...
> etc
>
> If an pixel at x,y is inside a hexagon can be (more or
> less) simply calculated if you know the hexagons position
> and size.
>
>


.



Relevant Pages

  • Re: fast drawing in delphi
    ... >I have a hexagonal grid of 100x100 hexagons, ... >I need to draw this map in a very very fast way, ...
    (comp.lang.pascal.delphi.misc)
  • Re: fast drawing in delphi
    ... I have a hexagonal grid of 100x100 hexagons, each hexagon having its own color. ... I need to draw this map in a very very fast way, ...
    (comp.lang.pascal.delphi.misc)
  • Re: Hex "generalizations"
    ... Are these the rules of Hex? ... hexagons to a side. ... The first player puts a red ... of red tokens links the two red sides, or a chain of blue tokens links ...
    (rec.games.abstract)
  • Re: fast drawing in delphi
    ... I have to write the whole bunch of drawing functions like Circleor rectangleetc? ... I also suppose that you are trying some game map, ... less) simply calculated if you know the hexagons position ...
    (comp.lang.pascal.delphi.misc)