~ubuntu-branches/ubuntu/utopic/castle-game-engine/utopic

« back to all changes in this revision

Viewing changes to doc/pasdoc/html/X3DFields.TMFVec3d.html

  • Committer: Package Import Robot
  • Author(s): Abou Al Montacir
  • Date: 2013-04-27 18:06:40 UTC
  • Revision ID: package-import@ubuntu.com-20130427180640-eink4nmwzuivez1c
Tags: upstream-4.0.1
ImportĀ upstreamĀ versionĀ 4.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
 
2
<html>
 
3
<head>
 
4
<title>Castle Game Engine: X3DFields: Class TMFVec3d</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">
 
8
</head>
 
9
<body>
 
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="TMFVec3d"></a><h1 class="cio">Class TMFVec3d</h1>
 
13
<table class="sections wide_list">
 
14
<tr>
 
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><a class="section" href="#PasDoc-Properties">Properties</a></td></tr></table>
 
16
<a name="PasDoc-Description"></a><h2 class="unit">Unit</h2>
 
17
<p class="unitlink">
 
18
<a  href="X3DFields.html">X3DFields</a></p>
 
19
<h2 class="declaration">Declaration</h2>
 
20
<p class="declaration">
 
21
<code>type TMFVec3d = class(<a class="normal" href="X3DFields.TX3DSimpleMultField.html">TX3DSimpleMultField</a>)</code></p>
 
22
<h2 class="description">Description</h2>
 
23
<div class="nodescription">no description available, TX3DSimpleMultField description follows</div><p>
 
24
Field holding multiple values. Remember that such field may always have any number of items, including zero.
 
25
 
 
26
<p>Note that we keep MF fields contents in TFPSList or <a class="normal" href="CastleStringUtils.TCastleStringList.html">TCastleStringList</a> instances (<a class="normal" href="X3DFields.TX3DSimpleMultField.html#RawItems">RawItems</a> in this class, also accessible as Items (with more concrete class) in descendants). This means that they are in compact form, easy for reading, or even for feeding the list into OpenGL. That's the main reason why I did not simply implement <code>TX3DSimpleMultField</code> as a descendant of TX3DSingleFieldsList: A long list of vertexes, MFVec3f, would be kept as a list of pointers to a lot of <a class="normal" href="X3DFields.TSFVec3f.html">TSFVec3f</a> instances. This would be quite memory-consuming, and very uncomfortable for access. On the contrary, current implementation keeps all these vertexes inside one <a class="normal" href="CastleVectors.TVector3SingleList.html">TVector3SingleList</a> instance, that internally keeps all items in one continuos piece of memory.
 
27
 
 
28
<p><i>Descendants implementors notes</i>: to make new descendant:
 
29
 
 
30
<p></p>
 
31
 
 
32
<ul class="paragraph_spacing">
 
33
  <li><p>In <a class="normal" href="X3DFields.TX3DField.html#CreateUndefined">CreateUndefined</a> you have to initialize FItemClass and create <a class="normal" href="X3DFields.TX3DSimpleMultField.html#RawItems">RawItems</a>. In destructor of this class, <a class="normal" href="X3DFields.TX3DSimpleMultField.html#RawItems">RawItems</a> are freed, so don't worry about this.</p></li>
 
34
  <li><p>Override RawItemsAdd.</p></li>
 
35
  <li><p> If your <a class="normal" href="X3DFields.TX3DSimpleMultField.html#ItemClass">ItemClass</a> doesn't work 100% correctly when it's initialized by <a class="normal" href="X3DFields.TX3DField.html#CreateUndefined">CreateUndefined</a>, you may have to override CreateItemBeforeParse. Fortunately, VRML specification was careful to choose as multi-valued field types' only fields that can behave nicely when initialized by <a class="normal" href="X3DFields.TX3DField.html#CreateUndefined">CreateUndefined</a> (and in fact VRML 2.0 removed the &quot;bad fields&quot; entirely).</p></li>
 
36
  <li><p>Not strictly required, but usually it's comfortable to have a constructor that allows you to init default field value from some &quot;array of TXxx&quot;.</p></li>
 
