[x3d-public] X3DJSAIL: Desired chaining methods. Modify return value or provide new method.

Don Brutzman brutzman at nps.edu
Sat Mar 11 18:16:33 PST 2017


your chaining outputs are looking good!  8)

netbeans debug is a little trickier when fully nested like that, am getting used to it.  interesting.

your suggesion below makes good sense, will look at generalizing it as a general rule in next session.  will apply wherever it doesn't interfere with existing SAI interfaces.

just added some exceptions to report when file name null/empty for the toFile* methods.

request for you to consider: perhaps when generating it is not much work to generate an finishing line like

	.toFileJSON("PixelTextureInterpolatorPrototype.json");

instead of

	.toFileJSON(arg[0]);

that will reduce # text edits needed to perform testing.

uploading a new build now, should take about an hour.

On 3/10/2017 1:14 PM, yottzumm at gmail.com wrote:
> Maybe all these methods of HAnimHumanoiObject should return an HAnimHumanoidObject for chaining:
>
>         public void addJoints(HAnimJoint newValue)
>
>         public void addJoints(X3DNode[] newValue)
>
>         public void addSegments(HAnimSegment newValue)
>
>         public void addSegments(X3DNode[] newValue)
>
>         public void addSites(HAnimSite newValue)
>
>         public void addSites(X3DNode[] newValue)
>
>        public void addSkeleton(X3DNode newValue)
>
>         public void addSkeleton(X3DNode[] newValue)
>
>         public void addSkin(X3DChildNode newValue)
>
>         public void addSkin(X3DNode[] newValue)
>
>         public void addViewpoints(HAnimSite newValue)
>
>         public void addViewpoints(X3DNode[] newValue)
>
> John

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



More information about the x3d-public mailing list