Castle Game Engine: X3DFields: Class TMFColor

# Class TMFColor
Description | Hierarchy | Fields | Methods | Properties
## Unit X3DFields ## Declaration `type TMFColor = class(TMFVec3f)` ## Description no description available, TMFVec3f description follows no description available, TX3DSimpleMultField description follows Field holding multiple values. Remember that such field may always have any number of items, including zero. Note that we keep MF fields contents in TFPSList or TCastleStringList instances (RawItems in this class, also accessible as Items (with more concrete class) in descendants). This means that they are in compact form, easy for reading, or even for feeding the list into OpenGL. That's the main reason why I did not simply implement `TX3DSimpleMultField` as a descendant of TX3DSingleFieldsList: A long list of vertexes, MFVec3f, would be kept as a list of pointers to a lot of TSFVec3f instances. This would be quite memory-consuming, and very uncomfortable for access. On the contrary, current implementation keeps all these vertexes inside one TVector3SingleList instance, that internally keeps all items in one continuos piece of memory. Descendants implementors notes: to make new descendant: In CreateUndefined you have to initialize FItemClass and create RawItems. In destructor of this class, RawItems are freed, so don't worry about this. Override RawItemsAdd. If your ItemClass doesn't work 100% correctly when it's initialized by CreateUndefined, you may have to override CreateItemBeforeParse. Fortunately, VRML specification was careful to choose as multi-valued field types' only fields that can behave nicely when initialized by CreateUndefined (and in fact VRML 2.0 removed the "bad fields" entirely). Not strictly required, but usually it's comfortable to have a constructor that allows you to init default field value from some "array of TXxx". ## Hierarchy TPersistent TNonRefCountedInterfacedPersistent TX3DFileItem TX3DFieldOrEvent TX3DField TX3DMultField TX3DSimpleMultField TMFVec3f TMFColor ## Overview ### Methods
| `class function TypeName: string; override;`
| `class function CreateEvent(const AParentNode: TX3DFileItem; const AName: string; const AInEvent: boolean): TX3DEvent; override;`
| `procedure Send(const AValue: array of TVector3Single); override;`
## Description ### Methods
| `class function TypeName: string; override;`
| `class function CreateEvent(const AParentNode: TX3DFileItem; const AName: string; const AInEvent: boolean): TX3DEvent; override;`
| `procedure Send(const AValue: array of TVector3Single); override;`
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:14