37
</ul>
 
38
 
 
39
<p></p>
 
40
<a name="PasDoc-Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
 
41
<ul class="hierarchy"><li class="ancestor">TPersistent</li>
 
42
<li class="ancestor"><a class="normal" href="CastleInterfaces.TNonRefCountedInterfacedPersistent.html">TNonRefCountedInterfacedPersistent</a></li>
 
43
<li class="ancestor"><a class="normal" href="X3DFields.TX3DFileItem.html">TX3DFileItem</a></li>
 
44
<li class="ancestor"><a class="normal" href="X3DFields.TX3DFieldOrEvent.html">TX3DFieldOrEvent</a></li>
 
45
<li class="ancestor"><a class="normal" href="X3DFields.TX3DField.html">TX3DField</a></li>
 
46
<li class="ancestor"><a class="normal" href="X3DFields.TX3DMultField.html">TX3DMultField</a></li>
 
47
<li class="ancestor"><a class="normal" href="X3DFields.TX3DSimpleMultField.html">TX3DSimpleMultField</a></li>
 
48
<li class="thisitem">TMFVec3d</li></ul><h2 class="overview">Overview</h2>
 
49
<a name="PasDoc-Methods"></a><h3 class="summary">Methods</h3>
 
50
<table class="summary wide_list">
 
51
<tr class="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="X3DFields.TMFVec3d.html#RawItemsAdd">RawItemsAdd</a></b>(Item: <a  href="X3DFields.TX3DSingleField.html">TX3DSingleField</a>); override;</code></td>
 
54
</tr>
 
55
<tr class="list2">
 
56
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
57
<td class="itemcode"><code>constructor <b><a  href="X3DFields.TMFVec3d.html#Create">Create</a></b>(AParentNode: <a  href="X3DFields.TX3DFileItem.html">TX3DFileItem</a>; const AName: string; const InitialContent: array of <a  href="CastleVectors.html#TVector3Double">TVector3Double</a>);</code></td>
 
58
</tr>
 
59
<tr class="list">
 
60
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
61
<td class="itemcode"><code>constructor <b><a  href="X3DFields.TMFVec3d.html#CreateUndefined">CreateUndefined</a></b>(AParentNode: <a  href="X3DFields.TX3DFileItem.html">TX3DFileItem</a>; const AName: string; const AExposed: boolean); override;</code></td>
 
62
</tr>
 
63
<tr class="list2">
 
64
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
65
<td class="itemcode"><code>function <b><a  href="X3DFields.TMFVec3d.html#EqualsDefaultValue">EqualsDefaultValue</a></b>: boolean; override;</code></td>
 
66
</tr>
 
67
<tr class="list">
 
68
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
69
<td class="itemcode"><code>function <b><a  href="X3DFields.TMFVec3d.html#Equals">Equals</a></b>(SecondValue: <a  href="X3DFields.TX3DField.html">TX3DField</a>; const EqualityEpsilon: Double): boolean; override;</code></td>
 
70
</tr>
 
71
<tr class="list2">
 
72
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
73
<td class="itemcode"><code>procedure <b><a  href="X3DFields.TMFVec3d.html#AssignLerp">AssignLerp</a></b>(const A: Double; Value1, Value2: <a  href="X3DFields.TX3DField.html">TX3DField</a>); override;</code></td>
 
74
</tr>
 
75
<tr class="list">
 
76
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
77
<td class="itemcode"><code>function <b><a  href="X3DFields.TMFVec3d.html#CanAssignLerp">CanAssignLerp</a></b>: boolean; override;</code></td>
 
78
</tr>
 
79
<tr class="list2">
 
80
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
81
<td class="itemcode"><code>procedure <b><a  href="X3DFields.TMFVec3d.html#Assign">Assign</a></b>(Source: TPersistent); override;</code></td>
 
82
</tr>
 
83
<tr class="list">
 
84
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
85
<td class="itemcode"><code>procedure <b><a  href="X3DFields.TMFVec3d.html#AssignValue">AssignValue</a></b>(Source: <a  href="X3DFields.TX3DField.html">TX3DField</a>); override;</code></td>
 
