Codebase list java3d / d5c45cc9-1875-4208-9c31-7c22e232ac71/main j3d-core / docs / api-changes-1_4.txt
d5c45cc9-1875-4208-9c31-7c22e232ac71/main

Tree @d5c45cc9-1875-4208-9c31-7c22e232ac71/main (Download .tar.gz)

api-changes-1_4.txt @d5c45cc9-1875-4208-9c31-7c22e232ac71/mainraw · history · blame

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
------------------------------------------------------------------------
$RCSfile: api-changes-1_4.txt,v $
$Revision: 1.2 $
$Date: 2005/10/17 22:54:39 $
------------------------------------------------------------------------
This document conatains proposed API changes to the Java 3D 1.4 API
that deviate from the 1.3 API.

This file must be updated to record the addition or deprecation of any
public or protected class, interface, field, constructor, or method to
the Java 3D API.

The one exception to this rule is that you don't need to update this
file when adding a non-final (i.e., virtual) method to a class if that
method--with exactly the same signature--already exists in a
superclass.  For example, adding a "toString" method to a j3d object
doesn't require an entry in this file.  Likewise, adding duplicateNode
or cloneNode methods to Node subclasses doesn't require an entry in
this file.

No incompatible changes to the Java 3D 1.3 API are allowed.


I. New/deprecated fields, constructors, methods

    Canvas3D
    --------
    New methods:
	public boolean isShadingLanguageSupported(int shadingLanguage)


    SceneGraphObject
    ----------------
    New methods:
	public void setName(String name)
	public String getName()


    GeometryArray
    -------------
    New fields:
	public static final int ALLOW_VERTEX_ATTR_READ
	public static final int ALLOW_VERTEX_ATTR_WRITE
	public static final int VERTEX_ATTRIBUTES

    New constructors:
	public GeometryArray(int vertexCount,
			     int vertexFormat,
			     int texCoordSetCount,
			     int[] texCoordSetMap,
			     int vertexAttrCount,
			     int[] vertexAttrSizes)

    New methods:
	public int getVertexAttrCount()
	public void getVertexAttrSizes(int[] vertexAttrSizes)
	public void setVertexAttr(int vertexAttrNum, int index,
				  float[] vertexAttr)
	public void setVertexAttr(int vertexAttrNum, int index,
				  Point2f vertexAttr)
	public void setVertexAttr(int vertexAttrNum, int index,
				  Point3f vertexAttr)
	public void setVertexAttr(int vertexAttrNum, int index,
				  Point4f vertexAttr)
	public void setVertexAttrs(int vertexAttrNum, int index,
				   float[] vertexAttrs)
	public void setVertexAttrs(int vertexAttrNum, int index,
				   Point2f[] vertexAttrs)
	public void setVertexAttrs(int vertexAttrNum, int index,
				   Point3f[] vertexAttrs)
	public void setVertexAttrs(int vertexAttrNum, int index,
				   Point4f[] vertexAttrs)
	public void setVertexAttrs(int vertexAttrNum, int index,
				   float[] vertexAttrs,
				   int start, int length)
	public void setVertexAttrs(int vertexAttrNum, int index,
				   Point2f[] vertexAttrs,
				   int start, int length)
	public void setVertexAttrs(int vertexAttrNum, int index,
				   Point3f[] vertexAttrs,
				   int start, int length)
	public void setVertexAttrs(int vertexAttrNum, int index,
				   Point4f[] vertexAttrs,
				   int start, int length)
	public void getVertexAttr(int vertexAttrNum, int index,
				  float[] vertexAttr)
	public void getVertexAttr(int vertexAttrNum, int index,
				  Point2f vertexAttr)
	public void getVertexAttr(int vertexAttrNum, int index,
				  Point3f vertexAttr)
	public void getVertexAttr(int vertexAttrNum, int index,
				  Point4f vertexAttr)
	public void getVertexAttrs(int vertexAttrNum, int index,
				   float[] vertexAttrs)
	public void getVertexAttrs(int vertexAttrNum, int index,
				   Point2f[] vertexAttrs)
	public void getVertexAttrs(int vertexAttrNum, int index,
				   Point3f[] vertexAttrs)
	public void getVertexAttrs(int vertexAttrNum, int index,
				   Point4f[] vertexAttrs)
	public void setInitialVertexAttrIndex(int vertexAttrNum,
					      int initialVertexAttrIndex)
	public int getInitialVertexAttrIndex(int vertexAttrNum)
	public void setVertexAttrRefBuffer(int vertexAttrNum, J3DBuffer vertexAttrs)
	public J3DBuffer getVertexAttrRefBuffer(int vertexAttrNum)
	public void setVertexAttrRefFloat(int vertexAttrNum, float[] vertexAttrs)
	public float[] getVertexAttrRefFloat(int vertexAttrNum)


    PointArray
    ----------
    New constructors:
	public PointArray(int vertexCount,
			  int vertexFormat,
			  int texCoordSetCount,
			  int[] texCoordSetMap,
			  int vertexAttrCount,
			  int[] vertexAttrSizes)


    LineArray
    ---------
    New constructors:
	public LineArray(int vertexCount,
			 int vertexFormat,
			 int texCoordSetCount,
			 int[] texCoordSetMap,
			 int vertexAttrCount,
			 int[] vertexAttrSizes)


    TriangleArray
    -------------
    New constructors:
	public TriangleArray(int vertexCount,
			     int vertexFormat,
			     int texCoordSetCount,
			     int[] texCoordSetMap,
			     int vertexAttrCount,
			     int[] vertexAttrSizes)


    QuadArray
    ---------
    New constructors:
	public QuadArray(int vertexCount,
			 int vertexFormat,
			 int texCoordSetCount,
			 int[] texCoordSetMap,
			 int vertexAttrCount,
			 int[] vertexAttrSizes)


    GeometryStripArray
    ------------------
    New constructors:
	public GeometryStripArray(int vertexCount,
				  int vertexFormat,
				  int texCoordSetCount,
				  int[] texCoordSetMap,
				  int vertexAttrCount,
				  int[] vertexAttrSizes,
				  int[] stripVertexCounts)


    LineStripArray
    --------------
    New constructors:
	public LineStripArray(int vertexCount,
			      int vertexFormat,
			      int texCoordSetCount,
			      int[] texCoordSetMap,
			      int vertexAttrCount,
			      int[] vertexAttrSizes,
			      int[] stripVertexCounts)


    TriangleStripArray
    ------------------
    New constructors:
	public TriangleStripArray(int vertexCount,
				  int vertexFormat,
				  int texCoordSetCount,
				  int[] texCoordSetMap,
				  int vertexAttrCount,
				  int[] vertexAttrSizes,
				  int[] stripVertexCounts)


    TriangleFanArray
    ----------------
    New constructors:
	public TriangleFanArray(int vertexCount,
				int vertexFormat,
				int texCoordSetCount,
				int[] texCoordSetMap,
				int vertexAttrCount,
				int[] vertexAttrSizes,
				int[] stripVertexCounts)


    IndexedGeometryArray
    --------------------
    New constructors:
	public IndexedGeometryArray(int vertexCount,
				    int vertexFormat,
				    int texCoordSetCount,
				    int[] texCoordSetMap,
				    int vertexAttrCount,
				    int[] vertexAttrSizes,
				    int indexCount)

    New fields:
	public static final int ALLOW_VERTEX_ATTR_INDEX_READ
	public static final int ALLOW_VERTEX_ATTR_INDEX_WRITE

    New methods:
	public void setInitialVertexAttrIndex(int vertexAttrNum,
					      int initialVertexAttrIndex)
	public void setVertexAttrIndex(int vertexAttrNum,
				       int index,
				       int vertexAttrIndex)
	public void setVertexAttrIndices(int vertexAttrNum,
					 int index,
					 int[] vertexAttrIndices)
	public int getVertexAttrIndex(int vertexAttrNum, int index)
	public void getVertexAttrIndices(int vertexAttrNum,
					 int index,
					 int[] vertexAttrIndices)


    IndexedPointArray
    ----------------
    New constructors:
	public IndexedPointArray(int vertexCount,
				 int vertexFormat,
				 int texCoordSetCount,
				 int[] texCoordSetMap,
				 int vertexAttrCount,
				 int[] vertexAttrSizes,
				 int indexCount)


    IndexedLineArray
    ----------------
    New constructors:
	public IndexedLineArray(int vertexCount,
				int vertexFormat,
				int texCoordSetCount,
				int[] texCoordSetMap,
				int vertexAttrCount,
				int[] vertexAttrSizes,
				int indexCount)


    IndexedTriangleArray
    ----------------
    New constructors:
	public IndexedTriangleArray(int vertexCount,
				    int vertexFormat,
				    int texCoordSetCount,
				    int[] texCoordSetMap,
				    int vertexAttrCount,
				    int[] vertexAttrSizes,
				    int indexCount)


    IndexedQuadArray
    ----------------
    New constructors:
	public IndexedQuadArray(int vertexCount,
				int vertexFormat,
				int texCoordSetCount,
				int[] texCoordSetMap,
				int vertexAttrCount,
				int[] vertexAttrSizes,
				int indexCount)


    IndexedGeometryStripArray
    -------------------------
    New constructors:
	public IndexedGeometryStripArray(int vertexCount,
					 int vertexFormat,
					 int texCoordSetCount,
					 int[] texCoordSetMap,
					 int vertexAttrCount,
					 int[] vertexAttrSizes,
					 int indexCount
					 int[] stripIndexCounts)


    IndexedLineStripArray
    -------------------------
    New constructors:
	public IndexedLineStripArray(int vertexCount,
				     int vertexFormat,
				     int texCoordSetCount,
				     int[] texCoordSetMap,
				     int vertexAttrCount,
				     int[] vertexAttrSizes,
				     int indexCount
				     int[] stripIndexCounts)


    IndexedTriangleStripArray
    -------------------------
    New constructors:
	public IndexedTriangleStripArray(int vertexCount,
					 int vertexFormat,
					 int texCoordSetCount,
					 int[] texCoordSetMap,
					 int vertexAttrCount,
					 int[] vertexAttrSizes,
					 int indexCount
					 int[] stripIndexCounts)


    IndexedTriangleFanArray
    -------------------------
    New constructors:
	public IndexedTriangleFanArray(int vertexCount,
				       int vertexFormat,
				       int texCoordSetCount,
				       int[] texCoordSetMap,
				       int vertexAttrCount,
				       int[] vertexAttrSizes,
				       int indexCount
				       int[] stripIndexCounts)


    Node
    ----
    New fields:
	public static final int ALLOW_PARENT_READ
	public static final int ALLOW_LOCALE_READ

    New methods:
	public Locale getLocale()


    VirtualUniverse
    ---------------
    New methods:
	public void addGraphStructureChangeListener(GraphStructureChangeListener listener)
	public void removeGraphStructureChangeListener(GraphStructureChangeListener listener)
	public void addShaderErrorListener(ShaderErrorListener listener)
	public void removeShaderErrorListener(ShaderErrorListener listener)


    Locale
    ------
    New methods:
	public PickInfo[] pickAll( int mode, int flags, PickShape pickShape )
	public PickInfo[] pickAllSorted( int mode, int flags, PickShape pickShape )
	public PickInfo pickClosest( int mode, int flags, PickShape pickShape )
	public PickInfo pickAny( int mode, int flags, PickShape pickShape )


    BranchGroup
    -----------
    New methods:
	public PickInfo[] pickAll( int mode, int flags, PickShape pickShape )
	public PickInfo[] pickAllSorted( int mode, int flags, PickShape pickShape )
	public PickInfo pickClosest( int mode, int flags, PickShape pickShape )
	public PickInfo pickAny( int mode, int flags, PickShape pickShape )


    Sensor
    ------
    Deprecated fields:
	public static final int PREDICT_NONE
	public static final int PREDICT_NEXT_FRAME_TIME
	public static final int NO_PREDICTOR
	public static final int HEAD_PREDICTOR
	public static final int HAND_PREDICTOR

    Deprecated methods:
	public void setPredictor(int predictor)
	public int getPredictor()
	public void setPredictionPolicy(int policy)
	public int getPredictionPolicy()
	public void getRead(Transform3D read, long deltaT)


    RenderingAttributes
    -------------------
    New fields:
	public static final int ALLOW_DEPTH_TEST_FUNCTION_READ
	public static final int ALLOW_DEPTH_TEST_FUNCTION_WRITE
	public static final int ALLOW_STENCIL_ATTRIBUTES_READ
	public static final int ALLOW_STENCIL_ATTRIBUTES_WRITE
        public static final int ROP_CLEAR
        public static final int ROP_AND
        public static final int ROP_AND_REVERSE
        public static final int ROP_AND_INVERTED
        public static final int ROP_NOOP
        public static final int ROP_OR
        public static final int ROP_NOR
        public static final int ROP_EQUIV
        public static final int ROP_INVERT
        public static final int ROP_OR_REVERSE
        public static final int ROP_COPY_INVERTED
        public static final int ROP_OR_INVERTED
        public static final int ROP_NAND
        public static final int ROP_SET
	public static final int STENCIL_KEEP
	public static final int STENCIL_ZERO
	public static final int STENCIL_REPLACE
	public static final int STENCIL_INCR
	public static final int STENCIL_DECR
	public static final int STENCIL_INVERT


    New methods:
	public void setDepthTestFunction(int function)
	public int getDepthTestFunction()
	public void setStencilEnable(boolean enable)
	public boolean getStencilEnable()
	public void setStencilOp(int failOp, int zFailOp, int zPassOp)
	public void setStencilOp(int[] stencilOps)
	public void getStencilOp(int[] stencilOps)
	public void setStencilFunction(int function, int refValue, int compareMask)
	public void setStencilFunction(int[] params)
	public void getStencilFunction(int[] params)
	public void setStencilWriteMask(int mask)
	public int getStencilWriteMask()


    Font3D
    ------
    New methods:
	public GeometryArray getGlyphGeometry(char c)


    GraphicsConfigTemplate3D
    ------------------------
    New methods:
	public void setStencilSize(int value)
	public int getStencilSize()


    TransparencyAttributes
    ----------------------
    New fields:
	public static final int BLEND_DST_COLOR
	public static final int BLEND_ONE_MINUS_DST_COLOR
	public static final int BLEND_SRC_COLOR
	public static final int BLEND_ONE_MINUS_SRC_COLOR


