translate Attribute stored in SVG Graphic
Hi,
this is my first posting to this forum and I hope I send my questions to the right email address ;-)
1. Why does Inkscape uses the path tag for circles instead of the existing circle tag?
2. When painting a circle in Inkscape and moving it the move is stored in the transform translate tag. Can anyone tell me why ? <<Bild (Geräteunabhängige Bitmap)>>
This has the effect that the circle is displayed in my application at the position where it is placed in Inkscape but when moving it the circle is first set to the previous position (without translation) and then moved from that position !
__________________ Jens Rottgardt Buildmanagement ITP Fahrzeugherstellung, K-SIB 2
Postadresse: Volkswagen AG Brieffach 1839 38436 Wolfsburg
Besucheradresse: Volkswagen AG Hermann-Münch-Straße 1 (MobileLife Campus) 38442 Wolfsburg
Telefon +49 -5361-896-3276
Telefax +49 (0) 5361-896-3296 mailto:jens.rottgardt@...2472... http://www.volkswagen.de
VOLKSWAGEN AG Sitz/Domicile: Wolfsburg Registergericht/Court of Registry: Amtsgericht Braunschweig HRB Nr./. Commercial Register No.: 100484 Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Ferdinand Piëch Vorstand/Board of Management: Martin Winterkorn (Vorsitzender/Chairman), Francisco J. Garcia Sanz, Jochem Heizmann, Horst Neumann, Hans Dieter Pötsch
Wichtiger Hinweis: Die vorgenannten Angaben werden jeder E-Mail automatisch hinzugefügt und lassen keine Rückschlüsse auf den Rechtscharakter der E-Mail zu. Important Notice: The above information is automatically added to this e-mail. This addition does not constitute a representation that the content of this e-mail is legally relevant and/or is intended to be legally binding upon VOLKSWAGEN AG.
__________________ Jens Rottgardt Buildmanagement ITP Fahrzeugherstellung, K-SIB 2
Postadresse: Volkswagen AG Brieffach 1839 38436 Wolfsburg
Besucheradresse: Volkswagen AG Hermann-Münch-Straße 1 (MobileLife Campus) 38442 Wolfsburg
Telefon +49 -5361-896-3276
Telefax +49 (0) 5361-896-3296 mailto:jens.rottgardt@...2472... http://www.volkswagen.de
VOLKSWAGEN AG Sitz/Domicile: Wolfsburg Registergericht/Court of Registry: Amtsgericht Braunschweig HRB Nr./. Commercial Register No.: 100484 Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Ferdinand Piëch Vorstand/Board of Management: Martin Winterkorn (Vorsitzender/Chairman), Francisco J. Garcia Sanz, Jochem Heizmann, Horst Neumann, Hans Dieter Pötsch
Wichtiger Hinweis: Die vorgenannten Angaben werden jeder E-Mail automatisch hinzugefügt und lassen keine Rückschlüsse auf den Rechtscharakter der E-Mail zu. Important Notice: The above information is automatically added to this e-mail. This addition does not constitute a representation that the content of this e-mail is legally relevant and/or is intended to be legally binding upon VOLKSWAGEN AG.
Von: Rottgardt, Jens (K-SIB-2/3) Gesendet: Mittwoch, 2. April 2008 13:39 An: 'inkscape-user@lists.sourceforge.net' Betreff: translate Attribute stored in SVG Graphic
Hi,
this is my first posting to this forum and I hope I send my questions to the right email address ;-)
Why does Inkscape uses the path tag for circles instead of the existing circle tag?
When painting a circle in Inkscape and moving it the move is stored in the transform translate tag. Can anyone tell me why ?
< OLE-Objekt: Bild (Geräteunabhängige Bitmap) >>
This has the effect that the circle is displayed in my application at the position where it is placed in Inkscape but when moving it the circle is first set to the previous position (without translation) and then moved from that position !
Jens Rottgardt Buildmanagement ITP Fahrzeugherstellung, K-SIB 2
Postadresse: Volkswagen AG Brieffach 1839 38436 Wolfsburg
Besucheradresse: Volkswagen AG Hermann-Münch-Straße 1 (MobileLife Campus) 38442 Wolfsburg
Telefon +49 -5361-896-3276 Telefax +49 (0) 5361-896-3296 mailto:jens.rottgardt@...2472... http://www.volkswagen.de
VOLKSWAGEN AG Sitz/Domicile: Wolfsburg Registergericht/Court of Registry: Amtsgericht Braunschweig HRB Nr./. Commercial Register No.: 100484 Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Ferdinand Piëch Vorstand/Board of Management: Martin Winterkorn (Vorsitzender/Chairman), Francisco J. Garcia Sanz, Jochem Heizmann, Horst Neumann, Hans Dieter Pötsch
Wichtiger Hinweis: Die vorgenannten Angaben werden jeder E-Mail automatisch hinzugefügt und lassen keine Rückschlüsse auf den Rechtscharakter der E-Mail zu. Important Notice: The above information is automatically added to this e-mail. This addition does not constitute a representation that the content of this e-mail is legally relevant and/or is intended to be legally binding upon VOLKSWAGEN AG.
On Wed, Apr 2, 2008 at 7:39 AM, Rottgardt, Jens (K-SIB-2/3) <jens.rottgardt@...2472...> wrote:
- Why does Inkscape uses the path tag for circles instead of the existing
circle tag?
Because otherwise you wouldn't be able to put markers on it, or use text on path with it, or use live path effects.
- When painting a circle in Inkscape and moving it the move is stored in
the transform translate tag. Can anyone tell me why ?
Because you cannot, in general, embed an arbitrary transform into the circle's parameters (center and radii). Actually a move only could be embedded into cx/cy, but since other transforms cannot, we didn't special-case translation (although this is possible, and is done e.g. for rectangles - so if you desperately need that, you can submit a patch).
Hi,
I don't know if I understood your answer to my 2nd question right. But when moving an object in Inkscape this move is nothing I want to store into the objects properties at least I want to place the circle to a special position. The problem is if I use the SVG graphic in my application I want to move the circle from left to right from the position where I have placed the circle in Inkscape. But what happens is that the circle first is moved to the very first position where I have placed the circle in Inkscape and then moved from that position.
In Inkscape
1) place the circle to position 50,50
2) move the circle to position 100, 100 (this move is stored in the transform translate (why???) )
3) save
In my application
1) The circle is placed to position 100,100
2) my appliction is moving the circle from left to right and the following steps happens a) the circle is placed back to position 50,50 b) the circle is moved from left to right
To avoid this I have manually to remove the transform translate attribute in Inkscape and set the cx, cy attributes to the position I want to place the circle.
To keep it short and simple. I want to have the same behaivor for placing a circle like for rectangles !
__________________ Jens Rottgardt Buildmanagement ITP Fahrzeugherstellung, K-SIB 2
Postadresse: Volkswagen AG Brieffach 1839 38436 Wolfsburg
Besucheradresse: Volkswagen AG Hermann-Münch-Straße 1 (MobileLife Campus) 38442 Wolfsburg
Telefon +49 -5361-896-3276
Telefax +49 (0) 5361-896-3296 mailto:jens.rottgardt@...2472... http://www.volkswagen.de
VOLKSWAGEN AG Sitz/Domicile: Wolfsburg Registergericht/Court of Registry: Amtsgericht Braunschweig HRB Nr./. Commercial Register No.: 100484 Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Ferdinand Piëch Vorstand/Board of Management: Martin Winterkorn (Vorsitzender/Chairman), Francisco J. Garcia Sanz, Jochem Heizmann, Horst Neumann, Hans Dieter Pötsch
Wichtiger Hinweis: Die vorgenannten Angaben werden jeder E-Mail automatisch hinzugefügt und lassen keine Rückschlüsse auf den Rechtscharakter der E-Mail zu. Important Notice: The above information is automatically added to this e-mail. This addition does not constitute a representation that the content of this e-mail is legally relevant and/or is intended to be legally binding upon VOLKSWAGEN AG.
-----Ursprüngliche Nachricht----- Von: inkscape-user-bounces@lists.sourceforge.net [mailto:inkscape-user-bounces@lists.sourceforge.net] Im Auftrag von bulia byak Gesendet: Mittwoch, 2. April 2008 20:33 An: Inkscape User Community Betreff: Re: [Inkscape-user] translate Attribute stored in SVG Graphic
On Wed, Apr 2, 2008 at 7:39 AM, Rottgardt, Jens (K-SIB-2/3) <jens.rottgardt@...2472...> wrote:
- Why does Inkscape uses the path tag for circles instead of the existing
circle tag?
Because otherwise you wouldn't be able to put markers on it, or use text on path with it, or use live path effects.
- When painting a circle in Inkscape and moving it the move is stored in
the transform translate tag. Can anyone tell me why ?
Because you cannot, in general, embed an arbitrary transform into the circle's parameters (center and radii). Actually a move only could be embedded into cx/cy, but since other transforms cannot, we didn't special-case translation (although this is possible, and is done e.g. for rectangles - so if you desperately need that, you can submit a patch).
bulia byak wrote:
- When painting a circle in Inkscape and moving it the move is stored in
the transform translate tag. Can anyone tell me why ?
Because you cannot, in general, embed an arbitrary transform into the circle's parameters (center and radii). Actually a move only could be embedded into cx/cy, but since other transforms cannot, we didn't special-case translation (although this is possible, and is done e.g. for rectangles - so if you desperately need that, you can submit a patch).
This is a slightly perplexing declaration; perhaps made clearer by saying that a circle is to inkscape a case of elliptic arc, and/or can be filled in a way that is not symmetric (with a linear gradient, for instance).
A symmetric circle or disk can obviously be rotated around an arbitrary center, or uniformly rescaled, by changing at most its center and radius.
Cheers, BB
On Thu, Apr 03, 2008 at 12:36:31PM +0200, Boris Borcic wrote:
bulia byak wrote:
Because you cannot, in general, embed an arbitrary transform into the circle's parameters (center and radii). Actually a move only could be embedded into cx/cy, but since other transforms cannot, we didn't special-case translation (although this is possible, and is done e.g. for rectangles - so if you desperately need that, you can submit a patch).
A symmetric circle or disk can obviously be rotated around an arbitrary center, or uniformly rescaled, by changing at most its center and radius.
But even a symmetric circle cannot be skewed by changing its centre and radius.
Daniel Hulme wrote:
On Thu, Apr 03, 2008 at 12:36:31PM +0200, Boris Borcic wrote:
bulia byak wrote:
Because you cannot, in general, embed an arbitrary transform into the circle's parameters (center and radii). Actually a move only could be embedded into cx/cy, but since other transforms cannot, we didn't special-case translation (although this is possible, and is done e.g. for rectangles - so if you desperately need that, you can submit a patch).
[...]
A symmetric circle or disk can obviously be rotated around an arbitrary center, or uniformly rescaled, by changing at most its center and radius.
But even a symmetric circle cannot be skewed by changing its centre and radius.
Ha ! True in general, but if we have two distinct vertical and horizontal radii to play with - as we do - there exists non-trivial exceptions :)
For instance, starting with a cx=cy=0 rx=ry=150 symmetric disk, I can apply a 45 degrees horizontal skew followed by a 36 degrees rotation, and this gives me the same result as a non uniform scaling by +33% in Width and -25% in Height, without rotation. (values are in inkscape transform dialog units).
Cheers, BB
On Thu, Apr 3, 2008 at 7:36 AM, Boris Borcic <bborcic@...155...> wrote:
This is a slightly perplexing declaration; perhaps made clearer by saying that a circle is to inkscape a case of elliptic arc,
Yes, arcs, segments, and ellipses are all the same type of object in Inkscape.
participants (4)
-
Boris Borcic
-
bulia byak
-
Daniel Hulme
-
Rottgardt, Jens (K-SIB-2/3)