1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
4
<title>Castle Game Engine: X3DNodes: Class TLODNode_2</title>
5
<meta name="generator" content="PasDoc 0.12.1">
6
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
7
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
10
<table class="container"><tr><td class="navigation">
11
<h2>Castle Game Engine</h2><p><a href="introduction.html" class="navigation">Introduction</a></p><p><a href="AllUnits.html" class="navigation">Units</a></p><p><a href="ClassHierarchy.html" class="navigation">Class Hierarchy</a></p><p><a href="AllClasses.html" class="navigation">Classes, Interfaces, Objects and Records</a></p><p><a href="AllTypes.html" class="navigation">Types</a></p><p><a href="AllVariables.html" class="navigation">Variables</a></p><p><a href="AllConstants.html" class="navigation">Constants</a></p><p><a href="AllFunctions.html" class="navigation">Functions and Procedures</a></p><p><a href="AllIdentifiers.html" class="navigation">Identifiers</a></p></td><td class="content">
12
<a name="TLODNode_2"></a><h1 class="cio">Class TLODNode_2</h1>
13
<table class="sections wide_list">
15
<td><a class="section" href="#PasDoc-Description">Description</a></td><td><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></td><td>Fields</td><td><a class="section" href="#PasDoc-Methods">Methods</a></td><td>Properties</td></tr></table>
16
<a name="PasDoc-Description"></a><h2 class="unit">Unit</h2>
18
<a href="X3DNodes.html">X3DNodes</a></p>
19
<h2 class="declaration">Declaration</h2>
20
<p class="declaration">
21
<code>type TLODNode_2 = class(<a class="normal" href="X3DNodes.TAbstractLODNode.html">TAbstractLODNode</a>)</code></p>
22
<h2 class="description">Description</h2>
23
<div class="nodescription">no description available, TAbstractLODNode description follows</div><p>
24
LOD node for VRML/X3D >= 2.0. This is not for VRML <= 1.0 LOD node.
26
<p>It's a common ancestor for VRML 2.0 LOD (<a class="normal" href="X3DNodes.TLODNode_2.html">TLODNode_2</a>) and X3D LOD (<a class="normal" href="X3DNodes.TLODNode.html">TLODNode</a>). Unfortunately, we cannot have a simple common class for both VRML 97 and X3D because there would be a name clash for "level_changed" event:
30
<ul class="paragraph_spacing">
31
<li><p> For VRML 2.0, main MFNode field was named "level" and so "level_changed" is an event reporting when MFNode changed.</p></li>
32
<li><p>For X3D, main MFNode field is named "children", and so "children_changed" reports MFNode changes. "level_changed" is a new field, SFInt32, indicating which child is chosen.</p></li>
37
<p>So level_changed has completely different meanings for VRML 97 and X3D. As an extension we'll add "levelIndex_changed", SFInt32, to be analogous to X3D "level_changed". This way both VRML 2.0 and X3D LOD nodes have the same capabilities, and common interface for programmer (programmer should use X3D event/fields names for Pascal property names), but for parser they will use different names.</p>
38
<a name="PasDoc-Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
39
<ul class="hierarchy"><li class="ancestor">TPersistent</li>
40
<li class="ancestor"><a class="normal" href="CastleInterfaces.TNonRefCountedInterfacedPersistent.html">TNonRefCountedInterfacedPersistent</a></li>
41
<li class="ancestor"><a class="normal" href="X3DFields.TX3DFileItem.html">TX3DFileItem</a></li>
42
<li class="ancestor"><a class="normal" href="X3DNodes.TX3DNode.html">TX3DNode</a></li>
43
<li class="ancestor"><a class="normal" href="X3DNodes.TAbstractNode.html">TAbstractNode</a></li>
44
<li class="ancestor"><a class="normal" href="X3DNodes.TAbstractChildNode.html">TAbstractChildNode</a></li>
45
<li class="ancestor"><a class="normal" href="X3DNodes.TAbstractGroupingNode.html">TAbstractGroupingNode</a></li>
46
<li class="ancestor"><a class="normal" href="X3DNodes.TAbstractX3DGroupingNode.html">TAbstractX3DGroupingNode</a></li>
47
<li class="ancestor"><a class="normal" href="X3DNodes.TAbstractLODNode.html">TAbstractLODNode</a></li>
48
<li class="thisitem">TLODNode_2</li></ul><h2 class="overview">Overview</h2>
49
<a name="PasDoc-Methods"></a><h3 class="summary">Methods</h3>
50
<table class="summary wide_list">
52
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
53
<td class="itemcode"><code>procedure <b><a href="X3DNodes.TLODNode_2.html#CreateNode">CreateNode</a></b>; override;</code></td>
56
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
57
<td class="itemcode"><code>class function <b><a href="X3DNodes.TLODNode_2.html#ForVRMLVersion">ForVRMLVersion</a></b>(const Version: <a href="X3DNodes.html#TX3DVersion">TX3DVersion</a>): boolean; override;</code></td>
60
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
61
<td class="itemcode"><code>class function <b><a href="X3DNodes.TLODNode_2.html#URNMatching">URNMatching</a></b>(const URN: string): boolean; override;</code></td>
64
<h2 class="description">Description</h2>
65
<h3 class="detail">Methods</h3>
66
<table class="detail wide_list">
68
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
69
<td class="itemcode"><a name="CreateNode"></a><code>procedure <b>CreateNode</b>; override;</code></td>
74
<table class="detail wide_list">
76
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
77
<td class="itemcode"><a name="ForVRMLVersion"></a><code>class function <b>ForVRMLVersion</b>(const Version: <a href="X3DNodes.html#TX3DVersion">TX3DVersion</a>): boolean; override;</code></td>
82
<table class="detail wide_list">
84
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
85
<td class="itemcode"><a name="URNMatching"></a><code>class function <b>URNMatching</b>(const URN: string): boolean; override;</code></td>
90
<hr noshade size="1"><span class="appinfo"><em>Generated by <a href="http://pasdoc.sourceforge.net/">PasDoc 0.12.1</a> on 2013-02-04 20:26:55</em>
92
</td></tr></table></body></html>