Class TAbstractGroupingNode
Unit
Declaration
type TAbstractGroupingNode = class(TAbstractInternalGroupingNode)
Description
Base node that contains children nodes.
Hierarchy
- TObject
- TPersistent
- TX3DFileItem
- TX3DNode
- TAbstractNode
- TAbstractChildNode
- TAbstractInternalGroupingNode
- TAbstractGroupingNode
Overview
Methods
constructor Create(const AX3DName: String = ''; const ABaseUrl: String = ''); override; |
|
procedure AddChildren(const Children: array of TAbstractChildNode; const AllowDuplicates: Boolean = true); overload; |
|
procedure AddChildren(const Child: TAbstractChildNode; const AllowDuplicates: Boolean = true); overload; |
|
procedure RemoveChildren(const Children: array of TAbstractChildNode); overload; |
|
procedure RemoveChildren(const Child: TAbstractChildNode); overload; |
|
procedure ClearChildren; |
|
procedure CreateNode; override; |
|
class function ClassX3DType: String; override; |
|
procedure SetChildren(const Value: array of TX3DNode); |
Properties
property EventAddChildren: TMFNodeEvent read FEventAddChildren; |
|
property EventRemoveChildren: TMFNodeEvent read FEventRemoveChildren; |
|
property FdChildren: TMFNode read FFdChildren; |
|
property FdBboxCenter: TSFVec3f read FFdBboxCenter; |
|
property BBox: TBox3D read GetBBox write SetBBox; |
|
property FdBboxSize: TSFVec3f read FFdBboxSize; |
|
property FdVisible: TSFBool read FFdVisible; |
|
property Visible: Boolean read GetVisible write SetVisible; |
|
property FdBboxDisplay: TSFBool read FFdBboxDisplay; |
|
property BboxDisplay: Boolean read GetBboxDisplay write SetBboxDisplay; |
Description
Methods
constructor Create(const AX3DName: String = ''; const ABaseUrl: String = ''); override; |
|
This item has no description. Showing description inherited from TX3DNode.Create. Constructor. Initializes various properties:
|
procedure AddChildren(const Children: array of TAbstractChildNode; const AllowDuplicates: Boolean = true); overload; |
|
Add the nodes as children. By default, adding the same node multiple times makes the node present on the list multiple times. This AddChildren behavior is consistent with how If you specify AllowDuplicates = This propagates the changes appropriately to the parent TCastleSceneCore, calling TCastleSceneCore.ChangedAll or something similar. |
procedure AddChildren(const Child: TAbstractChildNode; const AllowDuplicates: Boolean = true); overload; |
|
This item has no description. |
procedure RemoveChildren(const Children: array of TAbstractChildNode); overload; |
|
Remove the nodes from the children list. Removing a node that does not exist on the children list is ignored. If a node exists on the current children list multiple times, then a single occurrence of this node is removed, for each occurrence of this node in the parameters list. This propagates the changes appropriately to the parent TCastleSceneCore, calling TCastleSceneCore.ChangedAll or something similar. |
procedure RemoveChildren(const Child: TAbstractChildNode); overload; |
|
This item has no description. |
procedure ClearChildren; |
|
Clear all children from the list. This automatically propagates the changes appropriately to the parent TCastleSceneCore. |
procedure CreateNode; override; |
|
Create node fields and events. |
class function ClassX3DType: String; override; |
|
This item has no description. Showing description inherited from TX3DNode.ClassX3DType. Node type name in VRML/X3D, for this class. Normal VRML/X3D node classes should override this to return something non-empty, and then X3DType automatically will return the same value. Empty for classes that don't have a hardcoded VRML/X3D node name, like a special TX3DUnknownNode. Such special classes should override then X3DType to return actual non-empty name there. You usually should call X3DType. The only use of this method is that it works on classes (it's "class function"), without needing at actual instance. |
procedure SetChildren(const Value: array of TX3DNode); |
|
This item has no description. |
Properties
property EventAddChildren: TMFNodeEvent read FEventAddChildren; |
|
This item has no description. |
property EventRemoveChildren: TMFNodeEvent read FEventRemoveChildren; |
|
This item has no description. |
property FdChildren: TMFNode read FFdChildren; |
|
Internal wrapper for property |
property FdBboxCenter: TSFVec3f read FFdBboxCenter; |
|
Internal wrapper for property |
property BBox: TBox3D read GetBBox write SetBBox; |
|
You can provide a manually-calculated bounding box of the group here, for optimization purposes. Ignored for now. Leave this field as empty (TBox3D.Empty) to let the engine calculate best bounding box automatically. See also
|
property FdBboxSize: TSFVec3f read FFdBboxSize; |
|
Internal wrapper for property |
property FdVisible: TSFBool read FFdVisible; |
|
Internal wrapper for property |
property Visible: Boolean read GetVisible write SetVisible; |
|
Is this group visible (not implemented yet). While this is not implemented for an entire group, note that you can use TAbstractShapeNode.Visible to toggle visibility of each shape. |
property FdBboxDisplay: TSFBool read FFdBboxDisplay; |
|
Internal wrapper for property |
property BboxDisplay: Boolean read GetBboxDisplay write SetBboxDisplay; |
|
Is the bounding box of this group visible (not implemented yet). While this is not implemented for an X3D group, note that you can use TDebugTransformBox to easily display bounding box of a whole TCastleTransform. |
Generated by PasDoc 0.16.0-snapshot.