[x3d-public] [...] set_Value prefix and value_changed suffix, potential v4 issue
Andreas Plesch
andreasplesch at gmail.com
Mon Apr 24 08:21:42 PDT 2017
Michalis,
thanks for clarifying. It prompted me to go back as well to test x3dom and
cobweb with inputoutput fields. I was also wrong as both cobweb and x3dom
do NOT require the "set_" prefix in this example:
http://www.web3d.org/x3d/content/examples/ConformanceNist/Sensors/TimeSensor/loopIndex.html
Note that the route specifies "translation", not "set_translation". But
"set_translation" is also accepted by both browser. I did not test _changed
but I assume it behaves the same way.
>From this limited sample, it then appears that the consensus is actually
the "may, but" interpretation of "can" (which was my initial expectation).
-Andreas
On Mon, Apr 24, 2017 at 10:06 AM, Michalis Kamburelis <
michalis.kambi at gmail.com> wrote:
> 2017-04-24 15:38 GMT+02:00 Andreas Plesch <andreasplesch at gmail.com>:
> > But these are input_only and output_only fields, not inputoutput fields.
> > Here is the spec. follows (satisfyingly) its own recommendation from
> 4.4.2.2
> > Field Semantics, items h) and j).
> >
>
> Reading the Andreas mail, I realized that my testing
>
> ROUTE MyTimeSensor.fraction TO MyPositionInterpolator.fraction
>
> vs
>
> ROUTE MyTimeSensor.fraction_changed TO MyPositionInterpolator.set_
> fraction
>
> was not very useful: there is no inputOutput called "fraction" here,
> so it's normal that the 1st form doesn't work.
>
> The correct testcase of the question "is set_/_changed required to
> refer to inputOutput fields as events" is to compare:
>
> ROUTE MyTimeSensor.isActive TO MyLight.on
>
> vs
>
> ROUTE MyTimeSensor.isActive TO MyLight.set_on
>
> Here, we test X3DLightNode.on (inputOutput field). A simple testcase
> using this is attached.
>
> Testing on my own view3dscene, we support both forms. So it looks like
> I was wrong (two times!):
>
> 1. "Me from the past" understood the specification to mean "the
> set_/_changed are *optional* if you want to refer to inputOutput field
> as event". Just like it is more sensible to Andreas.
>
> 2. "Me from the past" implemented view3dscene to make them optional.
>
> Sorry for the confusion:)
>
> Regards,
> Michalis
>
--
Andreas Plesch
39 Barbara Rd.
Waltham, MA 02453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170424/d2ca7524/attachment.html>
More information about the x3d-public
mailing list