Class TPointingDeviceSensorList

Unit

Declaration

type TPointingDeviceSensorList = class(TX3DNodeList)

Description

List of pointing device sensors. Only nodes descending from X3DPointingDeviceSensorNode, and additionally an Anchor node.

Source: scene/x3d/x3dnodes_standard_pointingdevicesensor.inc (line 20).

Hierarchy

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

Overview

Fields

Public Transformation: TTransformation;

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 function EnabledCount: Integer;
Public function Enabled(Index: Integer): boolean;
Public procedure Assign(Source: TPointingDeviceSensorList);

Properties

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

Description

Fields

Public Transformation: TTransformation;

Transformation (and inverse) of all the sensors on this list. X3D specification guarantees that all sensors within a single state have the same transform.

Source: scene/x3d/x3dnodes_standard_pointingdevicesensor.inc (line 25).

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 function EnabledCount: Integer;

This item has no description.

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

Public function Enabled(Index: Integer): boolean;

This item has no description.

Source: scene/x3d/x3dnodes_standard_pointingdevicesensor.inc (line 28).

Public procedure Assign(Source: TPointingDeviceSensorList);

This item has no description.

Source: scene/x3d/x3dnodes_standard_pointingdevicesensor.inc (line 30).

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.