Class TMFMatrix4d

Unit

Declaration

type TMFMatrix4d = class(specialize TX3DSimpleMultField<TMatrix4Double,TSFMatrix4d,TMatrix4DoubleList>)

Description

This item has no description. Showing description inherited from TX3DSimpleMultField.

X3D field with a list of values. This is an ancestor of most multiple-value X3D fields.

Hierarchy

Overview

Methods

Public procedure AssignLerp(const A: Double; Value1, Value2: TX3DField); override;
Public function CanAssignLerp: boolean; override;
Public class function X3DType: String; override;
Public class function CreateEvent(const AParentNode: TX3DFileItem; const AName: String; const AInEvent: boolean): TX3DEvent; override;

Description

Methods

Public procedure AssignLerp(const A: Double; Value1, Value2: TX3DField); override;

This item has no description. Showing description inherited from TX3DField.AssignLerp.

Assigns value to this node calculated from linear interpolation between two given nodes Value1, Value2. Just like other lerp functions in our units (like CastleVectors.Lerp).

Like AssignValue, this copies only the current value. All other properties (like Name, IsClauseNames, ValueFromIsClause, default value) are untouched.

There are some special precautions for this:

  • First of all, AssignLerp is defined only for fields where CanAssignLerp returns True, so always check CanAssignLerp first. All float-based fields should have this implemented.

  • Use this only if Value1 and Value2 are equal or descendant of target (Self) class.

  • For multiple-value fields, counts of Value1 and Value2 must be equal, or EListsDifferentCount will be raised.

Public function CanAssignLerp: boolean; override;

This item has no description. Showing description inherited from TX3DField.CanAssignLerp.

Is AssignLerp usable on this field type?

Descendants implementors notes: In this class, this always returns False.

Public class function X3DType: String; override;

This item has no description. Showing description inherited from TX3DField.X3DType.

Field type in X3D, like 'SFString' or 'MFInt32'. As for VRML/X3D interface declaration statements. In base TX3DField class, this returns XFAny (name indicating any type, used by instantreality and us).

Public class function CreateEvent(const AParentNode: TX3DFileItem; const AName: String; const AInEvent: boolean): TX3DEvent; override;

This item has no description. Showing description inherited from TX3DField.CreateEvent.

Create TX3DEvent descendant suitable as exposed event for this field.


Generated by PasDoc 0.16.0-snapshot.