86
</tr>
 
87
<tr class="list2">
 
88
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
89
<td class="itemcode"><code>procedure <b><a  href="X3DFields.TMFVec3d.html#AssignDefaultValueFromValue">AssignDefaultValueFromValue</a></b>; override;</code></td>
 
90
</tr>
 
91
<tr class="list">
 
92
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
93
<td class="itemcode"><code>class function <b><a  href="X3DFields.TMFVec3d.html#TypeName">TypeName</a></b>: string; override;</code></td>
 
94
</tr>
 
95
<tr class="list2">
 
96
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
97
<td class="itemcode"><code>procedure <b><a  href="X3DFields.TMFVec3d.html#Send">Send</a></b>(const AValue: array of <a  href="CastleVectors.html#TVector3Double">TVector3Double</a>); overload;</code></td>
 
98
</tr>
 
99
</table>
 
100
<a name="PasDoc-Properties"></a><h3 class="summary">Properties</h3>
 
101
<table class="summary wide_list">
 
102
<tr class="list">
 
103
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
104
<td class="itemcode"><code>property <b><a  href="X3DFields.TMFVec3d.html#Items">Items</a></b>: <a  href="CastleVectors.TVector3DoubleList.html">TVector3DoubleList</a> read GetItems write SetItems;</code></td>
 
105
</tr>
 
106
<tr class="list2">
 
107
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
108
<td class="itemcode"><code>property <b><a  href="X3DFields.TMFVec3d.html#ItemsSafe">ItemsSafe</a></b>[Index:Integer]: <a  href="CastleVectors.html#TVector3Double">TVector3Double</a>
 
109
      read GetItemsSafe write SetItemsSafe;</code></td>
 
110
</tr>
 
111
</table>
 
112
<h2 class="description">Description</h2>
 
113
<h3 class="detail">Methods</h3>
 
114
<table class="detail wide_list">
 
115
<tr class="list">
 
116
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
117
<td class="itemcode"><a name="RawItemsAdd"></a><code>procedure <b>RawItemsAdd</b>(Item: <a  href="X3DFields.TX3DSingleField.html">TX3DSingleField</a>); override;</code></td>
 
118
</tr>
 
119
<tr><td colspan="2">
 
120
&nbsp;</td></tr>
 
121
</table>
 
122
<table class="detail wide_list">
 
123
<tr class="list">
 
124
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
125
<td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(AParentNode: <a  href="X3DFields.TX3DFileItem.html">TX3DFileItem</a>; const AName: string; const InitialContent: array of <a  href="CastleVectors.html#TVector3Double">TVector3Double</a>);</code></td>
 
126
</tr>
 
127
<tr><td colspan="2">
 
128
&nbsp;</td></tr>
 
129
</table>
 
130
<table class="detail wide_list">
 
131
<tr class="list">
 
132
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
133
<td class="itemcode"><a name="CreateUndefined"></a><code>constructor <b>CreateUndefined</b>(AParentNode: <a  href="X3DFields.TX3DFileItem.html">TX3DFileItem</a>; const AName: string; const AExposed: boolean); override;</code></td>
 
134
</tr>
 
135
<tr><td colspan="2">
 
136
&nbsp;</td></tr>
 
137
</table>
 
138
<table class="detail wide_list">
 
139
<tr class="list">
 
140
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
141
<td class="itemcode"><a name="EqualsDefaultValue"></a><code>function <b>EqualsDefaultValue</b>: boolean; override;</code></td>
 
142
</tr>
 
143
<tr><td colspan="2">
 
144
&nbsp;</td></tr>
 
145
</table>
 
146
<table class="detail wide_list">
 
147
<tr class="list">
 
148
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
149
<td class="itemcode"><a name="Equals"></a><code>function <b>Equals</b>(SecondValue: <a  href="X3DFields.TX3DField.html">TX3DField</a>; const EqualityEpsilon: Double): boolean; override;</code></td>
 
150
</tr>
 
