| 1 |
{%MainUnit x3dnodes.pas} |
| 2 |
{ |
| 3 |
Copyright 2008-2022 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 |
{$ifdef read_interface} |
| 18 |
TPickSensorIntersectionType = ( |
| 19 |
piGeometry, |
| 20 |
piBounds |
| 21 |
); |
| 22 |
|
| 23 |
TPickSensorRange = ( |
| 24 |
prAny, |
| 25 |
prClosest, |
| 26 |
prAll, |
| 27 |
prAllSorted |
| 28 |
); |
| 29 |
|
| 30 |
TAbstractPickSensorNode = class(TAbstractSensorNode) |
| 31 |
{$I auto_generated_node_helpers/x3dnodes_x3dpicksensornode.inc} |
| 32 |
end; |
| 33 |
|
| 34 |
TLinePickSensorNode = class(TAbstractPickSensorNode) |
| 35 |
{$I auto_generated_node_helpers/x3dnodes_linepicksensor.inc} |
| 36 |
end; |
| 37 |
|
| 38 |
TPickableGroupNode = class(TAbstractGroupingNode) |
| 39 |
{$I auto_generated_node_helpers/x3dnodes_pickablegroup.inc} |
| 40 |
end; |
| 41 |
|
| 42 |
TPointPickSensorNode = class(TAbstractPickSensorNode) |
| 43 |
{$I auto_generated_node_helpers/x3dnodes_pointpicksensor.inc} |
| 44 |
end; |
| 45 |
|
| 46 |
TPrimitivePickSensorNode = class(TAbstractPickSensorNode) |
| 47 |
{$I auto_generated_node_helpers/x3dnodes_primitivepicksensor.inc} |
| 48 |
end; |
| 49 |
|
| 50 |
TVolumePickSensorNode = class(TAbstractPickSensorNode) |
| 51 |
{$I auto_generated_node_helpers/x3dnodes_volumepicksensor.inc} |
| 52 |
end; |
| 53 |
|
| 54 |
{$endif read_interface} |
| 55 |
|
| 56 |
{$ifdef read_implementation} |
| 57 |
|
| 58 |
const |
| 59 |
PickSensorIntersectionTypeNames: array [TPickSensorIntersectionType] of String = ( |
| 60 |
'GEOMETRY', |
| 61 |
'BOUNDS' |
| 62 |
); |
| 63 |
|
| 64 |
PickSensorRangeNames: array [TPickSensorRange] of String = ( |
| 65 |
'ANY', |
| 66 |
'CLOSEST', |
| 67 |
'ALL', |
| 68 |
'ALL_SORTED' |
| 69 |
); |
| 70 |
|
| 71 |
{$I auto_generated_node_helpers/x3dnodes_x3dpicksensornode.inc} |
| 72 |
{$I auto_generated_node_helpers/x3dnodes_linepicksensor.inc} |
| 73 |
{$I auto_generated_node_helpers/x3dnodes_pickablegroup.inc} |
| 74 |
{$I auto_generated_node_helpers/x3dnodes_pointpicksensor.inc} |
| 75 |
{$I auto_generated_node_helpers/x3dnodes_primitivepicksensor.inc} |
| 76 |
{$I auto_generated_node_helpers/x3dnodes_volumepicksensor.inc} |
| 77 |
|
| 78 |
procedure RegisterPickingNodes; |
| 79 |
begin |
| 80 |
NodesManager.RegisterNodeClasses([ |
| 81 |
TLinePickSensorNode, |
| 82 |
TPickableGroupNode, |
| 83 |
TPointPickSensorNode, |
| 84 |
TPrimitivePickSensorNode, |
| 85 |
TVolumePickSensorNode |
| 86 |
]); |
| 87 |
end; |
| 88 |
|
| 89 |
{$endif read_implementation} |