Class TX3DSimpleMultField
Unit
X3DFields
Declaration
type generic TX3DSimpleMultField<TItem,TSingleField,TItemList,TEvent> = class(TX3DMultField)
Description
X3D field with a list of values. This is an ancestor of most multiple-value X3D fields.
Hierarchy
Overview
Methods
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 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; |
|
 |
class function CreateEvent(const AParentNode: TX3DFileItem; const AName: string; const AInEvent: boolean): TX3DEvent; 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.15.0.
|