[X3D-Public] Question about Viewport node

Richard F. Puk puk at igraphics.com
Sat Sep 5 11:33:09 PDT 2009


Hi --

Sounds worth reporting as a spec comment. Please do so.

  -- Dick

/******************************************
| Richard F. Puk, Ph.D., President
| Intelligraphics Incorporated
| 7644 Cortina Court, Carlsbad, CA  92009-8206
| Tel:  +1-760-753-9027   Cell:  +1-760-809-9027
| E-mail:  puk at igraphics.com
| Web:  http://www.igraphics.com/
\******************************************



> -----Original Message-----
> From: x3d-public-bounces at web3d.org [mailto:x3d-public-
> bounces at web3d.org] On Behalf Of Joe D Williams
> Sent: Saturday, September 05, 2009 8:39 AM
> To: alexdbkim at gmail.com; x3d-public at web3d.org
> Subject: Re: [X3D-Public] Question about Viewport node
> 
> 
> ----- Original Message -----
> From: "Alexander Dong Back Kim" <alexdbkim at gmail.com>
> To: <x3d-public at web3d.org>
> Sent: Friday, September 04, 2009 8:38 PM
> Subject: [X3D-Public] Question about Viewport node
> 
> 
> Hi all,
> 
> I'm reading the X3D specification and bit confused in the Viewport
> part.
> 
> Viewport : X3DGroupingNode, X3DBoundedObject {
>   MFNode  [in]     addChildren             [X3DChildNode]
>   MFNode  [in]     removeChildren          [X3DChildNode]
>   MFNode  [in,out] children       []       [X3DChildNode]
>   MFFloat [in,out] clipBoundary   0 1 0 1  [0,1]
>   SFNode  [in,out] metadata       NULL     [X3DMetadataObject]
>   SFVec3f []       bboxCenter     0 0 0    (-∞,∞)
>   SFVec3f []       bboxSize       -1 -1 -1 (0,∞) or -1 -1 -1
> }
> 
> As you can see there Viewport is inheretied from both X3DGroupingNode
> and
> X3DBoundedObject. However, X3DGroupingNode is already a sub class of
> X3DBoundedObject.
> 
> X3DGroupingNode : X3DChildNode, X3DBoundedObject {
>   MFNode  [in]     addChildren             [X3DChildNode]
>   MFNode  [in]     removeChildren          [X3DChildNode]
>   MFNode  [in,out] children       []       [X3DChildNode]
>   SFNode  [in,out] metadata       NULL     [X3DMetadataObject]
>   SFVec3f []       bboxCenter     0 0 0    (-∞,∞)
>   SFVec3f []       bboxSize       -1 -1 -1 [0,∞) or −1 −1 −1
> }
> 
> 
> 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.
> 
> If my understanding is wrong, please correct me. Thank you very much.
> 
> Regards,
> Alexander Dong Back Kim
> 
> 
> 
> Hi Alexander,
> Good thinking on this. Also looking at:
> 
> 
> http://www.web3d.org/x3d/specifications/ISO-IEC-19775-1.2-X3D-
> AbstractSpecification/Part01/concepts.html#f-Objecthierarchy
> 
> 
> Figure 4.2 —
> 
>   +- X3DGroupingNode (X3DBoundedObject)* -+- X3DViewportNode -+-
> Viewport
> 
> which I think is correct. So
> 
> Viewport : X3DViewportNode {
>   MFNode     [in]     addChildren                [X3DChildNode]
>   MFNode     [in]     removeChildren             [X3DChildNode]
>   MFNode     [in,out] children       []          [X3DChildNode]
>   MFFloat    [in,out] clipBoundary   0 100 0 100 (0,100)
>   SFNode     [in,out] metadata       NULL        [X3DMetadataObject]
>   SFVec3f    []       bboxCenter     0 0 0       (-∞,∞)
>   SFVec3f    []       bboxSize       -1 -1 -1    (0,∞) or -1 -1 -1
> }
> 
> along with
> 
> X3DViewportNode : X3DGroupingNode {
>   MFNode  [in]     addChildren             [X3DChildNode]
>   MFNode  [in]     removeChildren          [X3DChildNode]
>   MFNode  [in,out] children       []       [X3DChildNode]
>   SFNode  [in,out] metadata       NULL     [X3DMetadataObject]
>   SFVec3f []       bboxCenter     0 0 0    (-∞,∞)
>   SFVec3f []       bboxSize       -1 -1 -1 (0,∞) or -1 -1 -1
> }
> 
> 
> seems more correct and Viewport text should be updated. .
> 
> http://www.web3d.org/x3d/specifications/ISO-IEC-19775-1.2-X3D-
> AbstractSpecification/Part01/components/layering.html#Viewport
> 
> Thanks Again and Best Regards,
> Joe
> 
> 
> _______________________________________________
> X3D-Public mailing list
> X3D-Public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org




More information about the X3D-Public mailing list