Class TSFBitMask
Unit
Declaration
type TSFBitMask = class(TX3DSingleField)
Description
Warning: this symbol is deprecated.
VRML 1.0 (deprecated) field representing a bitmask, where a number of "flags" can be "on" or "off". This is deprecated, as VRML 1.0 is an ancient format now.
Source: src/scene/x3d/castlefields_x3dsinglefield_descendants.inc (line 23).
Hierarchy
- TObject
- TPersistent
- TX3DFileItem
- TX3DFieldOrEvent
- TX3DField
- TX3DSingleField
- TSFBitMask
Overview
Methods
![]() |
function FlagsCount: integer; |
![]() |
procedure ParseValue(Lexer: TX3DLexer; Reader: TX3DReader); override; |
![]() |
function AreAllFlags(value: boolean): boolean; |
![]() |
constructor Create(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: String; const AFlagNames: array of string; const ANoneString, AAllString: String; const AFlags: array of boolean); |
![]() |
destructor Destroy; override; |
![]() |
function Equals(SecondValue: TX3DField): boolean; override; |
![]() |
procedure Assign(Source: TPersistent); override; |
![]() |
procedure AssignValue(Source: TX3DField); override; |
![]() |
class function X3DType: 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
![]() |
function FlagsCount: integer; |
|
This item has no description. Source: src/scene/x3d/castlefields_x3dsinglefield_descendants.inc (line 41). | |
![]() |
procedure ParseValue(Lexer: TX3DLexer; Reader: TX3DReader); override; |
|
This item has no description. Source: src/scene/x3d/castlefields_x3dsinglefield_descendants.inc (line 64). | |
![]() |
function AreAllFlags(value: boolean): boolean; |
|
Are all flag values set to Source: src/scene/x3d/castlefields_x3dsinglefield_descendants.inc (line 67). | |
![]() |
constructor Create(const AParentNode: TX3DFileItem; const AExposed: boolean; 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). Source: src/scene/x3d/castlefields_x3dsinglefield_descendants.inc (line 74). | |
![]() |
destructor Destroy; override; |
|
This item has no description. Source: src/scene/x3d/castlefields_x3dsinglefield_descendants.inc (line 78). | |
![]() |
function Equals(SecondValue: TX3DField): boolean; override; |
|
This item has no description. Showing description inherited from TX3DField.Equals.
All descendants (that add some property that should be compared) should override this like Result := (inherited Equals(SecondValue)) and (SecondValue is TMyType) and (TMyType(SecondValue).MyProperty = MyProperty);
The floating-point fields may be compared with a small epsilon tolerance by this method. Note that this *doesn't* compare the default values of two fields instances. This compares only the current values of two fields instances, and eventually some other properties that affect parsing (like names for TSFEnum and TSFBitMask) or allowed future values (like TSFFloat.MustBeNonnegative). Source: src/scene/x3d/castlefields_x3dsinglefield_descendants.inc (line 80). | |
![]() |
procedure Assign(Source: TPersistent); override; |
|
This item has no description. Source: src/scene/x3d/castlefields_x3dsinglefield_descendants.inc (line 82). | |
![]() |
procedure AssignValue(Source: TX3DField); override; |
|
This item has no description. Showing description inherited from TX3DField.AssignValue. Copies the current field value. Contrary to TPersistent.Assign, this doesn't copy the rest of properties. After setting, our ValueFromIsClause is always changed to
Descendants implementors notes: In this class, implementation takes care of setting our ValueFromIsClause to if Source is <appropriate class> then begin inherited; Value := Source.value; end else AssignValueRaiseInvalidClass(Source); Source: src/scene/x3d/castlefields_x3dsinglefield_descendants.inc (line 83). | |
![]() |
class function X3DType: String; override; |
|
This item has no description. Showing description inherited from TX3DField.X3DType.
Field type in X3D, like Source: src/scene/x3d/castlefields_x3dsinglefield_descendants.inc (line 85). | |
Properties
![]() |
property Flags[i: integer]: boolean read GetFlags write SetFlags; |
|
Value of this field. You can use Index from the range 0 .. FlagsCount - 1. Source: src/scene/x3d/castlefields_x3dsinglefield_descendants.inc (line 40). | |
![]() |
property FlagNames[i: integer]: string read GetFlagNames; |
|
Names of the flags that can be "on" or "off". Note that this cannot be initialized by CreateUndefined, so you always must initialize this field using the Create overload that takes AFlagNames parameter. Source: src/scene/x3d/castlefields_x3dsinglefield_descendants.inc (line 47). | |
![]() |
property AllString: String read fAllString; |
|
Special strings that will be understood by parser as ALL or NONE bit values. 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. Source: src/scene/x3d/castlefields_x3dsinglefield_descendants.inc (line 60). | |
![]() |
property NoneString: String read fNoneString; |
|
This item has no description. Source: src/scene/x3d/castlefields_x3dsinglefield_descendants.inc (line 61). | |
Generated by PasDoc 0.17.0.snapshot.
