Hi all,<br><br>I'm reading the X3D specification and bit confused in the Viewport part.<br><pre class="node">Viewport : X3DGroupingNode, X3DBoundedObject {<br> MFNode [in] addChildren [X3DChildNode]<br>
MFNode [in] removeChildren [X3DChildNode]<br> MFNode [in,out] children [] [X3DChildNode]<br> MFFloat [in,out] clipBoundary 0 1 0 1 [0,1]<br> SFNode [in,out] metadata NULL [X3DMetadataObject]<br>
SFVec3f [] bboxCenter 0 0 0 (-∞,∞)<br> SFVec3f [] bboxSize -1 -1 -1 (0,∞) or -1 -1 -1<br>}<br></pre>As you can see there Viewport is inheretied from both X3DGroupingNode and X3DBoundedObject. However, X3DGroupingNode is already a sub class of X3DBoundedObject.<br>
<br><pre class="node">X3DGroupingNode : X3DChildNode, X3DBoundedObject { <br> MFNode [in] addChildren [X3DChildNode]<br> MFNode [in] removeChildren [X3DChildNode]<br> MFNode [in,out] children [] [X3DChildNode]<br>
SFNode [in,out] metadata NULL [X3DMetadataObject]<br> SFVec3f [] bboxCenter 0 0 0 (-∞,∞)<br> SFVec3f [] bboxSize -1 -1 -1 [0,∞) or −1 −1 −1<br>}<br></pre><br>I believe this means the Viewport node shouldn't have included X3DBoundedObject as a super class in the specification since it is already inherited by X3DGroupingNode which is a super class of Viewport.<br>
<br>If my understanding is wrong, please correct me. Thank you very much.<br><br>Regards,<br>Alexander Dong Back Kim<br><br>