II. Reparented classes

    NONE


III. New classes and interfaces (in javax.media.j3d)

    ShaderAppearance
    ----------------
	public class ShaderAppearance extends Appearance

    ShaderAttributeSet
    ------------------
	public class ShaderAttributeSet extends NodeComponent

    ShaderAttribute
    ---------------
	public abstract class ShaderAttribute extends NodeComponent

    ShaderAttributeBinding
    ----------------------
	public class ShaderAttributeBinding extends ShaderAttribute

    ShaderAttributeObject
    ---------------------
	public abstract class ShaderAttributeObject extends ShaderAttribute

    ShaderAttributeValue
    --------------------
	public class ShaderAttributeValue extends ShaderAttributeObject

    ShaderAttributeArray
    --------------------
	public class ShaderAttributeArray extends ShaderAttributeObject

    Shader
    ------
	public abstract class Shader extends NodeComponent

    SourceCodeShader
    ----------------
	public class SourceCodeShader extends Shader

    ShaderProgram
    -------------
	public abstract class ShaderProgram extends NodeComponent

    CgShaderProgram
    ---------------
	public class CgShaderProgram extends ShaderProgram

    GLSLShaderProgram
    -----------------
	public class GLSLShaderProgram extends ShaderProgram

    ShaderError
    -----------
	public class ShaderError extends Object

    ShaderErrorListener
    -------------------
	public interface ShaderErrorListener

    GraphStructureChangeListener
    ----------------------------
	public interface GraphStructureChangeListener

    PickInfo
    --------
	public class PickInfo extends Object

    PickInfo.IntersectionInfo
    -------------------------
	public class PickInfo.IntersectionInfo extends Object


IV. Deprecated classes and interfaces (in javax.media.j3d)

    CompressedGeometry
    CompressedGeometryHeader
    PickPoint
    Morph