| 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 GetTessellation: Integer; |
| 28 |
procedure SetTessellation(const Value: Integer); |
| 29 |
function GetClosed: Boolean; |
| 30 |
procedure SetClosed(const Value: Boolean); |
| 31 |
function GetOrder: Integer; |
| 32 |
procedure SetOrder(const Value: Integer); |
| 33 |
public |
| 34 |
{ Create node fields and events. } |
| 35 |
procedure CreateNode; override; |
| 36 |
class function ClassX3DType: String; override; |
| 37 |
|
| 38 |
strict private FFdTessellation: TSFInt32; |
| 39 |
{ Internal wrapper for property @code(Tessellation). This wrapper API may change, we advise to access simpler @code(Tessellation) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 40 |
public property FdTessellation: TSFInt32 read FFdTessellation; |
| 41 |
{ } |
| 42 |
property Tessellation: Integer read GetTessellation write SetTessellation; |
| 43 |
|
| 44 |
strict private FFdWeight: TMFDouble; |
| 45 |
{ Internal wrapper for property @code(Weight). This wrapper API may change, we advise to access simpler @code(Weight) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 46 |
public property FdWeight: TMFDouble read FFdWeight; |
| 47 |
{ } |
| 48 |
procedure SetWeight(const Value: array of Double); overload; |
| 49 |
{ } |
| 50 |
procedure SetWeight(const Value: TDoubleList); overload; |
| 51 |
|
| 52 |
strict private FFdClosed: TSFBool; |
| 53 |
{ Internal wrapper for property @code(Closed). This wrapper API may change, we advise to access simpler @code(Closed) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 54 |
public property FdClosed: TSFBool read FFdClosed; |
| 55 |
{ } |
| 56 |
property Closed: Boolean read GetClosed write SetClosed; |
| 57 |
|
| 58 |
strict private FFdKnot: TMFDouble; |
| 59 |
{ Internal wrapper for property @code(Knot). This wrapper API may change, we advise to access simpler @code(Knot) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 60 |
public property FdKnot: TMFDouble read FFdKnot; |
| 61 |
{ } |
| 62 |
procedure SetKnot(const Value: array of Double); overload; |
| 63 |
{ } |
| 64 |
procedure SetKnot(const Value: TDoubleList); overload; |
| 65 |
|
| 66 |
strict private FFdOrder: TSFInt32; |
| 67 |
{ Internal wrapper for property @code(Order). This wrapper API may change, we advise to access simpler @code(Order) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 68 |
public property FdOrder: TSFInt32 read FFdOrder; |
| 69 |
{ } |
| 70 |
property Order: Integer read GetOrder write SetOrder; |
| 71 |
|
| 72 |
{$endif read_interface} |
| 73 |
|
| 74 |
{$ifdef read_implementation} |
| 75 |
|
| 76 |
{ TNurbsCurve2DNode ----------------------------------------------- } |
| 77 |
|
| 78 |
function TNurbsCurve2DNode.GetTessellation: Integer; |
| 79 |
begin |
| 80 |
Result := FdTessellation.Value; |
| 81 |
end; |
| 82 |
|
| 83 |
procedure TNurbsCurve2DNode.SetTessellation(const Value: Integer); |
| 84 |
begin |
| 85 |
FdTessellation.Send(Value); |
| 86 |
end; |
| 87 |
|
| 88 |
procedure TNurbsCurve2DNode.SetWeight(const Value: array of Double); |
| 89 |
begin |
| 90 |
FdWeight.Send(Value); |
| 91 |
end; |
| 92 |
|
| 93 |
procedure TNurbsCurve2DNode.SetWeight(const Value: TDoubleList); |
| 94 |
begin |
| 95 |
FdWeight.Send(Value); |
| 96 |
end; |
| 97 |
|
| 98 |
function TNurbsCurve2DNode.GetClosed: Boolean; |
| 99 |
begin |
| 100 |
Result := FdClosed.Value; |
| 101 |
end; |
| 102 |
|
| 103 |
procedure TNurbsCurve2DNode.SetClosed(const Value: Boolean); |
| 104 |
begin |
| 105 |
FdClosed.Send(Value); |
| 106 |
end; |
| 107 |
|
| 108 |
procedure TNurbsCurve2DNode.SetKnot(const Value: array of Double); |
| 109 |
begin |
| 110 |
FdKnot.Send(Value); |
| 111 |
end; |
| 112 |
|
| 113 |
procedure TNurbsCurve2DNode.SetKnot(const Value: TDoubleList); |
| 114 |
begin |
| 115 |
FdKnot.Send(Value); |
| 116 |
end; |
| 117 |
|
| 118 |
function TNurbsCurve2DNode.GetOrder: Integer; |
| 119 |
begin |
| 120 |
Result := FdOrder.Value; |
| 121 |
end; |
| 122 |
|
| 123 |
procedure TNurbsCurve2DNode.SetOrder(const Value: Integer); |
| 124 |
begin |
| 125 |
FdOrder.Send(Value); |
| 126 |
end; |
| 127 |
|
| 128 |
class function TNurbsCurve2DNode.ClassX3DType: String; |
| 129 |
begin |
| 130 |
Result := 'NurbsCurve2D'; |
| 131 |
end; |
| 132 |
|
| 133 |
procedure TNurbsCurve2DNode.CreateNode; |
| 134 |
begin |
| 135 |
inherited; |
| 136 |
|
| 137 |
FFdTessellation := TSFInt32.Create(Self, True, 'tessellation', 0); |
| 138 |
FdTessellation.ChangeAlways := chVisibleNonGeometry; |
| 139 |
AddField(FFdTessellation); |
| 140 |
|
| 141 |
FFdWeight := TMFDouble.Create(Self, True, 'weight', []); |
| 142 |
FdWeight.ChangeAlways := chVisibleNonGeometry; |
| 143 |
AddField(FFdWeight); |
| 144 |
|
| 145 |
FFdClosed := TSFBool.Create(Self, False, 'closed', false); |
| 146 |
FdClosed.ChangeAlways := chVisibleNonGeometry; |
| 147 |
AddField(FFdClosed); |
| 148 |
|
| 149 |
FFdKnot := TMFDouble.Create(Self, False, 'knot', []); |
| 150 |
FdKnot.ChangeAlways := chVisibleNonGeometry; |
| 151 |
AddField(FFdKnot); |
| 152 |
|
| 153 |
FFdOrder := TSFInt32.Create(Self, False, 'order', 3); |
| 154 |
FdOrder.ChangeAlways := chVisibleNonGeometry; |
| 155 |
AddField(FFdOrder); |
| 156 |
end; |
| 157 |
|
| 158 |
{$endif read_implementation} |