Class TX3DBindableStackBasic

Unit

Declaration

type TX3DBindableStackBasic = class(TX3DNodeList)

Description

This item has no description. Showing description inherited from TX3DNodeList.

List of TX3DNode.

Source: scene/x3d/x3dnodes_eventsengine.inc (line 23).

Hierarchy

  • TObject
  • TList
  • TObjectList
  • TX3DNodeList
  • TX3DBindableStackBasic
Show Additional Members:

Overview

Methods

Protected procedure Notify( constref Value: TX3DNode; Action: TCollectionNotification); override;
Public function FindName(const Name: string): TX3DNode;
Public function IndexOfName(const Name: string): Integer;
Public procedure AddIfNotExists(const Node: TX3DNode);
Public function Equals(SecondValue: TObject): Boolean; override;
Public procedure Assign(const Source: TX3DNodeList); overload;
Public procedure Assign(const Source: array of TX3DNode); overload;
Public procedure Set_Bind(Node: TAbstractBindableNode; const Value: boolean); virtual; abstract;

Properties

Public property AutoRemove: Boolean read FAutoRemove write SetAutoRemove default false;

Description

Methods

Protected procedure Notify( constref Value: TX3DNode; Action: TCollectionNotification); override;

This item is declared in ancestor TX3DNodeList.

This item has no description.

Source: scene/x3d/x3dnodes_x3dnode.inc (line 1213).

Public function FindName(const Name: string): TX3DNode;

This item is declared in ancestor TX3DNodeList.

Find node by name (TX3DNode.X3DName), Nil if not found.

If called with Name = '', always returns Nil (does not search for node with MyNode.X3DName = '' condition). This follows the meaning of TX3DNode.X3DName: empty means that node has no name, so it should not be found when searching by name, ever.

See also
Returns the node index. This is sometimes more flexible (you can always quickly get actual node knowing the index, by Items[Index], but not the other way around). It is also sometimes less comfortable (often you're not interested in node index).
Find index of a node with given name (TX3DNode.X3DName), -1 if not found.

Source: scene/x3d/x3dnodes_x3dnode.inc (line 1229).

Public function IndexOfName(const Name: string): Integer;

This item is declared in ancestor TX3DNodeList.

Find index of a node with given name (TX3DNode.X3DName), -1 if not found.

Consistently with FindName, always returns -1 when Name = ''.

Source: scene/x3d/x3dnodes_x3dnode.inc (line 1234).

Public procedure AddIfNotExists(const Node: TX3DNode);

This item is declared in ancestor TX3DNodeList.

Add node only if it's not already on the list.

Source: scene/x3d/x3dnodes_x3dnode.inc (line 1237).

Public function Equals(SecondValue: TObject): Boolean; override;

This item is declared in ancestor TX3DNodeList.

Does the SecondValue list has equal length and instances. The instances on the list are compared exactly, i.e. reference must match, not only some node properties.

Source: scene/x3d/x3dnodes_x3dnode.inc (line 1242).

Public procedure Assign(const Source: TX3DNodeList); overload;

This item is declared in ancestor TX3DNodeList.

Assign from Source. Equivalent to Clear and then AddRange(Source).

Source: scene/x3d/x3dnodes_x3dnode.inc (line 1245).

Public procedure Assign(const Source: array of TX3DNode); overload;

This item is declared in ancestor TX3DNodeList.

Assign from Source. Equivalent to Clear and then AddRange(Source).

Source: scene/x3d/x3dnodes_x3dnode.inc (line 1248).

Public procedure Set_Bind(Node: TAbstractBindableNode; const Value: boolean); virtual; abstract;

Handle set_bind event send to given Node. This always generates appropriate events.

Source: scene/x3d/x3dnodes_eventsengine.inc (line 27).

Properties

Public property AutoRemove: Boolean read FAutoRemove write SetAutoRemove default false;

This item is declared in ancestor TX3DNodeList.

If True then destroyed nodes will be automatically removed from this list. This allows you to safely destroy node instances during the lifetime of this list, without worrying that some dangling pointers remain on this list.

You can only change this property when the list is empty. Otherwise we could have a weird situation when some nodes are automatically removed from the list, and some are not, which seems counter-intuitive.

Internally, this is done using TX3DNode.AddDestructionNotification.

Source: scene/x3d/x3dnodes_x3dnode.inc (line 1260).


Generated by PasDoc 0.17.0.snapshot.