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; const AMustBeNonnegative: boolean = false);
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 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 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; const AMustBeNonnegative: boolean = false);
 
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 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 default false;

If True then when trying to set Value to something < 0, we'll negate it (in other words, we'll keep Value >= 0 always). This is nice e.g. for Sphere.FdRadius field — some incorrect VRML specify negative sphere radius.

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.15.0.