Class TMFString

Unit

Declaration

type TMFString = class(TX3DMultField)

Description

No description available, ancestor TX3DMultField description follows

X3D field with a list of values.

Hierarchy

Overview

Methods

Public constructor Create(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: string; const InitialContent: array of string);
Public constructor CreateUndefined(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: string); override;
Public destructor Destroy; override;
Public function FastEqualsValue(SecondValue: TX3DField): boolean; override;
Public procedure ParseValue(Lexer: TX3DLexer; Reader: TX3DReader); override;
Public class function X3DType: string; override;
Public class function CreateEvent(const AParentNode: TX3DFileItem; const AName: string; const AInEvent: boolean): TX3DEvent; override;
Public procedure ParseXMLAttribute(const AttributeValue: string; Reader: TX3DReader); override;
Public function SaveToXmlValue: TSaveToXmlMethod; override;
Public procedure Assign(Source: TPersistent); override;
Public procedure AssignValue(Source: TX3DField); override;
Public procedure AssignDefaultValueFromValue; override;
Public procedure UnassignDefaultValue; override;
Public function Equals(SecondValue: TX3DField): boolean; override;
Public function EqualsDefaultValue: boolean; override;
Public procedure Send(const AValue: array of string); overload;
Public procedure Send(const AValue: TCastleStringList); overload;

Properties

Public property Items: TCastleStringList read FItems write SetItems;
Public property ItemsSafe[Index:Integer]: string read GetItemsSafe write SetItemsSafe;

Description

Methods

Public constructor Create(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: string; const InitialContent: array of string);
 
Public constructor CreateUndefined(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: string); override;
 
Public destructor Destroy; override;
 
Public function FastEqualsValue(SecondValue: TX3DField): boolean; override;
 
Public 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.

Public class function X3DType: string; override;
 
Public class function CreateEvent(const AParentNode: TX3DFileItem; const AName: string; const AInEvent: boolean): TX3DEvent; override;
 
Public procedure ParseXMLAttribute(const AttributeValue: string; Reader: TX3DReader); override;
 
Public function SaveToXmlValue: TSaveToXmlMethod; override;
 
Public procedure Assign(Source: TPersistent); override;

Copy another field value, default value and other properties.

Public procedure AssignValue(Source: TX3DField); override;
 
Public procedure AssignDefaultValueFromValue; override;
 
Public procedure UnassignDefaultValue; override;
 
Public 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.

Public function EqualsDefaultValue: boolean; override;
 
Public procedure Send(const AValue: array of string); overload;

Set the field's value in a correct way (by sending X3D event, or at least notifying the parent scene).

Public procedure Send(const AValue: TCastleStringList); overload;
 

Properties

Public property Items: TCastleStringList read FItems write SetItems;
 
Public property ItemsSafe[Index:Integer]: string read GetItemsSafe write SetItemsSafe;
 

Generated by PasDoc 0.16.0.