| 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 GetCrossSectionCurve: TAbstractNurbsControlCurveNode; |
| 28 |
procedure SetCrossSectionCurve(const Value: TAbstractNurbsControlCurveNode); |
| 29 |
function GetTrajectoryCurve: TNurbsCurveNode; |
| 30 |
procedure SetTrajectoryCurve(const Value: TNurbsCurveNode); |
| 31 |
function GetCcw: Boolean; |
| 32 |
procedure SetCcw(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 FFdCrossSectionCurve: TSFNode; |
| 39 |
{ Internal wrapper for property @code(CrossSectionCurve). This wrapper API may change, we advise to access simpler @code(CrossSectionCurve) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 40 |
public property FdCrossSectionCurve: TSFNode read FFdCrossSectionCurve; |
| 41 |
{ } |
| 42 |
property CrossSectionCurve: TAbstractNurbsControlCurveNode read GetCrossSectionCurve write SetCrossSectionCurve; |
| 43 |
|
| 44 |
strict private FFdTrajectoryCurve: TSFNode; |
| 45 |
{ Internal wrapper for property @code(TrajectoryCurve). This wrapper API may change, we advise to access simpler @code(TrajectoryCurve) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 46 |
public property FdTrajectoryCurve: TSFNode read FFdTrajectoryCurve; |
| 47 |
{ } |
| 48 |
property TrajectoryCurve: TNurbsCurveNode read GetTrajectoryCurve write SetTrajectoryCurve; |
| 49 |
|
| 50 |
strict private FFdCcw: TSFBool; |
| 51 |
{ Internal wrapper for property @code(Ccw). This wrapper API may change, we advise to access simpler @code(Ccw) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 52 |
public property FdCcw: TSFBool read FFdCcw; |
| 53 |
{ } |
| 54 |
property Ccw: Boolean read GetCcw write SetCcw; |
| 55 |
|
| 56 |
strict private FFdSolid: TSFBool; |
| 57 |
{ Internal wrapper for property @code(Solid). This wrapper API may change, we advise to access simpler @code(Solid) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 58 |
public property FdSolid: TSFBool read FFdSolid; |
| 59 |
|
| 60 |
{$endif read_interface} |
| 61 |
|
| 62 |
{$ifdef read_implementation} |
| 63 |
|
| 64 |
{ TNurbsSweptSurfaceNode ----------------------------------------------- } |
| 65 |
|
| 66 |
function TNurbsSweptSurfaceNode.GetCrossSectionCurve: TAbstractNurbsControlCurveNode; |
| 67 |
begin |
| 68 |
if FdCrossSectionCurve.Value is TAbstractNurbsControlCurveNode then |
| 69 |
Result := TAbstractNurbsControlCurveNode(FdCrossSectionCurve.Value) |
| 70 |
else |
| 71 |
Result := nil; |
| 72 |
end; |
| 73 |
|
| 74 |
procedure TNurbsSweptSurfaceNode.SetCrossSectionCurve(const Value: TAbstractNurbsControlCurveNode); |
| 75 |
begin |
| 76 |
FdCrossSectionCurve.Send(Value); |
| 77 |
end; |
| 78 |
|
| 79 |
function TNurbsSweptSurfaceNode.GetTrajectoryCurve: TNurbsCurveNode; |
| 80 |
begin |
| 81 |
if FdTrajectoryCurve.Value is TNurbsCurveNode then |
| 82 |
Result := TNurbsCurveNode(FdTrajectoryCurve.Value) |
| 83 |
else |
| 84 |
Result := nil; |
| 85 |
end; |
| 86 |
|
| 87 |
procedure TNurbsSweptSurfaceNode.SetTrajectoryCurve(const Value: TNurbsCurveNode); |
| 88 |
begin |
| 89 |
FdTrajectoryCurve.Send(Value); |
| 90 |
end; |
| 91 |
|
| 92 |
function TNurbsSweptSurfaceNode.GetCcw: Boolean; |
| 93 |
begin |
| 94 |
Result := FdCcw.Value; |
| 95 |
end; |
| 96 |
|
| 97 |
procedure TNurbsSweptSurfaceNode.SetCcw(const Value: Boolean); |
| 98 |
begin |
| 99 |
FdCcw.Send(Value); |
| 100 |
end; |
| 101 |
|
| 102 |
class function TNurbsSweptSurfaceNode.ClassX3DType: String; |
| 103 |
begin |
| 104 |
Result := 'NurbsSweptSurface'; |
| 105 |
end; |
| 106 |
|
| 107 |
procedure TNurbsSweptSurfaceNode.CreateNode; |
| 108 |
begin |
| 109 |
inherited; |
| 110 |
|
| 111 |
FFdCrossSectionCurve := TSFNode.Create(Self, True, 'crossSectionCurve', [TAbstractNurbsControlCurveNode]); |
| 112 |
FdCrossSectionCurve.ChangeAlways := chGeometry; |
| 113 |
AddField(FFdCrossSectionCurve); |
| 114 |
|
| 115 |
FFdTrajectoryCurve := TSFNode.Create(Self, True, 'trajectoryCurve', [TNurbsCurveNode]); |
| 116 |
FdTrajectoryCurve.ChangeAlways := chGeometry; |
| 117 |
AddField(FFdTrajectoryCurve); |
| 118 |
|
| 119 |
FFdCcw := TSFBool.Create(Self, False, 'ccw', true); |
| 120 |
FdCcw.ChangeAlways := chGeometry; |
| 121 |
AddField(FFdCcw); |
| 122 |
|
| 123 |
FFdSolid := TSFBool.Create(Self, False, 'solid', true); |
| 124 |
FdSolid.ChangeAlways := chGeometry; |
| 125 |
AddField(FFdSolid); |
| 126 |
end; |
| 127 |
|
| 128 |
{$endif read_implementation} |