151
<tr><td colspan="2">
 
152
&nbsp;</td></tr>
 
153
</table>
 
154
<table class="detail wide_list">
 
155
<tr class="list">
 
156
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
157
<td class="itemcode"><a name="AssignLerp"></a><code>procedure <b>AssignLerp</b>(const A: Double; Value1, Value2: <a  href="X3DFields.TX3DField.html">TX3DField</a>); override;</code></td>
 
158
</tr>
 
159
<tr><td colspan="2">
 
160
&nbsp;</td></tr>
 
161
</table>
 
162
<table class="detail wide_list">
 
163
<tr class="list">
 
164
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
165
<td class="itemcode"><a name="CanAssignLerp"></a><code>function <b>CanAssignLerp</b>: boolean; override;</code></td>
 
166
</tr>
 
167
<tr><td colspan="2">
 
168
&nbsp;</td></tr>
 
169
</table>
 
170
<table class="detail wide_list">
 
171
<tr class="list">
 
172
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
173
<td class="itemcode"><a name="Assign"></a><code>procedure <b>Assign</b>(Source: TPersistent); override;</code></td>
 
174
</tr>
 
175
<tr><td colspan="2">
 
176
&nbsp;</td></tr>
 
177
</table>
 
178
<table class="detail wide_list">
 
179
<tr class="list">
 
180
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
181
<td class="itemcode"><a name="AssignValue"></a><code>procedure <b>AssignValue</b>(Source: <a  href="X3DFields.TX3DField.html">TX3DField</a>); override;</code></td>
 
182
</tr>
 
183
<tr><td colspan="2">
 
184
&nbsp;</td></tr>
 
185
</table>
 
186
<table class="detail wide_list">
 
187
<tr class="list">
 
188
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
189
<td class="itemcode"><a name="AssignDefaultValueFromValue"></a><code>procedure <b>AssignDefaultValueFromValue</b>; override;</code></td>
 
190
</tr>
 
191
<tr><td colspan="2">
 
192
&nbsp;</td></tr>
 
193
</table>
 
194
<table class="detail wide_list">
 
195
<tr class="list">
 
196
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
197
<td class="itemcode"><a name="TypeName"></a><code>class function <b>TypeName</b>: string; override;</code></td>
 
198
</tr>
 
199
<tr><td colspan="2">
 
200
&nbsp;</td></tr>
 
201
</table>
 
202
<table class="detail wide_list">
 
203
<tr class="list">
 
204
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
205
<td class="itemcode"><a name="Send"></a><code>procedure <b>Send</b>(const AValue: array of <a  href="CastleVectors.html#TVector3Double">TVector3Double</a>); overload;</code></td>
 
206
</tr>
 
207
<tr><td colspan="2">
 
208
&nbsp;</td></tr>
 
209
</table>
 
210
<h3 class="detail">Properties</h3>
 
211
<table class="detail wide_list">
 
212
<tr class="list">
 
213
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
214
<td class="itemcode"><a name="Items"></a><code>property <b>Items</b>: <a  href="CastleVectors.TVector3DoubleList.html">TVector3DoubleList</a> read GetItems write SetItems;</code></td>
 
215
</tr>
 
216
<tr><td colspan="2">
 
217
&nbsp;</td></tr>
 
218
</table>
 
219
<table class="detail wide_list">
 
220
<tr class="list">
 
221
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
222
<td class="itemcode"><a name="ItemsSafe"></a><code>property <b>ItemsSafe</b>[Index:Integer]: <a  href="CastleVectors.html#TVector3Double">TVector3Double</a>
 
223
      read GetItemsSafe write SetItemsSafe;</code></td>
 
224
</tr>
 
225
<tr><td colspan="2">
 
226
<p>
 
227
Access Items[] checking for range errors. In case of errors, Get will return zero vector, Set will do nothing, and both will produce clear <a class="normal" href="CastleWarnings.html#OnWarning">OnWarning</a>.</p>
 
228
</td></tr>
 
229
</table>
 
230
<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:54</em>
 
231
</span>
 
232
</td></tr></table></body></html>