Class TX3DSimpleMultField
Unit
Declaration
type generic TX3DSimpleMultField<TItem;TSingleField;TItemList> = class(TX3DMultField)
Description
X3D field with a list of values. This is an ancestor of most multiple-value X3D fields.
Hierarchy
- TObject
- TPersistent
- TX3DFileItem
- TX3DFieldOrEvent
- TX3DField
- TX3DMultField
- TX3DSimpleMultField
Overview
Methods
constructor Create(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: string; const InitialContent: array of TItem); |
|
constructor CreateUndefined(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: string); override; |
|
destructor Destroy; override; |
|
procedure Assign(Source: TPersistent); override; |
|
procedure AssignValue(Source: TX3DField); override; |
|
procedure AssignDefaultValueFromValue; override; |
|
procedure UnassignDefaultValue; override; |
|
procedure ParseValue(Lexer: TX3DLexer; Reader: TX3DReader); override; |
|
function Equals(SecondValue: TX3DField): boolean; override; |
|
function EqualsDefaultValue: boolean; override; |
|
procedure ParseXMLAttributeLexer(Lexer: TX3DLexer; Reader: TX3DReader); override; |
|
procedure Send(const AValue: array of TItem); overload; |
|
procedure Send(const AValue: TItemList); overload; |
Properties
property Items: TItemList read GetItems write SetItems; |
|
property ItemsSafe[Index:Integer]: TItem read GetItemsSafe write SetItemsSafe; |
Description
Methods
constructor Create(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: string; const InitialContent: array of TItem); |
|
constructor CreateUndefined(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: string); override; |
|
destructor Destroy; override; |
|
procedure Assign(Source: TPersistent); override; |
|
Copy another field value, default value and other properties. |
procedure AssignValue(Source: TX3DField); override; |
|
procedure AssignDefaultValueFromValue; override; |
|
procedure UnassignDefaultValue; override; |
|
procedure ParseValue(Lexer: TX3DLexer; Reader: TX3DReader); override; |
|
Parse MF field. This class handles parsing fully, usually no need to override this more in descendants. It uses TSingleField.Parse method. |
function Equals(SecondValue: TX3DField): boolean; override; |
|
Checks equality between this and SecondValue field. In addition to inherited(Equals), this checks the actual contents of the items. Note that floating-point values are compared with some tolerance for errors by this method. |
function EqualsDefaultValue: boolean; override; |
|
procedure ParseXMLAttributeLexer(Lexer: TX3DLexer; Reader: TX3DReader); override; |
|
procedure Send(const AValue: array of TItem); overload; |
|
Set the field's value in a correct way (by sending X3D event, or at least notifying the parent scene). |
procedure Send(const AValue: TItemList); overload; |
|
Properties
property Items: TItemList read GetItems write SetItems; |
|
property ItemsSafe[Index:Integer]: TItem read GetItemsSafe write SetItemsSafe; |
|
Access Items[] checking for range errors. In case of errors, Get will return false, Set will do nothing, and both will produce clear WritelnWarning. |
Generated by PasDoc 0.16.0.