Lines disappearing on grid [message #158307] |
Wed, 17 November 2004 13:11 |
Eclipse User |
|
|
|
Originally posted by: andreas.rummler.tu-ilmenau.de
Dear Newsgroup,
I've got quite a strange problem, where I'm helpless in where to search
for the mistake.
In one of my GEF editors a user may paint symbols for an electronic
circuit editor. These symbols consist of several geometric shapes.
The editor includes a layer which paints the grid, for drawing the
shapes RectangleFigure, Ellipse and so on are used. For drawing lines
the a Polyline figure is used. Everything works fine except for lines
which are situated exactly on the grid. On a 10/10 grid a line from
(10,10) to (50,50) is visible, but a line from (10,10) to (50,10) is
not (same for a line from (10,10) to (10,50)).
It seems, that the grid layer is on top of the layer which contains the
lines and a line "on the grid" becomes invisible. The grid works with
all other figures.
As I already said - I don't know where to search for the reason of this
kind of behaviour.
Best regards,
Andreas Rummler
--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++
+ Andreas Rummler +
+ Technical University of Ilmenau, Germany (__) +
+ Department Of Electronic Circuits & Systems (oo) +
+ \/-------\ +
+ MAIL: mailto:arummler@acm.org || | \ +
+ MAIL: mailto:andreas.rummler@tu-ilmenau.de ||----|| * +
+ WEB : http://www.inf-technik.tu-ilmenau.de/~rummler ~~ ~~ +
+ PGP : http://www.inf-technik.tu-ilmenau.de/~rummler/public.pgp +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots. So far, the universe is winning."
Richard Cook
|
|
|
Re: Lines disappearing on grid [message #158410 is a reply to message #158307] |
Thu, 18 November 2004 01:12 |
Pratik Shah Messages: 1077 Registered: July 2009 |
Senior Member |
|
|
Are you using XOR?
"Andreas Rummler" <andreas.rummler@tu-ilmenau.de> wrote in message
news:cnfimo$76m$1@www.eclipse.org...
>
> Dear Newsgroup,
>
> I've got quite a strange problem, where I'm helpless in where to search
> for the mistake.
>
> In one of my GEF editors a user may paint symbols for an electronic
> circuit editor. These symbols consist of several geometric shapes.
> The editor includes a layer which paints the grid, for drawing the
> shapes RectangleFigure, Ellipse and so on are used. For drawing lines
> the a Polyline figure is used. Everything works fine except for lines
> which are situated exactly on the grid. On a 10/10 grid a line from
> (10,10) to (50,50) is visible, but a line from (10,10) to (50,10) is
> not (same for a line from (10,10) to (10,50)).
>
> It seems, that the grid layer is on top of the layer which contains the
> lines and a line "on the grid" becomes invisible. The grid works with
> all other figures.
>
> As I already said - I don't know where to search for the reason of this
> kind of behaviour.
>
> Best regards,
>
> Andreas Rummler
>
>
> --
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++
> + Andreas Rummler +
> + Technical University of Ilmenau, Germany (__) +
> + Department Of Electronic Circuits & Systems (oo) +
> + \/-------\ +
> + MAIL: mailto:arummler@acm.org || | \ +
> + MAIL: mailto:andreas.rummler@tu-ilmenau.de ||----|| * +
> + WEB : http://www.inf-technik.tu-ilmenau.de/~rummler ~~ ~~ +
> + PGP : http://www.inf-technik.tu-ilmenau.de/~rummler/public.pgp +
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++
>
> "Programming today is a race between software engineers striving to
> build bigger and better idiot-proof programs and the universe trying
> to produce bigger and better idiots. So far, the universe is winning."
> Richard Cook
>
|
|
|
Re: Lines disappearing on grid [message #158433 is a reply to message #158410] |
Thu, 18 November 2004 08:27 |
Eclipse User |
|
|
|
Originally posted by: andreas.rummler.tu-ilmenau.de
Pratik Shah schrieb:
> Are you using XOR?
I've found the issue. The bounds of a Polyline from A to B are set to
the exact coordinates of the line. Expanding the Polyline by 1 unit
makes vertical and horizontal lines visible.
Best regards,
Andreas Rummler
--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++
+ Andreas Rummler +
+ Technical University of Ilmenau, Germany (__) +
+ Department Of Electronic Circuits & Systems (oo) +
+ \/-------\ +
+ MAIL: mailto:arummler@acm.org || | \ +
+ MAIL: mailto:andreas.rummler@tu-ilmenau.de ||----|| * +
+ WEB : http://www.inf-technik.tu-ilmenau.de/~rummler ~~ ~~ +
+ PGP : http://www.inf-technik.tu-ilmenau.de/~rummler/public.pgp +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots. So far, the universe is winning."
Richard Cook
|
|
|
Powered by
FUDForum. Page generated in 0.03340 seconds