| 1 |
{ -*- buffer-read-only: t -*- |
| 2 |
|
| 3 |
Copyright 2015-2024 Michalis Kamburelis. |
| 4 |
|
| 5 |
This file is part of "Castle Game Engine". |
| 6 |
|
| 7 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 8 |
included in this distribution, for details about the copyright. |
| 9 |
|
| 10 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 |
|
| 14 |
---------------------------------------------------------------------------- |
| 15 |
} |
| 16 |
|
| 17 |
{ Automatically generated node properties. |
| 18 |
|
| 19 |
Do not edit this file manually! |
| 20 |
To add new properties: |
| 21 |
- add them to the text files in tools/internal/x3d-nodes-to-pascal/nodes-specification/ , |
| 22 |
- and regenerate include files by running x3d-nodes-to-pascal } |
| 23 |
|
| 24 |
{$ifdef read_interface} |
| 25 |
|
| 26 |
strict private |
| 27 |
function GetCoord: TAbstractCoordinateNode; |
| 28 |
procedure SetCoord(const Value: TAbstractCoordinateNode); |
| 29 |
function GetDirection: TVector3; |
| 30 |
procedure SetDirection(const Value: TVector3); |
| 31 |
function GetInternal: Boolean; |
| 32 |
procedure SetInternal(const Value: Boolean); |
| 33 |
public |
| 34 |
{ Create node fields and events. } |
| 35 |
procedure CreateNode; override; |
| 36 |
class function ClassX3DType: String; override; |
| 37 |
|
| 38 |
strict private FEventSet_coordIndex: TMFInt32Event; |
| 39 |
{ } |
| 40 |
public property EventSet_coordIndex: TMFInt32Event read FEventSet_coordIndex; |
| 41 |
|
| 42 |
strict private FFdCoord: TSFNode; |
| 43 |
{ Internal wrapper for property @code(Coord). This wrapper API may change, we advise to access simpler @code(Coord) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 44 |
public property FdCoord: TSFNode read FFdCoord; |
| 45 |
{ } |
| 46 |
property Coord: TAbstractCoordinateNode read GetCoord write SetCoord; |
| 47 |
|
| 48 |
strict private FFdDirection: TSFVec3f; |
| 49 |
{ Internal wrapper for property @code(Direction). This wrapper API may change, we advise to access simpler @code(Direction) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 50 |
public property FdDirection: TSFVec3f read FFdDirection; |
| 51 |
{ } |
| 52 |
property Direction: TVector3 read GetDirection write SetDirection; |
| 53 |
|
| 54 |
strict private FFdCoordIndex: TMFInt32; |
| 55 |
{ Internal wrapper for property @code(CoordIndex). This wrapper API may change, we advise to access simpler @code(CoordIndex) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 56 |
public property FdCoordIndex: TMFInt32 read FFdCoordIndex; |
| 57 |
{ } |
| 58 |
procedure SetCoordIndex(const Value: array of Int32); overload; |
| 59 |
{ } |
| 60 |
procedure SetCoordIndex(const Value: TInt32List); overload; |
| 61 |
|
| 62 |
strict private FFdInternal: TSFBool; |
| 63 |
{ Internal wrapper for property @code(Internal). This wrapper API may change, we advise to access simpler @code(Internal) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 64 |
public property FdInternal: TSFBool read FFdInternal; |
| 65 |
{ } |
| 66 |
property Internal: Boolean read GetInternal write SetInternal; |
| 67 |
|
| 68 |
{$endif read_interface} |
| 69 |
|
| 70 |
{$ifdef read_implementation} |
| 71 |
|
| 72 |
{ TVolumeEmitterNode ----------------------------------------------- } |
| 73 |
|
| 74 |
function TVolumeEmitterNode.GetCoord: TAbstractCoordinateNode; |
| 75 |
begin |
| 76 |
if FdCoord.Value is TAbstractCoordinateNode then |
| 77 |
Result := TAbstractCoordinateNode(FdCoord.Value) |
| 78 |
else |
| 79 |
Result := nil; |
| 80 |
end; |
| 81 |
|
| 82 |
procedure TVolumeEmitterNode.SetCoord(const Value: TAbstractCoordinateNode); |
| 83 |
begin |
| 84 |
FdCoord.Send(Value); |
| 85 |
end; |
| 86 |
|
| 87 |
function TVolumeEmitterNode.GetDirection: TVector3; |
| 88 |
begin |
| 89 |
Result := FdDirection.Value; |
| 90 |
end; |
| 91 |
|
| 92 |
procedure TVolumeEmitterNode.SetDirection(const Value: TVector3); |
| 93 |
begin |
| 94 |
FdDirection.Send(Value); |
| 95 |
end; |
| 96 |
|
| 97 |
procedure TVolumeEmitterNode.SetCoordIndex(const Value: array of Int32); |
| 98 |
begin |
| 99 |
FdCoordIndex.Send(Value); |
| 100 |
end; |
| 101 |
|
| 102 |
procedure TVolumeEmitterNode.SetCoordIndex(const Value: TInt32List); |
| 103 |
begin |
| 104 |
FdCoordIndex.Send(Value); |
| 105 |
end; |
| 106 |
|
| 107 |
function TVolumeEmitterNode.GetInternal: Boolean; |
| 108 |
begin |
| 109 |
Result := FdInternal.Value; |
| 110 |
end; |
| 111 |
|
| 112 |
procedure TVolumeEmitterNode.SetInternal(const Value: Boolean); |
| 113 |
begin |
| 114 |
FdInternal.Send(Value); |
| 115 |
end; |
| 116 |
|
| 117 |
class function TVolumeEmitterNode.ClassX3DType: String; |
| 118 |
begin |
| 119 |
Result := 'VolumeEmitter'; |
| 120 |
end; |
| 121 |
|
| 122 |
procedure TVolumeEmitterNode.CreateNode; |
| 123 |
begin |
| 124 |
inherited; |
| 125 |
|
| 126 |
FEventSet_coordIndex := TMFInt32Event.Create(Self, 'set_coordIndex', true); |
| 127 |
AddEvent(FEventSet_coordIndex); |
| 128 |
|
| 129 |
FFdCoord := TSFNode.Create(Self, True, 'coord', [TAbstractCoordinateNode]); |
| 130 |
FdCoord.ChangeAlways := chVisibleNonGeometry; |
| 131 |
AddField(FFdCoord); |
| 132 |
|
| 133 |
FFdDirection := TSFVec3f.Create(Self, True, 'direction', Vector3(0, 1, 0)); |
| 134 |
FdDirection.ChangeAlways := chVisibleNonGeometry; |
| 135 |
AddField(FFdDirection); |
| 136 |
|
| 137 |
FFdCoordIndex := TMFInt32.Create(Self, False, 'coordIndex', [-1]); |
| 138 |
FdCoordIndex.ChangeAlways := chVisibleNonGeometry; |
| 139 |
AddField(FFdCoordIndex); |
| 140 |
|
| 141 |
FFdInternal := TSFBool.Create(Self, False, 'internal', true); |
| 142 |
FdInternal.ChangeAlways := chVisibleNonGeometry; |
| 143 |
AddField(FFdInternal); |
| 144 |
end; |
| 145 |
|
| 146 |
{$endif read_implementation} |