[x3d-public] python pyjnius mapping

John Carlson yottzumm at gmail.com
Mon May 13 04:13:16 PDT 2019


I see.  Great!  It’s like breaking the contract on purpose, but letting people know you did it.

I understand now.  Just took a few nights sleep.  I’m catching up!  I’m usually 5 years behind state of research :😉

One think I did was verify all class names, abstract class names and interfaces had unique names.

We could also tack Object back on the jsail names, if necessary.

Cool.

John

Sent from Mail for Windows 10

From: Brutzman, Donald (Don) (CIV)
Sent: Sunday, May 12, 2019 2:23 PM
To: John Carlson
Cc: X3D Graphics public mailing list
Subject: Re: python pyjnius mapping

agreed it is confusing... reflection can be very tricky.

good observation that we should look hard at what setDEF() returns.

	.addChild(Viewpoint().setDEF("ViewUpClose").setCenterOfRotation(0,-1,0).setDescription("Hello world!").setPosition(0,-1,7))
	AttributeError: 'org.web3d.x3d.sai.Navigation.X3DViewpointNode' object has no attribute 'setCenterOfRotation'

from ViewpointObject, the method is explicitly declared/customized to Override the parent abstract class.

	@Override
	public final ViewpointObject setDEF(String newValue)

also available

	public ViewpointObject setCenterOfRotation(double x, double y, double z)
	public ViewpointObject setCenterOfRotation(float x, float y, float z)

	@Override
	public ViewpointObject setCenterOfRotation(float[] newValue)

yes still confusing.  i think we need to throughly review logic in your classes first before making a conclusive claim against pyjnius...  make sure it always looks at classes, not abstract superclasses.

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190513/54c4772d/attachment.html>


More information about the x3d-public mailing list