<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Hi Doug,</div><div><br></div><div>good questions.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Date: Mon, 10 Oct 2016 12:53:22 +0000<br>
From: doug sanden <<a href="mailto:highaspirations@hotmail.com">highaspirations@hotmail.com</a>><br>
To: X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>><br>
Subject: Re: [x3d-public] cobweb DOM integration<br><br>
if added to SAI SFNode interface, then it might need a parameter: sfnode.getContainerField(<wbr>parent) since some nodetypes have multiple containerfield targets by fieldname, but usually (Q1. always?) just one  field for a given parent nodetype.<br></blockquote><div><br></div><div>I had the same suspicion and you confirmed that there are nodetypes which have multiple containerfield targets. It may be useful to put together a list of these starting with some examples. Do any come to mind ? I believe cobweb does not accept a parent parameter to the .getContainerField() method, but I may be wrong.</div><div><br></div><div>I seem to remember that there are cases where it is necessary to provide an explicit containerField attribute. Not sure what these are, but the fact that there is a containerField attribute indicates that it is sometimes required.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Q2. in an ExternProto scenario, before extern proto is loaded, and no concrete node as first node of protobody, how to determine via a function what is the containerfield its instances should target their parents? Can we put a field 'containerField' or MFString containerFields? Does cobeweb delay instancing extern protos until the extern is loaded and concretized before allowing getContainerField?<br></blockquote><div><br></div><div>I did not explore ExternProtos in cobweb sofar, so I do not have answers, But I also suspect that a containerField field can be used. Not sure when instancing occurs but I would also expect after completion of the async, loading of the externproto.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Q3. terminology: does 'container' part of containerfield refer to the parent ie parent is container or does it refer to the field ie a field is a container?<br></blockquote><div><br></div><div>I thought 'container' refers to the parent node and 'field' refers to field of the parent. So one would say the 'containerfield field'. But I am not sure if containerfield is a field or just a xml attribute which acts as a helper.</div><div><br></div><div>-Andreas</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
______________________________<wbr>__________<br>
From: x3d-public <<a href="mailto:x3d-public-bounces@web3d.org">x3d-public-bounces@web3d.org</a>> on behalf of Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>><br>
Sent: October 9, 2016 9:00 PM<br>
To: X3D Graphics public mailing list<br>
Subject: Re: [x3d-public] cobweb DOM integration<br>
<br>
On Sun, Oct 9, 2016 at 10:35 PM, Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a><<wbr>mailto:<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a><wbr>>> wrote:<br>
...<br>
What are other strategies for determining the field in a container node which should (most likely) be set given just the identity of a new node and its containing (parent) node ?<br>
<br>
<br>
Some more investigating brought to light that cobweb.js already has a node.getContainerField() method which seems to be exactly what I was looking for. Excellent.<br>
<br>
The SAI does not have such a function:<br>
<br>
<a href="http://www.web3d.org/documents/specifications/19777-1/V3.3/Part1/functions.html#t-SFNodeFunctions" rel="noreferrer" target="_blank">http://www.web3d.org/<wbr>documents/specifications/<wbr>19777-1/V3.3/Part1/functions.<wbr>html#t-SFNodeFunctions</a><br>
<br>
Should it be added to the spec. ?<br>
<br>
--<br>
Andreas Plesch<br>
39 Barbara Rd.<br>
Waltham, MA 02453<br>
<br>
<br>
<br>
--<br>
Andreas Plesch<br>
39 Barbara Rd.<br>
Waltham, MA 02453<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
x3d-public mailing list<br>
<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/<wbr>listinfo/x3d-public_web3d.org</a><br>
<br>
<br>
------------------------------<br>
<br>
End of x3d-public Digest, Vol 91, Issue 16<br>
******************************<wbr>************<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Andreas Plesch<br>39 Barbara Rd.<br>Waltham, MA 02453</div>
</div></div>