Class TSFEnum

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TSFEnum = class(TVRMLSingleField)

Description

SFEnum VRML field.

TSFEnum is one of the exceptional field types that cannot be 100% correctly initialized by CreateUndefined, since EnumNames will be left undefined.

Hierarchy

Overview

Fields

Public Value: integer;
Public DefaultValue: integer;
Public DefaultValueExists: boolean;

Methods

Protected procedure SaveToStreamValue(SaveProperties: TVRMLSaveToStreamProperties); override;
Public constructor Create(const AName: string; const AEnumNames: array of string; const AValue: integer);
Public destructor Destroy; override;
Public function EnumNamesCount: integer;
Public procedure Parse(Lexer: TVRMLLexer; IsClauseAllowed: boolean); override;
Public function EqualsDefaultValue: boolean; override;
Public function Equals(SecondValue: TVRMLField; const EqualityEpsilon: Single): boolean; override;
Public procedure Assign(Source: TPersistent); override;
Public procedure AssignValue(Source: TVRMLField); override;
Public class function VRMLTypeName: string; override;

Properties

Public property EnumNames[i: integer]: string read GetEnumNames;

Description

Fields

Public Value: integer;

Value between 0 .. EnumCount - 1. By default 0.

Public DefaultValue: integer;
 
Public DefaultValueExists: boolean;
 

Methods

Protected procedure SaveToStreamValue(SaveProperties: TVRMLSaveToStreamProperties); override;
 
Public constructor Create(const AName: string; const AEnumNames: array of string; const AValue: integer);
 
Public destructor Destroy; override;
 
Public function EnumNamesCount: integer;
 
Public procedure Parse(Lexer: TVRMLLexer; IsClauseAllowed: boolean); override;
 
Public function EqualsDefaultValue: boolean; override;
 
Public function Equals(SecondValue: TVRMLField; const EqualityEpsilon: Single): boolean; override;
 
Public procedure Assign(Source: TPersistent); override;
 
Public procedure AssignValue(Source: TVRMLField); override;
 
Public class function VRMLTypeName: string; override;
 

Properties

Public property EnumNames[i: integer]: string read GetEnumNames;
 

Generated by PasDoc 0.10.0 on 2008-02-25 00:00:40