You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
; This would create a new 2.5d window, plotting the ENERGY value of all turtles that are red.
149
140
```
150
141
151
-
152
142
### `view2.5d:update-all-patch-views`
153
143
154
144
```NetLogo
155
145
view2.5d:update-all-patch-views
156
146
```
157
147
158
-
159
148
This command must be called from the Observer context.
160
149
Updates all existing patch-view windows according to the latest values.
161
150
162
-
163
151
### `view2.5d:update-patch-view`
164
152
165
153
```NetLogo
166
154
view2.5d:update-patch-view Title
167
155
```
168
156
169
-
170
157
This command must be called from the Observer context.
171
158
Updates only the patch-view window with the specified title (if any).
172
159
173
-
174
160
### `view2.5d:update-turtle-view`
175
161
176
162
```NetLogo
177
163
view2.5d:update-turtle-view Title Agents
178
164
```
179
165
180
-
181
166
This command must be called from the Observer context.
182
167
Updates only the turtle-view window with the specified title (if any).
183
168
The turtle-set selector must be supplied to refresh the set of turtles.
184
169
185
-
186
170
### `view2.5d:get-z-scale`
187
171
188
172
```NetLogo
189
173
view2.5d:get-z-scale title
190
174
```
191
175
192
-
193
176
This reporter must be called from the Observer context.
194
177
Returns the current z-scale of the turtle-view or patch-view window with the specified title (if any).
195
178
196
-
197
179
### `view2.5d:set-z-scale`
198
180
199
181
```NetLogo
200
182
view2.5d:set-z-scale Title new-z-scale
201
183
```
202
184
203
-
204
185
This command must be called from the Observer context.
205
186
Updates only the turtle-view or patch-view window with the specified title (if any).
206
187
The view is now displayed with the new z-scale.
207
188
208
-
209
189
### `view2.5d:set-turtle-stem-thickness`
210
190
211
191
```NetLogo
212
192
view2.5d:set-turtle-stem-thickness Title thickness
213
193
```
214
194
215
-
216
195
This command must be called from the Observer context.
217
196
Updates only the turtle-view window with the specified title (if any).
218
197
Turtles are now drawn with "pins" or "stems" that have the specified thickness (instead of the hairline default).
219
198
220
-
221
199
### `view2.5d:set-turtle-stem-color`
222
200
223
201
```NetLogo
224
202
view2.5d:set-turtle-stem-color Title colorReporter
225
203
```
226
204
227
-
228
205
This command must be called from the Observer context.
229
206
Updates only the turtle-view window with the specified title (if any).
230
207
colorReporter is an anonymous reporter that should take a turtle as input, and report some number representing a color from it.
@@ -251,152 +228,125 @@ view2.5d:set-turtle-stem-color "Test" [ the-turtle -> [ color ] of the-turtle ]
251
228
view2.5d:set-turtle-stem-color "Test" [ orange ]
252
229
```
253
230
254
-
255
231
### `view2.5d:show-links-xy-plane`
256
232
257
233
```NetLogo
258
234
view2.5d:show-links-xy-plane Title
259
235
```
260
236
261
-
262
-
This command must be called from the Observer context.
263
-
Updates only the turtle-view or patch-view window with the specified title (if any).
264
-
Links are drawn in the xy-plane (instead of the turtle to turtle default).
265
-
This option can be selected using the Link Options xy-plane radio Button in the 3D view.
266
-
237
+
This command must be called from the Observer context.
238
+
Updates only the turtle-view or patch-view window with the specified title (if any).
239
+
Links are drawn in the xy-plane (instead of the turtle to turtle default).
240
+
This option can be selected using the Link Options xy-plane radio Button in the 3D view.
267
241
268
242
### `view2.5d:show-links-xyz`
269
243
270
244
```NetLogo
271
245
view2.5d:show-links-xyz Title
272
246
```
273
247
274
-
275
-
This command must be called from the Observer context.
276
-
Updates only the turtle-view or patch-view window with the specified title (if any).
277
-
Links are drawn from turtle to turtle (this is the default way links are displayed).
278
-
This option can be selected using the Link Options xyz radio Button in the 3D view.
279
-
248
+
This command must be called from the Observer context.
249
+
Updates only the turtle-view or patch-view window with the specified title (if any).
250
+
Links are drawn from turtle to turtle (this is the default way links are displayed).
251
+
This option can be selected using the Link Options xyz radio Button in the 3D view.
280
252
281
253
### `view2.5d:get-observer-angles`
282
254
283
255
```NetLogo
284
256
view2.5d:get-observer-angles Title
285
257
```
286
258
287
-
288
259
This reporter must be called from the Observer context.
289
260
Returns a list reflecting the observer's angular perspective { heading pitch } (the place on an imaginary sphere at the zoom distance is updated to obey heading & pitch given)
290
261
291
-
292
262
### `view2.5d:set-observer-angles`
293
263
294
264
```NetLogo
295
265
view2.5d:set-observer-angles Title heading pitch
296
266
```
297
267
298
-
299
268
This command must be called from the Observer context.
300
269
Updates only the turtle-view window with the specified title (if any).
301
270
Sets the observer's angular perspective (the place on an imaginary sphere at the zoom distance is updated to obey heading & pitch given)
302
271
303
-
304
272
### `view2.5d:get-observer-xy-focus`
305
273
306
274
```NetLogo
307
275
view2.5d:get-observer-xy-focus Title
308
276
```
309
277
310
-
311
278
This reporter must be called from the Observer context.
312
279
Returns a list reflecting the x and y coordinates the observer is "looking at" in the patch plane.
313
280
314
-
315
281
### `view2.5d:set-observer-xy-focus`
316
282
317
283
```NetLogo
318
284
view2.5d:set-observer-xy-focus Title number ycor
319
285
```
320
286
321
-
322
287
This command must be called from the Observer context.
323
288
Updates only the turtle-view window with the specified title (if any).
324
289
Sets the x and y coordinates the observer that is "looking at" in the patch plane.
325
290
326
-
327
291
### `view2.5d:get-observer-distance`
328
292
329
293
```NetLogo
330
294
view2.5d:get-observer-distance Title
331
295
```
332
296
333
-
334
297
This reporter must be called from the Observer context.
335
298
Returns the observer's distance from its "focus point"
336
299
337
-
338
300
### `view2.5d:set-observer-distance`
339
301
340
302
```NetLogo
341
303
view2.5d:set-observer-distance Title new-distance
342
304
```
343
305
344
-
345
306
This command must be called from the Observer context.
346
307
Updates only the turtle-view window with the specified title (if any).
347
308
Sets the observer's distance from its "focus point"
348
309
349
-
350
310
### `view2.5d:remove-patch-view`
351
311
352
312
```NetLogo
353
313
view2.5d:remove-patch-view Title
354
314
```
355
315
356
-
357
316
This command closes and removes the specified patch view programmatically (equivalent to closing the window manually).
358
317
359
-
360
318
### `view2.5d:remove-turtle-view`
361
319
362
320
```NetLogo
363
321
view2.5d:remove-turtle-view Title
364
322
```
365
323
366
-
367
324
This command closes and removes the specified turtle view programmatically (equivalent to closing the window manually).
368
325
369
-
370
326
### `view2.5d:remove-all-patch-views`
371
327
372
328
```NetLogo
373
329
view2.5d:remove-all-patch-views
374
330
```
375
331
376
-
377
332
This command closes and removes all patch views programmatically (equivalent to closing the windows manually).
378
333
379
-
380
334
### `view2.5d:remove-all-turtle-views`
381
335
382
336
```NetLogo
383
337
view2.5d:remove-all-turtle-views
384
338
```
385
339
386
-
387
340
This command closes and removes all turtle views programmatically (equivalent to closing the windows manually).
388
341
389
-
390
342
### `view2.5d:count-windows`
391
343
392
344
```NetLogo
393
345
view2.5d:count-windows
394
346
```
395
347
396
-
397
348
This reporter returns the number of turtle and patch views that are currently active.
398
349
399
-
400
350
## Acknowledgement
401
351
402
352
For development of the View 2.5D NetLogo Extension, we acknowledge financial support from Joshua M. Epstein's NIH Director's Pioneer Award (DP1).
0 commit comments