| 1 |
# Special abstract. |
| 2 |
# X3DBoundedObject { |
| 3 |
# SFVec3f [] bboxCenter 0 0 0 |
| 4 |
# range: (-Inf,Inf) |
| 5 |
# SFVec3f [] bboxSize -1 -1 -1 |
| 6 |
# range: [0,Inf) or -1 -1 -1 |
| 7 |
# } |
| 8 |
|
| 9 |
X3DGroupingNode : X3DChildNode, X3DBoundedObject { |
| 10 |
MFNode [in] addChildren |
| 11 |
range: X3DChildNode |
| 12 |
MFNode [in] removeChildren |
| 13 |
range: X3DChildNode |
| 14 |
MFNode [in,out] children [] |
| 15 |
# Add TAbstractGeometryNode_1 to allow VRML 1.0 geometry nodes (that cannot be TAbstractChildNode) |
| 16 |
# to be present at top-level of the file. |
| 17 |
# Testcase: demo-models/vrml_1/castle_extensions/multi_root.wrl |
| 18 |
range: X3DChildNode, TAbstractGeometryNode_1 |
| 19 |
change: chGroupChildren |
| 20 |
SFVec3f [] bboxCenter 0 0 0 |
| 21 |
range: (-Inf,Inf) |
| 22 |
# Note that bboxCenter documentation string it used for generated "BBox: TBox3D" property. |
| 23 |
doc: You can provide a manually-calculated bounding box of the group here, for optimization purposes. @italic(Ignored for now.) Leave this field as empty (TBox3D.Empty) to let the engine calculate best bounding box automatically. @seealso TAbstractShapeNode.BBox |
| 24 |
SFVec3f [] bboxSize -1 -1 -1 |
| 25 |
range: [0,Inf) or -1 -1 -1 |
| 26 |
SFBool [in,out] visible TRUE |
| 27 |
not-slim |
| 28 |
doc: Is this group visible (@italic(not implemented yet)). While this is not implemented for an entire group, note that you can use @link(TAbstractShapeNode.Visible) to toggle visibility of each shape. |
| 29 |
SFBool [in,out] bboxDisplay FALSE |
| 30 |
not-slim |
| 31 |
doc: Is the bounding box of this group visible (@italic(not implemented yet)). While this is not implemented for an X3D group, note that you can use @link(TDebugTransformBox) to easily display bounding box of a whole @link(TCastleTransform). |
| 32 |
} |
| 33 |
|
| 34 |
Group : X3DGroupingNode { |
| 35 |
} |
| 36 |
|
| 37 |
StaticGroup : X3DChildNode, X3DBoundedObject { |
| 38 |
MFNode [] children [] |
| 39 |
range: X3DChildNode |
| 40 |
change: chGroupChildren |
| 41 |
SFVec3f [] bboxCenter 0 0 0 |
| 42 |
range: (-Inf,Inf) |
| 43 |
SFVec3f [] bboxSize -1 -1 -1 |
| 44 |
range: [0,Inf) or -1 -1 -1 |
| 45 |
} |
| 46 |
|
| 47 |
Switch : X3DGroupingNode { |
| 48 |
SFInt32 [in,out] whichChoice -1 |
| 49 |
range: [-1,Inf) |
| 50 |
change: chSwitch2 |
| 51 |
} |
| 52 |
|
| 53 |
Transform : X3DGroupingNode { |
| 54 |
SFVec3f [in,out] center 0 0 0 |
| 55 |
range: (-Inf,Inf) |
| 56 |
doc: Center point around which the @link(Rotation) and @link(Scale) is performed. |
| 57 |
change: chTransform |
| 58 |
SFRotation [in,out] rotation 0 0 1 0 |
| 59 |
range: [-1,1] or (-Inf,Inf) |
| 60 |
doc: Rotate children in 3D, around a specified axis. Rotation is expressed as a 4D vector, in which the first 3 components specify the rotation axis (does not need to be normalized, but must be non-zero) and the last component is the rotation angle @italic(in radians). Rotation is done around @link(Center). |
| 61 |
change: chTransform |
| 62 |
SFVec3f [in,out] scale 1 1 1 |
| 63 |
range: (-Inf, Inf) |
| 64 |
doc: Scale in 3D. Scaling is done around @link(Center) and with orientation given by @link(ScaleOrientation). Note about negative scale: We do the best we can to work with @italic(any) scale value, even negative or zero. But usually, it's best to keep the scale positive. See the @link(TCastleTransform.Scale) documentation for some good guidelines about the scale. |
| 65 |
change: chTransform |
| 66 |
SFRotation [in,out] scaleOrientation 0 0 1 0 |
| 67 |
range: [-1,1] or (-Inf,Inf) |
| 68 |
doc: Orientation in which 3D @link(Scale) is performed. |
| 69 |
change: chTransform |
| 70 |
SFVec3f [in,out] translation 0 0 0 |
| 71 |
range: (-Inf,Inf) |
| 72 |
doc: Translation (move) the children nodes. |
| 73 |
change: chTransform |
| 74 |
} |