Class TSFLong

Unit

Declaration

type TSFLong = class(TX3DSingleField)

Description

X3D field containing an single integer 32-bit value.

Hierarchy

Overview

Fields

Public DefaultValue: Longint;
Public DefaultValueExists: boolean;

Methods

Public constructor Create(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: string; const AValue: Longint);
Public procedure ParseValue(Lexer: TX3DLexer; Reader: TX3DReader); override;
Public function EqualsDefaultValue: boolean; override;
Public function Equals(SecondValue: TX3DField): boolean; override;
Public function FastEqualsValue(SecondValue: TX3DField): boolean; override;
Public procedure Assign(Source: TPersistent); override;
Public procedure AssignValue(Source: TX3DField); override;
Public procedure AssignDefaultValueFromValue; override;
Public procedure UnassignDefaultValue; override;
Public class function X3DType: string; override;
Public class function CreateEvent(const AParentNode: TX3DFileItem; const AName: string; const AInEvent: boolean): TX3DEvent; override;
Public procedure Send(const AValue: LongInt); overload; virtual;

Properties

Public property Value: Longint read FValue write SetValue;
Public property MustBeNonnegative: Boolean read FMustBeNonnegative write SetMustBeNonnegative default false;

Description

Fields

Public DefaultValue: Longint;
 
Public DefaultValueExists: boolean;
 

Methods

Public constructor Create(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: string; const AValue: Longint);
 
Public procedure ParseValue(Lexer: TX3DLexer; Reader: TX3DReader); override;
 
Public function EqualsDefaultValue: boolean; override;
 
Public function Equals(SecondValue: TX3DField): boolean; override;
 
Public function FastEqualsValue(SecondValue: TX3DField): boolean; override;
 
Public procedure Assign(Source: TPersistent); override;
 
Public procedure AssignValue(Source: TX3DField); override;
 
Public procedure AssignDefaultValueFromValue; override;
 
Public procedure UnassignDefaultValue; override;
 
Public class function X3DType: string; override;
 
Public class function CreateEvent(const AParentNode: TX3DFileItem; const AName: string; const AInEvent: boolean): TX3DEvent; override;
 
Public procedure Send(const AValue: LongInt); overload; virtual;
 

Properties

Public property Value: Longint read FValue write SetValue;
 
Public property MustBeNonnegative: Boolean read FMustBeNonnegative write SetMustBeNonnegative default false;

Set this to True to request that only values >= 0 are valid. Trying to set Value to something < 0 will make a warning and fix it (for now – by negating it, but don't depend on this "fix" algorithm). Also when changing this to True while current Value is invalid, it will also be fixed and make a warning.


Generated by PasDoc 0.16.0.