Class TMFLong

Unit

Declaration

type TMFLong = class(specialize TX3DSimpleMultField<Int32,TSFLong,TInt32List>)

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 class function X3DType: String; override;
Public class function CreateEvent(const AParentNode: TX3DFileItem; const AName: String; const AInEvent: boolean): TX3DEvent; override;
Public procedure WritelnWarning_WrongVertexIndex( const GeometryX3DType: String; const VertexNum: Integer; const CoordCount: Integer);

Properties

Public property SaveToStreamLineUptoNegative: boolean read FSaveToStreamLineUptoNegative write FSaveToStreamLineUptoNegative default false;

Description

Methods

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.

Public procedure WritelnWarning_WrongVertexIndex( const GeometryX3DType: String; const VertexNum: Integer; const CoordCount: Integer);

Call WritelnWarning reporting that an invalid vertex index is caused from this field. This simply calls WritelnWarning formatting appropriate message.

Additionally this guards us against producing too many warnings from the same field. When a given threshold will be reached, further WritelnWarning_WrongVertexIndex calls for this field instance will be simply ignored. This is a good thing, as some invalid models have really an incredible amount of invalid indexes, and the very amount of lines printed on console makes viewing these invalid files (at least, the valid parts of them) impossible.

Example test cases: content/examples/Basic/HumanoidAnimation/AllenStandShootRifleM24.x3d and content/examples/Basic/HumanoidAnimation/NancyDiving.x3dv from http://www.web3d.org/ example models.

Properties

Public property SaveToStreamLineUptoNegative: boolean read FSaveToStreamLineUptoNegative write FSaveToStreamLineUptoNegative default false;

When saving to VRML/X3D classic encoding, make newline after each negative value on the list. This makes a nice output for fields like IndexedFaceSet.coordIndex.


Generated by PasDoc 0.16.0-snapshot.