Class TCastleVector3Persistent
Unit
Declaration
type TCastleVector3Persistent = class(TCastleComponent)
Description
TVector3 record represented as a TPersistent descendant, to be able to visually edit it (in Lazarus and Delphi visual designer, and Castle Game Engine visual designer) and to serialize it.
Normal user code does not need to deal with this class or it's instances. Instead directly operate on TVector3 values, which is faster and more natural. TVector3 are simple records, so they are naturally copied on assignment, and various operators like additions work in a natural way too.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleVector3Persistent
Overview
Fields
InternalGetValue: TGetVector3Event; |
|
InternalSetValue: TSetVector3Event; |
|
InternalDefaultValue: TVector3; |
Methods
procedure Loaded; override; |
|
constructor Create(const AOwner: TComponent = nil); reintroduce; |
|
function HasDefaultValue: Boolean; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
Properties
property Value: TVector3 read GetValue write SetValue; |
|
property X: Single read GetX write SetX stored XIsStored nodefault; |
|
property Y: Single read GetY write SetY stored YIsStored nodefault; |
|
property Z: Single read GetZ write SetZ stored ZIsStored nodefault; |
Description
Fields
InternalGetValue: TGetVector3Event; |
|
InternalSetValue: TSetVector3Event; |
|
InternalDefaultValue: TVector3; |
|
Methods
procedure Loaded; override; |
|
constructor Create(const AOwner: TComponent = nil); reintroduce; |
|
function HasDefaultValue: Boolean; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
|
Properties
property Value: TVector3 read GetValue write SetValue; |
|
property X: Single read GetX write SetX stored XIsStored nodefault; |
|
property Y: Single read GetY write SetY stored YIsStored nodefault; |
|
property Z: Single read GetZ write SetZ stored ZIsStored nodefault; |
|
Generated by PasDoc 0.16.0.