We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › Accessing inherited methods in SVG class
Page Index Toggle Pages: 1
Accessing inherited methods in SVG class (Read 738 times)
Accessing inherited methods in SVG class
Mar 17th, 2010, 2:32pm
 
According to the Processing developer's reference (which the bbs won't let me post a link to, unfortunately) the SVG class inherits the getWidth() and getHeight() methods from the parent class PShape. But when I try to call these methods from an SVG object, I get error The function getWidth() does not exist. Appreciate anyone who can point out what I'm doing wrong.

Thanks,

Patrick
Re: Accessing inherited methods in SVG class
Reply #1 - Mar 18th, 2010, 1:41am
 
By "SVG class", I suppose you mean PShapeSVG.
It should work. Perhaps you should show a simple sketch illustrating your problem.
Page Index Toggle Pages: 1