| 1 |
{%MainUnit x3dnodes.pas} |
| 2 |
{ |
| 3 |
Copyright 2002-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 |
|
| 19 |
{ Forward declarations } { } |
| 20 |
TX3DNodeList = class; |
| 21 |
TX3DNode = class; |
| 22 |
TAbstractMetadataNode = class; |
| 23 |
TCoordinate3Node_1 = class; |
| 24 |
TShapeHintsNode_1 = class; |
| 25 |
TFontStyleNode_1 = class; |
| 26 |
TMaterialNode_1 = class; |
| 27 |
TMaterialBindingNode_1 = class; |
| 28 |
TNormalNode = class; |
| 29 |
TNormalBindingNode_1 = class; |
| 30 |
TTexture2Node_1 = class; |
| 31 |
TTextureCoordinate2Node_1 = class; |
| 32 |
TAbstractGeometryNode = class; |
| 33 |
TAbstractLightNode = class; |
| 34 |
TAbstractShapeNode = class; |
| 35 |
TAbstractTexture2DNode = class; |
| 36 |
TBlendModeNode = class; |
| 37 |
TAbstractTextureNode = class; |
| 38 |
TX3DEventsEngine = class; |
| 39 |
TClipPlaneNode = class; |
| 40 |
THAnimHumanoidNode = class; |
| 41 |
TLocalFogNode = class; |
| 42 |
TEffectNode = class; |
| 43 |
TX3DRootNode = class; |
| 44 |
TX3DGraphTraverseState = class; |
| 45 |
TPointingDeviceSensorList = class; |
| 46 |
TMaterialInfo = class; |
| 47 |
TSFNode = class; |
| 48 |
TMFNode = class; |
| 49 |
TX3DPrototypeNode = class; |
| 50 |
TX3DPrototypeBase = class; |
| 51 |
TX3DPrototypeBaseList = class; |
| 52 |
TX3DRoute = class; |
| 53 |
TX3DRouteList = class; |
| 54 |
TX3DImport = class; |
| 55 |
TX3DExport = class; |
| 56 |
TX3DInterfaceDeclaration = class; |
| 57 |
TX3DNodeNames = class; |
| 58 |
TX3DReaderNames = class; |
| 59 |
TX3DPrototypeNames = class; |
| 60 |
TX3DInterfaceDeclarationList = class; |
| 61 |
TX3DGraphTraverseStateStack = class; |
| 62 |
TShapeNode = class; |
| 63 |
TTransformNode = class; |
| 64 |
TAbstractCoordinateNode = class; |
| 65 |
TAbstractNormalNode = class; |
| 66 |
TFogCoordinateNode = class; |
| 67 |
TAbstractTextureCoordinateNode = class; |
| 68 |
TAbstractEnvironmentTextureNode = class; |
| 69 |
TAbstractPunctualLightNode = class; |
| 70 |
TAbstractColorNode = class; |
| 71 |
TTexturePropertiesNode = class; |
| 72 |
TAbstractTextureTransformNode = class; |
| 73 |
TAbstractSingleTextureCoordinateNode = class; |
| 74 |
TTangentNode = class; |
| 75 |
TTransformFunctionality = class; |
| 76 |
TTimeDependentFunctionality = class; |
| 77 |
TGeneratedTextureFunctionality = class; |
| 78 |
TX3DExportList = class; |
| 79 |
TEnvironmentNode = class; |
| 80 |
|
| 81 |
TX3DNodeClass = class of TX3DNode; |
| 82 |
|
| 83 |
TX3DNodeProc = procedure (Node: TX3DNode) of object; |
| 84 |
TX3DNodeSearchProc = function (Node: TX3DNode): Pointer of object; |
| 85 |
|
| 86 |
PTraversingInfo = ^TTraversingInfo; |
| 87 |
TTraversingInfo = record |
| 88 |
Node: TX3DNode; |
| 89 |
ParentInfo: PTraversingInfo; |
| 90 |
end; |
| 91 |
|
| 92 |
{ Used as a callback by TX3DNode.Traverse. } |
| 93 |
TTraversingFunc = function (Node: TX3DNode; |
| 94 |
StateStack: TX3DGraphTraverseStateStack; |
| 95 |
ParentInfo: PTraversingInfo; |
| 96 |
var TraverseIntoChildren: boolean): Pointer of object; |
| 97 |
|
| 98 |
TTraversingAfterFunc = procedure (Node: TX3DNode; |
| 99 |
StateStack: TX3DGraphTraverseStateStack; |
| 100 |
ParentInfo: PTraversingInfo) of object; |
| 101 |
|
| 102 |
TEnumerateChildrenFunction = |
| 103 |
function (Node, Child: TX3DNode): Pointer of object; |
| 104 |
|
| 105 |
TEnumerateReplaceNodesFunction = |
| 106 |
procedure (ParentNode: TX3DNode; var Node: TX3DNode) of object; |
| 107 |
|
| 108 |
TX3DAccessType = (atInputOnly, atOutputOnly, atInitializeOnly, atInputOutput); |
| 109 |
TX3DAccessTypes = set of TX3DAccessType; |
| 110 |
|
| 111 |
TNodeTransformationChange = ( |
| 112 |
ntcNone, |
| 113 |
ntcSwitch, //< TSwitchNode |
| 114 |
ntcLOD, //< TLODNode |
| 115 |
ntcTransform, //< anything with TTransformFunctionality |
| 116 |
ntcGeometry, //< TAbstractGeometryNode |
| 117 |
ntcBackground, //< TAbstractBackgroundNode |
| 118 |
ntcFog, //< TFogNode |
| 119 |
ntcViewpoint, //< TAbstractViewpointNode |
| 120 |
ntcLight, //< TAbstractLightNode |
| 121 |
ntcProximitySensor, //< TProximitySensorNode |
| 122 |
ntcVisibilitySensor //< TVisibilitySensorNode |
| 123 |
); |
| 124 |
|
| 125 |
TX3DVersion = CastleInternalX3DLexer.TX3DVersion; |
| 126 |
TX3DEncoding = CastleInternalX3DLexer.TX3DEncoding; |
| 127 |
|
| 128 |
{$endif read_interface} |
| 129 |
|
| 130 |
{$ifdef read_implementation} |
| 131 |
|
| 132 |
{$endif read_implementation} |