Castle Game Engine: X3DFields: Class TSFBitMask

# Class TSFBitMask
Description | Hierarchy | Fields | Methods | Properties
## Unit X3DFields ## Declaration `type TSFBitMask = class(TX3DSingleField)` ## Description SFBitMask VRML 1.0 field. `TSFBitMask` is one of the exceptional field types that cannot be 100% correctly initialized by CreateUndefined, since EnumNames will be left undefined. ## Hierarchy TPersistent TNonRefCountedInterfacedPersistent TX3DFileItem TX3DFieldOrEvent TX3DField TX3DSingleField TSFBitMask ## Overview ### Methods
| `procedure SaveToStreamValue(Writer: TX3DWriter); override;`
| `function FlagsCount: integer;`
| `procedure ParseValue(Lexer: TX3DLexer; Reader: TX3DReader); override;`
| `function AreAllFlags(value: boolean): boolean;`
| `constructor Create(AParentNode: TX3DFileItem; const AName: string; const AFlagNames: array of string; const ANoneString, AAllString: string; const AFlags: array of boolean);`
| `destructor Destroy; override;`
| `function Equals(SecondValue: TX3DField; const EqualityEpsilon: Double): boolean; override;`
| `procedure Assign(Source: TPersistent); override;`
| `procedure AssignValue(Source: TX3DField); override;`
| `class function TypeName: string; override;`
### Properties
| `property Flags[i:integer]: boolean read GetFlags write SetFlags;`
| `property FlagNames[i:integer]: string read GetFlagNames;`
| `property AllString: string read fAllString;`
| `property NoneString: string read fNoneString;`
## Description ### Methods
| `procedure SaveToStreamValue(Writer: TX3DWriter); override;`
| `function FlagsCount: integer;`
| `procedure ParseValue(Lexer: TX3DLexer; Reader: TX3DReader); override;`
| `function AreAllFlags(value: boolean): boolean;`
Are all flag values set to `True` currently.
| `constructor Create(AParentNode: TX3DFileItem; const AName: string; const AFlagNames: array of string; const ANoneString, AAllString: string; const AFlags: array of boolean);`
Constructor. Remember that arrays AFlagNames and AFlags (AFlags is initial value of Flags) must have equal length. Eventually, AFlags may be longer (excessive items will be ignored).
| `destructor Destroy; override;`
| `function Equals(SecondValue: TX3DField; const EqualityEpsilon: Double): boolean; override;`
| `procedure Assign(Source: TPersistent); override;`
| `procedure AssignValue(Source: TX3DField); override;`
| `class function TypeName: string; override;`
### Properties
| `property Flags[i:integer]: boolean read GetFlags write SetFlags;`
Value of this field. You can use Index from the range 0 .. FlagsCount - 1.
| `property FlagNames[i:integer]: string read GetFlagNames;`
| `property AllString: string read fAllString;`
Special strings that will be understood by parser as ALL or NONE bit values. `AllString` selects all flags, NoneString selects none. `AllString` may be '' is there's no such string, NoneString should never be '' (otherwise, user could not be able to specify some SFBitMask values — NoneString is the only way to specify 0). There is usually little sense in using them like "ALL | something" (because it means just "ALL") or "NONE | something" (because it means just "something"). But it's allowed syntactically.
| `property NoneString: string read fNoneString;`
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:13