Class TSFFloat

Unit

Declaration

type TSFFloat = class(TX3DSingleField)

Description

X3D field containing a floating-point value with Single precision.

Hierarchy

Overview

Fields

Public DefaultValue: Single;
Public DefaultValueExists: boolean;

Methods

Public constructor Create(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: string; const AValue: Single);
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 AssignLerp(const A: Double; Value1, Value2: TX3DField); override;
Public function CanAssignLerp: 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: Single); overload;

Properties

Public property Value: Single read FValue write SetValue;
Public property MustBeNonnegative: Boolean read FMustBeNonnegative write SetMustBeNonnegative default false;
Public property Angle: boolean read FAngle write FAngle default false;

Description

Fields

Public DefaultValue: Single;
 
Public DefaultValueExists: boolean;
 

Methods

Public constructor Create(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: string; const AValue: Single);
 
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 AssignLerp(const A: Double; Value1, Value2: TX3DField); override;
 
Public function CanAssignLerp: 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: Single); overload;
 

Properties

Public property Value: Single read FValue write SetValue;

Current field value.

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.

Public property Angle: boolean read FAngle write FAngle default false;

Value represents an angle. When reading from X3D 3.3 file, we will make sure it's expressed in radians, honoring optional "UNIT angle ..." declaration in X3D file.


Generated by PasDoc 0.16.0.