Java Doc for GeometryArray.java in  » 6.0-JDK-Modules » java-3d » javax » media » j3d » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » java 3d » javax.media.j3d 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.media.j3d.SceneGraphObject
      javax.media.j3d.NodeComponent
         javax.media.j3d.Geometry
            javax.media.j3d.GeometryArray

All known Subclasses:   javax.media.j3d.TriangleArray,  javax.media.j3d.PointArray,  javax.media.j3d.LineArray,  javax.media.j3d.IndexedGeometryArray,  javax.media.j3d.QuadArray,  javax.media.j3d.GeometryStripArray,
GeometryArray
abstract public class GeometryArray extends Geometry (Code)
The GeometryArray object contains separate arrays of positional coordinates, colors, normals, texture coordinates, and vertex attributes that describe point, line, or polygon geometry. This class is extended to create the various primitive types (such as lines, triangle strips, etc.). Vertex data may be passed to this geometry array in one of two ways: by copying the data into the array using the existing methods, or by passing a reference to the data.

  • By Copying: The existing methods for setting positional coordinates, colors, normals, texture coordinates, and vertex attributes (such as setCoordinate, setColors, etc.) copy the data into this GeometryArray. This is appropriate for many applications and offers an application much flexibility in organizing its data. This is the default mode.
  • By Reference: A new set of methods in Java 3D version 1.2 allows data to be accessed by reference, directly from the user's arrays. To use this feature, set the BY_REFERENCE bit in the vertexFormat field of the constructor for this GeometryArray. In this mode, the various set methods for coordinates, normals, colors, texture coordinates, and vertex attributes are not used. Instead, new methods are used to set a reference to user-supplied coordinate, color, normal, texture coordinate, and vertex attribute arrays (such as setCoordRefFloat, setColorRefFloat, etc.). Data in any array that is referenced by a live or compiled GeometryArray object may only be modified via the updateData method (subject to the ALLOW_REF_DATA_WRITE capability bit). Applications must exercise care not to violate this rule. If any referenced geometry data is modified outside of the updateData method, the results are undefined.

All colors used in the geometry array object must be in the range [0.0,1.0]. Values outside this range will cause undefined results. All normals used in the geometry array object must be unit length vectors. That is their geometric length must be 1.0. Normals that are not unit length vectors will cause undefined results.

Note that the term coordinate, as used in the method names and method descriptions, actually refers to a set of x, y, and z coordinates representing the position of a single vertex. The term coordinates (plural) is used to indicate sets of x, y, and z coordinates for multiple vertices. This is somewhat at odds with the mathematical definition of a coordinate, but is used as a convenient shorthand. Similarly, the term texture coordinate is used to indicate a set of texture coordinates for a single vertex, while the term texture coordinates (plural) is used to indicate sets of texture coordinates for multiple vertices.



Field Summary
final public static  intALLOW_COLOR_READ
     Specifies that this GeometryArray allows reading the array of colors.
final public static  intALLOW_COLOR_WRITE
     Specifies that this GeometryArray allows writing the array of colors.
final public static  intALLOW_COORDINATE_READ
     Specifies that this GeometryArray allows reading the array of coordinates.
final public static  intALLOW_COORDINATE_WRITE
     Specifies that this GeometryArray allows writing the array of coordinates.
final public static  intALLOW_COUNT_READ
     Specifies that this GeometryArray allows reading the count or initial index information for this object.
final public static  intALLOW_COUNT_WRITE
     Specifies that this GeometryArray allows writing the count or initial index information for this object.
final public static  intALLOW_FORMAT_READ
     Specifies that this GeometryArray allows reading the vertex format information for this object.
final public static  intALLOW_NORMAL_READ
     Specifies that this GeometryArray allows reading the array of normals.
final public static  intALLOW_NORMAL_WRITE
     Specifies that this GeometryArray allows writing the array of normals.
final public static  intALLOW_REF_DATA_READ
     Specifies that this GeometryArray allows reading the geometry data reference information for this object.
final public static  intALLOW_REF_DATA_WRITE
     Specifies that this GeometryArray allows writing the geometry data reference information for this object.
final public static  intALLOW_TEXCOORD_READ
     Specifies that this GeometryArray allows reading the array of texture coordinates.
final public static  intALLOW_TEXCOORD_WRITE
     Specifies that this GeometryArray allows writing the array of texture coordinates.
final public static  intALLOW_VERTEX_ATTR_READ
     Specifies that this GeometryArray allows reading the array of vertex attributes.
final public static  intALLOW_VERTEX_ATTR_WRITE
     Specifies that this GeometryArray allows writing the array of vertex attributes.
final public static  intBY_REFERENCE
     Specifies that the position, color, normal, and texture coordinate data for this GeometryArray are accessed by reference.
final public static  intBY_REFERENCE_INDICES
     Specifies that the indices in this GeometryArray are accessed by reference.
final static  intCOLOR
     Specifies that this GeometryArray contains an array of colors.
final public static  intCOLOR_3
     Specifies that this GeometryArray contains an array of colors without alpha.
final public static  intCOLOR_4
     Specifies that this GeometryArray contains an array of colors with alpha.
final public static  intCOORDINATES
     Specifies that this GeometryArray contains an array of coordinates.
final public static  intINTERLEAVED
     Specifies that the position, color, normal, and texture coordinate data for this GeometryArray are accessed via a single interleaved, floating-point array reference.
final public static  intNORMALS
     Specifies that this GeometryArray contains an array of normals.
final static  intTEXTURE_COORDINATE
    
final public static  intTEXTURE_COORDINATE_2
     Specifies that this GeometryArray contains one or more arrays of 2D texture coordinates.
final public static  intTEXTURE_COORDINATE_3
     Specifies that this GeometryArray contains one or more arrays of 3D texture coordinates.
final public static  intTEXTURE_COORDINATE_4
     Specifies that this GeometryArray contains one or more arrays of 4D texture coordinates.
final public static  intUSE_COORD_INDEX_ONLY
     Specifies that only the coordinate indices are used for indexed geometry arrays.
final public static  intUSE_NIO_BUFFER
     Specifies that geometry by-reference data for this GeometryArray, whether interleaved or non-interleaved, is accessed via J3DBuffer objects that wrap NIO Buffer objects, rather than float, double, byte, or TupleXX arrays.
final public static  intVERTEX_ATTRIBUTES
     Specifies that this GeometryArray contains one or more arrays of vertex attributes.
final static  intWITH_ALPHA
     Specifies that this GeometryArray's colors contain alpha.

Constructor Summary
 GeometryArray()
    
public  GeometryArray(int vertexCount, int vertexFormat)
     Constructs an empty GeometryArray object with the specified number of vertices and vertex format.
public  GeometryArray(int vertexCount, int vertexFormat, int texCoordSetCount, int[] texCoordSetMap)
     Constructs an empty GeometryArray object with the specified number of vertices, vertex format, number of texture coordinate sets, and texture coordinate mapping array.
public  GeometryArray(int vertexCount, int vertexFormat, int texCoordSetCount, int[] texCoordSetMap, int vertexAttrCount, int[] vertexAttrSizes)
     Constructs an empty GeometryArray object with the specified number of vertices, vertex format, number of texture coordinate sets, texture coordinate mapping array, vertex attribute count, and vertex attribute sizes array.
Parameters:
  vertexCount - the number of vertex elements in thisGeometryArray


Parameters:
  vertexFormat - a mask indicating which components arepresent in each vertex.


Method Summary
 voidduplicateAttributes(NodeComponent originalNodeComponent, boolean forceDuplicate)
     Copies all node information from originalNodeComponent into the current node.
public  voidgetColor(int index, float color)
     Gets the color associated with the vertex at the specified index for this object.
public  voidgetColor(int index, byte color)
     Gets the color associated with the vertex at the specified index for this object.
public  voidgetColor(int index, Color3f color)
     Gets the color associated with the vertex at the specified index for this object.
public  voidgetColor(int index, Color4f color)
     Gets the color associated with the vertex at the specified index for this object.
public  voidgetColor(int index, Color3b color)
     Gets the color associated with the vertex at the specified index for this object.
public  voidgetColor(int index, Color4b color)
     Gets the color associated with the vertex at the specified index for this object.
public  Color3b[]getColorRef3b()
    
public  Color3f[]getColorRef3f()
    
public  Color4b[]getColorRef4b()
    
public  Color4f[]getColorRef4f()
    
public  J3DBuffergetColorRefBuffer()
     Gets the color array buffer reference.
public  byte[]getColorRefByte()
     Gets the byte color array reference.
public  float[]getColorRefFloat()
     Gets the float color array reference.
public  voidgetColors(int index, float colors)
     Gets the colors associated with the vertices starting at the specified index for this object.
public  voidgetColors(int index, byte colors)
     Gets the colors associated with the vertices starting at the specified index for this object.
public  voidgetColors(int index, Color3f colors)
     Gets the colors associated with the vertices starting at the specified index for this object.
public  voidgetColors(int index, Color4f colors)
     Gets the colors associated with the vertices starting at the specified index for this object.
public  voidgetColors(int index, Color3b colors)
     Gets the colors associated with the vertices starting at the specified index for this object.
public  voidgetColors(int index, Color4b colors)
     Gets the colors associated with the vertices starting at the specified index for this object.
public  Point3d[]getCoordRef3d()
    
public  Point3f[]getCoordRef3f()
    
public  J3DBuffergetCoordRefBuffer()
     Gets the coordinate array buffer reference.
public  double[]getCoordRefDouble()
     Gets the double coordinate array reference.
public  float[]getCoordRefFloat()
     Gets the float coordinate array reference.
public  voidgetCoordinate(int index, float coordinate)
    
public  voidgetCoordinate(int index, double coordinate)
     Gets the coordinate associated with the vertex at the specified index for this object.
public  voidgetCoordinate(int index, Point3f coordinate)
     Gets the coordinate associated with the vertex at the specified index for this object.
public  voidgetCoordinate(int index, Point3d coordinate)
     Gets the coordinate associated with the vertex at the specified index for this object.
public  voidgetCoordinates(int index, float coordinates)
     Gets the coordinates associated with the vertices starting at the specified index for this object.
public  voidgetCoordinates(int index, double coordinates)
     Gets the coordinates associated with the vertices starting at the specified index for this object.
public  voidgetCoordinates(int index, Point3f coordinates)
     Gets the coordinates associated with the vertices starting at the specified index for this object.
public  voidgetCoordinates(int index, Point3d coordinates)
     Gets the coordinates associated with the vertices starting at the specified index for this object.
public  intgetInitialColorIndex()
     Gets the initial color index for this GeometryArray object.
public  intgetInitialCoordIndex()
     Gets the initial coordinate index for this GeometryArray object.
public  intgetInitialNormalIndex()
     Gets the initial normal index for this GeometryArray object.
public  intgetInitialTexCoordIndex(int texCoordSet)
     Gets the initial texture coordinate index for the specified texture coordinate set for this GeometryArray object.
public  intgetInitialVertexAttrIndex(int vertexAttrNum)
     Gets the initial vertex attribute index for the specified vertex attribute number for this GeometryArray object.
public  intgetInitialVertexIndex()
     Gets the initial vertex index for this GeometryArray object.
public  J3DBuffergetInterleavedVertexBuffer()
     Gets the interleaved vertex array buffer reference.
public  float[]getInterleavedVertices()
     Gets the interleaved vertices array reference.
public  voidgetNormal(int index, float normal)
     Gets the normal associated with the vertex at the specified index for this object.
public  voidgetNormal(int index, Vector3f normal)
     Gets the normal associated with the vertex at the specified index for this object.
public  Vector3f[]getNormalRef3f()
    
public  J3DBuffergetNormalRefBuffer()
     Gets the normal array buffer reference.
public  float[]getNormalRefFloat()
     Gets the float normal array reference.
public  voidgetNormals(int index, float normals)
     Gets the normals associated with the vertices starting at the specified index for this object.
public  voidgetNormals(int index, Vector3f normals)
     Gets the normals associated with the vertices starting at the specified index for this object.
public  TexCoord2f[]getTexCoordRef2f(int texCoordSet)
    
public  TexCoord3f[]getTexCoordRef3f(int texCoordSet)
    
public  J3DBuffergetTexCoordRefBuffer(int texCoordSet)
     Gets the texture coordinate array buffer reference for the specified texture coordinate set.
public  float[]getTexCoordRefFloat(int texCoordSet)
     Gets the float texture coordinate array reference for the specified texture coordinate set.
public  intgetTexCoordSetCount()
     Retrieves the number of texture coordinate sets in this GeometryArray object.
public  voidgetTexCoordSetMap(int[] texCoordSetMap)
     Retrieves the texture coordinate set mapping array from this GeometryArray object.
Parameters:
  texCoordSetMap - an array that will receive a copy of thetexture coordinate set mapping array.
public  intgetTexCoordSetMapLength()
     Retrieves the length of the texture coordinate set mapping array of this GeometryArray object.
public  voidgetTextureCoordinate(int index, float texCoord)
    
public  voidgetTextureCoordinate(int texCoordSet, int index, float texCoord)
     Gets the texture coordinate associated with the vertex at the specified index in the specified texture coordinate set for this object.
public  voidgetTextureCoordinate(int index, Point2f texCoord)
    
public  voidgetTextureCoordinate(int texCoordSet, int index, TexCoord2f texCoord)
     Gets the texture coordinate associated with the vertex at the specified index in the specified texture coordinate set for this object.
public  voidgetTextureCoordinate(int index, Point3f texCoord)
    
public  voidgetTextureCoordinate(int texCoordSet, int index, TexCoord3f texCoord)
     Gets the texture coordinate associated with the vertex at the specified index in the specified texture coordinate set for this object.
public  voidgetTextureCoordinate(int texCoordSet, int index, TexCoord4f texCoord)
     Gets the texture coordinate associated with the vertex at the specified index in the specified texture coordinate set for this object.
public  voidgetTextureCoordinates(int index, float texCoords)
    
public  voidgetTextureCoordinates(int texCoordSet, int index, float texCoords)
     Gets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object.
public  voidgetTextureCoordinates(int index, Point2f texCoords)
    
public  voidgetTextureCoordinates(int texCoordSet, int index, TexCoord2f texCoords)
     Gets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object.
public  voidgetTextureCoordinates(int index, Point3f texCoords)
    
public  voidgetTextureCoordinates(int texCoordSet, int index, TexCoord3f texCoords)
     Gets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object.
public  voidgetTextureCoordinates(int texCoordSet, int index, TexCoord4f texCoords)
     Gets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object.
public  intgetValidVertexCount()
     Gets the valid vertex count for this GeometryArray object.
public  voidgetVertexAttr(int vertexAttrNum, int index, float[] vertexAttr)
     Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
public  voidgetVertexAttr(int vertexAttrNum, int index, Point2f vertexAttr)
     Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
public  voidgetVertexAttr(int vertexAttrNum, int index, Point3f vertexAttr)
     Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
public  voidgetVertexAttr(int vertexAttrNum, int index, Point4f vertexAttr)
     Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
public  intgetVertexAttrCount()
     Retrieves the number of vertex attributes in this GeometryArray object.
public  J3DBuffergetVertexAttrRefBuffer(int vertexAttrNum)
     Gets the vertex attribute array buffer reference for the specified vertex attribute number.
public  float[]getVertexAttrRefFloat(int vertexAttrNum)
     Gets the float vertex attribute array reference for the specified vertex attribute number.
public  voidgetVertexAttrSizes(int[] vertexAttrSizes)
     Retrieves the vertex attribute sizes array from this GeometryArray object.
Parameters:
  vertexAttrSizes - an array that will receive a copy ofthe vertex attribute sizes array.
public  voidgetVertexAttrs(int vertexAttrNum, int index, float[] vertexAttrs)
     Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object.
public  voidgetVertexAttrs(int vertexAttrNum, int index, Point2f[] vertexAttrs)
     Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object.
public  voidgetVertexAttrs(int vertexAttrNum, int index, Point3f[] vertexAttrs)
     Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object.
public  voidgetVertexAttrs(int vertexAttrNum, int index, Point4f[] vertexAttrs)
     Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object.
public  intgetVertexCount()
    
public  intgetVertexFormat()
    
public  voidsetColor(int index, float color)
     Sets the color associated with the vertex at the specified index for this object.
public  voidsetColor(int index, byte color)
     Sets the color associated with the vertex at the specified index for this object.
public  voidsetColor(int index, Color3f color)
     Sets the color associated with the vertex at the specified index for this object.
public  voidsetColor(int index, Color4f color)
     Sets the color associated with the vertex at the specified index for this object.
public  voidsetColor(int index, Color3b color)
     Sets the color associated with the vertex at the specified index for this object.
public  voidsetColor(int index, Color4b color)
     Sets the color associated with the vertex at the specified index for this object.
public  voidsetColorRef3b(Color3b[] colors)
    
public  voidsetColorRef3f(Color3f[] colors)
    
public  voidsetColorRef4b(Color4b[] colors)
    
public  voidsetColorRef4f(Color4f[] colors)
    
public  voidsetColorRefBuffer(J3DBuffer colors)
     Sets the color buffer reference to the specified buffer object.
public  voidsetColorRefByte(byte[] colors)
     Sets the byte color array reference to the specified array. The array contains red, green, blue, and, optionally, alpha values for each vertex (for a total of 3*n or 4*n values, where n is the number of vertices).
public  voidsetColorRefFloat(float[] colors)
     Sets the float color array reference to the specified array. The array contains floating-point red, green, blue, and, optionally, alpha values for each vertex (for a total of 3*n or 4*n values, where n is the number of vertices).
public  voidsetColors(int index, float colors)
     Sets the colors associated with the vertices starting at the specified index for this object.
public  voidsetColors(int index, byte colors)
     Sets the colors associated with the vertices starting at the specified index for this object.
public  voidsetColors(int index, Color3f colors)
     Sets the colors associated with the vertices starting at the specified index for this object.
public  voidsetColors(int index, Color4f colors)
     Sets the colors associated with the vertices starting at the specified index for this object.
public  voidsetColors(int index, Color3b colors)
     Sets the colors associated with the vertices starting at the specified index for this object.
public  voidsetColors(int index, Color4b colors)
     Sets the colors associated with the vertices starting at the specified index for this object.
public  voidsetColors(int index, float colors, int start, int length)
     Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
public  voidsetColors(int index, byte colors, int start, int length)
     Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
public  voidsetColors(int index, Color3f colors, int start, int length)
     Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
public  voidsetColors(int index, Color4f colors, int start, int length)
     Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
public  voidsetColors(int index, Color3b colors, int start, int length)
     Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
public  voidsetColors(int index, Color4b colors, int start, int length)
     Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
public  voidsetCoordRef3d(Point3d[] coords)
    
public  voidsetCoordRef3f(Point3f[] coords)
    
public  voidsetCoordRefBuffer(J3DBuffer coords)
     Sets the coordinate buffer reference to the specified buffer object.
public  voidsetCoordRefDouble(double[] coords)
     Sets the double coordinate array reference to the specified array.
public  voidsetCoordRefFloat(float[] coords)
     Sets the float coordinate array reference to the specified array.
public  voidsetCoordinate(int index, float coordinate)
     Sets the coordinate associated with the vertex at the specified index for this object.
public  voidsetCoordinate(int index, double coordinate)
     Sets the coordinate associated with the vertex at the specified index.
public  voidsetCoordinate(int index, Point3f coordinate)
     Sets the coordinate associated with the vertex at the specified index for this object.
public  voidsetCoordinate(int index, Point3d coordinate)
     Sets the coordinate associated with the vertex at the specified index for this object.
public  voidsetCoordinates(int index, float coordinates)
     Sets the coordinates associated with the vertices starting at the specified index for this object.
public  voidsetCoordinates(int index, double coordinates)
     Sets the coordinates associated with the vertices starting at the specified index for this object.
public  voidsetCoordinates(int index, Point3f coordinates)
     Sets the coordinates associated with the vertices starting at the specified index for this object.
public  voidsetCoordinates(int index, Point3d coordinates)
     Sets the coordinates associated with the vertices starting at the specified index for this object.
public  voidsetCoordinates(int index, float coordinates, int start, int length)
     Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices.
public  voidsetCoordinates(int index, double coordinates, int start, int length)
     Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices.
public  voidsetCoordinates(int index, Point3f coordinates, int start, int length)
     Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices.
public  voidsetCoordinates(int index, Point3d coordinates, int start, int length)
     Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices.
public  voidsetInitialColorIndex(int initialColorIndex)
     Sets the initial color index for this GeometryArray object. This index specifies the first color within the array of colors referenced by this geometry array that is actually used in rendering or other operations such as picking and collision.
public  voidsetInitialCoordIndex(int initialCoordIndex)
     Sets the initial coordinate index for this GeometryArray object. This index specifies the first coordinate within the array of coordinates referenced by this geometry array that is actually used in rendering or other operations such as picking and collision.
public  voidsetInitialNormalIndex(int initialNormalIndex)
     Sets the initial normal index for this GeometryArray object. This index specifies the first normal within the array of normals referenced by this geometry array that is actually used in rendering or other operations such as picking and collision.
public  voidsetInitialTexCoordIndex(int texCoordSet, int initialTexCoordIndex)
     Sets the initial texture coordinate index for the specified texture coordinate set for this GeometryArray object.
public  voidsetInitialVertexAttrIndex(int vertexAttrNum, int initialVertexAttrIndex)
     Sets the initial vertex attribute index for the specified vertex attribute number for this GeometryArray object.
public  voidsetInitialVertexIndex(int initialVertexIndex)
     Sets the initial vertex index for this GeometryArray object. This index specifies the first vertex within this geometry array that is actually used in rendering or other operations such as picking and collision.
public  voidsetInterleavedVertexBuffer(J3DBuffer vertexData)
     Sets the interleaved vertex buffer reference to the specified buffer object.
public  voidsetInterleavedVertices(float[] vertexData)
     Sets the interleaved vertex array reference to the specified array.
public  voidsetNormal(int index, float normal)
     Sets the normal associated with the vertex at the specified index for this object.
public  voidsetNormal(int index, Vector3f normal)
     Sets the normal associated with the vertex at the specified index for this object.
public  voidsetNormalRef3f(Vector3f[] normals)
    
public  voidsetNormalRefBuffer(J3DBuffer normals)
     Sets the normal buffer reference to the specified buffer object.
public  voidsetNormalRefFloat(float[] normals)
     Sets the float normal array reference to the specified array.
public  voidsetNormals(int index, float normals)
     Sets the normals associated with the vertices starting at the specified index for this object.
public  voidsetNormals(int index, Vector3f normals)
     Sets the normals associated with the vertices starting at the specified index for this object.
public  voidsetNormals(int index, float normals, int start, int length)
     Sets the normals associated with the vertices starting at the specified index for this object using data in normals starting at index start and ending at index start+length.
public  voidsetNormals(int index, Vector3f normals, int start, int length)
     Sets the normals associated with the vertices starting at the specified index for this object using data in normals starting at index start and ending at index start+length.
public  voidsetTexCoordRef2f(int texCoordSet, TexCoord2f[] texCoords)
    
public  voidsetTexCoordRef3f(int texCoordSet, TexCoord3f[] texCoords)
    
public  voidsetTexCoordRefBuffer(int texCoordSet, J3DBuffer texCoords)
     Sets the texture coordinate buffer reference for the specified texture coordinate set to the specified buffer object.
public  voidsetTexCoordRefFloat(int texCoordSet, float[] texCoords)
     Sets the float texture coordinate array reference for the specified texture coordinate set to the specified array.
public  voidsetTextureCoordinate(int index, float texCoord)
    
public  voidsetTextureCoordinate(int texCoordSet, int index, float texCoord)
     Sets the texture coordinate associated with the vertex at the specified index in the specified texture coordinate set for this object.
public  voidsetTextureCoordinate(int index, Point2f texCoord)
    
public  voidsetTextureCoordinate(int texCoordSet, int index, TexCoord2f texCoord)
     Sets the texture coordinate associated with the vertex at the specified index in the specified texture coordinate set for this object.
public  voidsetTextureCoordinate(int index, Point3f texCoord)
    
public  voidsetTextureCoordinate(int texCoordSet, int index, TexCoord3f texCoord)
     Sets the texture coordinate associated with the vertex at the specified index in the specified texture coordinate set for this object.
public  voidsetTextureCoordinate(int texCoordSet, int index, TexCoord4f texCoord)
     Sets the texture coordinate associated with the vertex at the specified index in the specified texture coordinate set for this object.
public  voidsetTextureCoordinates(int index, float texCoords)
    
public  voidsetTextureCoordinates(int texCoordSet, int index, float texCoords)
     Sets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object.
public  voidsetTextureCoordinates(int index, Point2f texCoords)
    
public  voidsetTextureCoordinates(int texCoordSet, int index, TexCoord2f texCoords)
     Sets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object.
public  voidsetTextureCoordinates(int index, Point3f texCoords)
    
public  voidsetTextureCoordinates(int texCoordSet, int index, TexCoord3f texCoords)
     Sets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object.
public  voidsetTextureCoordinates(int texCoordSet, int index, TexCoord4f texCoords)
     Sets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object.
public  voidsetTextureCoordinates(int index, float texCoords, int start, int length)
    
public  voidsetTextureCoordinates(int texCoordSet, int index, float texCoords, int start, int length)
     Sets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object using data in texCoords starting at index start and ending at index start+length.
public  voidsetTextureCoordinates(int index, Point2f texCoords, int start, int length)
    
public  voidsetTextureCoordinates(int texCoordSet, int index, TexCoord2f texCoords, int start, int length)
     Sets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object using data in texCoords starting at index start and ending at index start+length.
public  voidsetTextureCoordinates(int index, Point3f texCoords, int start, int length)
    
public  voidsetTextureCoordinates(int texCoordSet, int index, TexCoord3f texCoords, int start, int length)
     Sets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object.
public  voidsetTextureCoordinates(int texCoordSet, int index, TexCoord4f texCoords, int start, int length)
     Sets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object.
public  voidsetValidVertexCount(int validVertexCount)
     Sets the valid vertex count for this GeometryArray object.
public  voidsetVertexAttr(int vertexAttrNum, int index, float[] vertexAttr)
     Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
public  voidsetVertexAttr(int vertexAttrNum, int index, Point2f vertexAttr)
     Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
public  voidsetVertexAttr(int vertexAttrNum, int index, Point3f vertexAttr)
     Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
public  voidsetVertexAttr(int vertexAttrNum, int index, Point4f vertexAttr)
     Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
public  voidsetVertexAttrRefBuffer(int vertexAttrNum, J3DBuffer vertexAttrs)
     Sets the vertex attribute buffer reference for the specified vertex attribute number to the specified buffer object.
public  voidsetVertexAttrRefFloat(int vertexAttrNum, float[] vertexAttrs)
     Sets the float vertex attribute array reference for the specified vertex attribute number to the specified array.
public  voidsetVertexAttrs(int vertexAttrNum, int index, float[] vertexAttrs)
     Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object.
public  voidsetVertexAttrs(int vertexAttrNum, int index, Point2f[] vertexAttrs)
     Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object.
public  voidsetVertexAttrs(int vertexAttrNum, int index, Point3f[] vertexAttrs)
     Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object.
public  voidsetVertexAttrs(int vertexAttrNum, int index, Point4f[] vertexAttrs)
     Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object.
public  voidsetVertexAttrs(int vertexAttrNum, int index, float[] vertexAttrs, int start, int length)
     Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and ending at index start+length.
public  voidsetVertexAttrs(int vertexAttrNum, int index, Point2f[] vertexAttrs, int start, int length)
     Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and ending at index start+length.
public  voidsetVertexAttrs(int vertexAttrNum, int index, Point3f[] vertexAttrs, int start, int length)
     Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and ending at index start+length.
public  voidsetVertexAttrs(int vertexAttrNum, int index, Point4f[] vertexAttrs, int start, int length)
     Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and ending at index start+length.
public  voidupdateData(GeometryUpdater updater)
     Updates geometry array data that is accessed by reference.

Field Detail
ALLOW_COLOR_READ
final public static int ALLOW_COLOR_READ(Code)
Specifies that this GeometryArray allows reading the array of colors.



ALLOW_COLOR_WRITE
final public static int ALLOW_COLOR_WRITE(Code)
Specifies that this GeometryArray allows writing the array of colors.



ALLOW_COORDINATE_READ
final public static int ALLOW_COORDINATE_READ(Code)
Specifies that this GeometryArray allows reading the array of coordinates.



ALLOW_COORDINATE_WRITE
final public static int ALLOW_COORDINATE_WRITE(Code)
Specifies that this GeometryArray allows writing the array of coordinates.



ALLOW_COUNT_READ
final public static int ALLOW_COUNT_READ(Code)
Specifies that this GeometryArray allows reading the count or initial index information for this object.



ALLOW_COUNT_WRITE
final public static int ALLOW_COUNT_WRITE(Code)
Specifies that this GeometryArray allows writing the count or initial index information for this object.
since:
   Java 3D 1.2



ALLOW_FORMAT_READ
final public static int ALLOW_FORMAT_READ(Code)
Specifies that this GeometryArray allows reading the vertex format information for this object.



ALLOW_NORMAL_READ
final public static int ALLOW_NORMAL_READ(Code)
Specifies that this GeometryArray allows reading the array of normals.



ALLOW_NORMAL_WRITE
final public static int ALLOW_NORMAL_WRITE(Code)
Specifies that this GeometryArray allows writing the array of normals.



ALLOW_REF_DATA_READ
final public static int ALLOW_REF_DATA_READ(Code)
Specifies that this GeometryArray allows reading the geometry data reference information for this object. This is only used in by-reference geometry mode.
since:
   Java 3D 1.2



ALLOW_REF_DATA_WRITE
final public static int ALLOW_REF_DATA_WRITE(Code)
Specifies that this GeometryArray allows writing the geometry data reference information for this object. It also enables writing the referenced data itself, via the GeometryUpdater interface. This is only used in by-reference geometry mode.
since:
   Java 3D 1.2



ALLOW_TEXCOORD_READ
final public static int ALLOW_TEXCOORD_READ(Code)
Specifies that this GeometryArray allows reading the array of texture coordinates.



ALLOW_TEXCOORD_WRITE
final public static int ALLOW_TEXCOORD_WRITE(Code)
Specifies that this GeometryArray allows writing the array of texture coordinates.



ALLOW_VERTEX_ATTR_READ
final public static int ALLOW_VERTEX_ATTR_READ(Code)
Specifies that this GeometryArray allows reading the array of vertex attributes.
since:
   Java 3D 1.4



ALLOW_VERTEX_ATTR_WRITE
final public static int ALLOW_VERTEX_ATTR_WRITE(Code)
Specifies that this GeometryArray allows writing the array of vertex attributes.
since:
   Java 3D 1.4



BY_REFERENCE
final public static int BY_REFERENCE(Code)
Specifies that the position, color, normal, and texture coordinate data for this GeometryArray are accessed by reference.
since:
   Java 3D 1.2



BY_REFERENCE_INDICES
final public static int BY_REFERENCE_INDICES(Code)
Specifies that the indices in this GeometryArray are accessed by reference. This flag is only valid for indexed geometry arrays (subclasses of IndexedGeometryArray) and only when used in conjunction with the BY_REFERENCE and USE_COORD_INDEX_ONLY flags.
since:
   Java 3D 1.5



COLOR
final static int COLOR(Code)
Specifies that this GeometryArray contains an array of colors.



COLOR_3
final public static int COLOR_3(Code)
Specifies that this GeometryArray contains an array of colors without alpha.



COLOR_4
final public static int COLOR_4(Code)
Specifies that this GeometryArray contains an array of colors with alpha. This takes precedence over COLOR_3.



COORDINATES
final public static int COORDINATES(Code)
Specifies that this GeometryArray contains an array of coordinates. This bit must be set.



INTERLEAVED
final public static int INTERLEAVED(Code)
Specifies that the position, color, normal, and texture coordinate data for this GeometryArray are accessed via a single interleaved, floating-point array reference. All of the data values for each vertex are stored in consecutive memory locations. This flag is only valid in conjunction with the BY_REFERENCE flag.
since:
   Java 3D 1.2



NORMALS
final public static int NORMALS(Code)
Specifies that this GeometryArray contains an array of normals.



TEXTURE_COORDINATE
final static int TEXTURE_COORDINATE(Code)



TEXTURE_COORDINATE_2
final public static int TEXTURE_COORDINATE_2(Code)
Specifies that this GeometryArray contains one or more arrays of 2D texture coordinates.



TEXTURE_COORDINATE_3
final public static int TEXTURE_COORDINATE_3(Code)
Specifies that this GeometryArray contains one or more arrays of 3D texture coordinates. This takes precedence over TEXTURE_COORDINATE_2.



TEXTURE_COORDINATE_4
final public static int TEXTURE_COORDINATE_4(Code)
Specifies that this GeometryArray contains one or more arrays of 4D texture coordinates. This takes precedence over TEXTURE_COORDINATE_2 and TEXTURE_COORDINATE_3.
since:
   Java 3D 1.3



USE_COORD_INDEX_ONLY
final public static int USE_COORD_INDEX_ONLY(Code)
Specifies that only the coordinate indices are used for indexed geometry arrays. In this mode, the values from the coordinate index array are used as a single set of index values to access the vertex data for all five vertex components (coord, color, normal, texCoord, and vertexAttr). The color, normal, texCoord, and vertexAttr index arrays are neither allocated nor used. Any attempt to access the color, normal, texCoord, or vertexAttr index arrays will result in a NullPointerException. This flag is only valid for indexed geometry arrays (subclasses of IndexedGeometryArray).
since:
   Java 3D 1.3



USE_NIO_BUFFER
final public static int USE_NIO_BUFFER(Code)
Specifies that geometry by-reference data for this GeometryArray, whether interleaved or non-interleaved, is accessed via J3DBuffer objects that wrap NIO Buffer objects, rather than float, double, byte, or TupleXX arrays. This flag is only valid in conjunction with the BY_REFERENCE flag.
See Also:   J3DBuffer
See Also:   GeometryArray.setCoordRefBuffer(J3DBuffer)
See Also:   GeometryArray.setColorRefBuffer(J3DBuffer)
See Also:   GeometryArray.setNormalRefBuffer(J3DBuffer)
See Also:   GeometryArray.setTexCoordRefBuffer(int,J3DBuffer)
See Also:   GeometryArray.setVertexAttrRefBuffer(int,J3DBuffer)
See Also:   GeometryArray.setInterleavedVertexBuffer(J3DBuffer)
since:
   Java 3D 1.3



VERTEX_ATTRIBUTES
final public static int VERTEX_ATTRIBUTES(Code)
Specifies that this GeometryArray contains one or more arrays of vertex attributes. These attributes are used in programmable shading.
since:
   Java 3D 1.4



WITH_ALPHA
final static int WITH_ALPHA(Code)
Specifies that this GeometryArray's colors contain alpha.




Constructor Detail
GeometryArray
GeometryArray()(Code)



GeometryArray
public GeometryArray(int vertexCount, int vertexFormat)(Code)
Constructs an empty GeometryArray object with the specified number of vertices and vertex format. Defaults are used for all other parameters. The default values are as follows:
    texCoordSetCount : 1
    texCoordSetMap : { 0 }
    vertexAttrCount : 0
    vertexAttrSizes : null
    validVertexCount : vertexCount
    initialVertexIndex : 0
    initialCoordIndex : 0
    initialColorIndex : 0
    initialNormalIndex : 0
    initialTexCoordIndex : 0
    initialVertexAttrIndex : 0
    all data array values : 0.0
    all data array references : null

Parameters:
  vertexCount - the number of vertex elements in this GeometryArray
Parameters:
  vertexFormat - a mask indicating which components arepresent in each vertex. This is specified as one or moreindividual flags that are bitwise "OR"ed together to describethe per-vertex data.The flags include: COORDINATES, to signal the inclusion ofvertex positions--always present; NORMALS, to signalthe inclusion of per vertex normals; one of COLOR_3 orCOLOR_4, to signal the inclusion of per vertexcolors (without or with alpha information); one ofTEXTURE_COORDINATE_2, TEXTURE_COORDINATE_3or TEXTURE_COORDINATE_4,to signal theinclusion of per-vertex texture coordinates (2D, 3D or 4D);BY_REFERENCE, to indicate that the data is passedby referencerather than by copying; INTERLEAVED, to indicatethat the referenceddata is interleaved in a single array;USE_NIO_BUFFER, to indicate that the referenced datais accessed via a J3DBuffer object that wraps an NIO buffer;USE_COORD_INDEX_ONLY,to indicate that only the coordinate indices are used for indexedgeometry arrays;BY_REFERENCE_INDICES, to indicatethat the indices are accessed by reference in indexedgeometry arrays.


exception:
  IllegalArgumentException - if vertexCount < 0
exception:
  IllegalArgumentException - if vertexFormat does notinclude COORDINATES
exception:
  IllegalArgumentException - if the USE_COORD_INDEX_ONLYbit or the BY_REFERENCE_INDICES bit is set for non-indexed geometry arrays (that is, GeometryArray objectsthat are not a subclass of IndexedGeometryArray)
exception:
  IllegalArgumentException - if the INTERLEAVEDbit is set without the BY_REFERENCE bit being set
exception:
  IllegalArgumentException - if the USE_NIO_BUFFERbit is set without the BY_REFERENCE bit being set
exception:
  IllegalArgumentException - if the INTERLEAVEDbit and the VERTEX_ATTRIBUTES bit are both set
exception:
  IllegalArgumentException - if the BY_REFERENCE_INDICESbit is set without the BY_REFERENCE and USE_COORD_INDEX_ONLY bits being set




GeometryArray
public GeometryArray(int vertexCount, int vertexFormat, int texCoordSetCount, int[] texCoordSetMap)(Code)
Constructs an empty GeometryArray object with the specified number of vertices, vertex format, number of texture coordinate sets, and texture coordinate mapping array. Defaults are used for all other parameters.
Parameters:
  vertexCount - the number of vertex elements in thisGeometryArray


Parameters:
  vertexFormat - a mask indicating which components arepresent in each vertex. This is specified as one or moreindividual flags that are bitwise "OR"ed together to describethe per-vertex data.The flags include: COORDINATES, to signal the inclusion ofvertex positions--always present; NORMALS, to signalthe inclusion of per vertex normals; one of COLOR_3 orCOLOR_4, to signal the inclusion of per vertexcolors (without or with alpha information); one ofTEXTURE_COORDINATE_2 or TEXTURE_COORDINATE_3or TEXTURE_COORDINATE_4,to signal theinclusion of per-vertex texture coordinates (2D , 3D or 4D);BY_REFERENCE, to indicate that the data is passedby referencerather than by copying; INTERLEAVED, to indicatethat the referenceddata is interleaved in a single array;USE_NIO_BUFFER, to indicate that the referenced datais accessed via a J3DBuffer object that wraps an NIO buffer;USE_COORD_INDEX_ONLY,to indicate that only the coordinate indices are used for indexedgeometry arrays;BY_REFERENCE_INDICES, to indicatethat the indices are accessed by reference in indexedgeometry arrays.


Parameters:
  texCoordSetCount - the number of texture coordinate setsin this GeometryArray object. If vertexFormatdoes not include one of TEXTURE_COORDINATE_2 orTEXTURE_COORDINATE_3, thetexCoordSetCount parameter is not used.


Parameters:
  texCoordSetMap - an array that maps texture coordinatesets to texture units. The array is indexed by texture unitnumber for each texture unit in the associated Appearanceobject. The values in the array specify the texture coordinateset within this GeometryArray object that maps to thecorresponding textureunit. All elements within the array must be less thantexCoordSetCount. A negative value specifies thatno texture coordinate set maps to the texture unitcorresponding to the index. If there are more texture units inany associated Appearance object than elements in the mappingarray, the extra elements are assumed to be -1. The sametexture coordinate set may be used for more than one textureunit. Each texture unit in every associated Appearance musthave a valid source of texture coordinates: either anon-negative texture coordinate set must be specified in themapping array or texture coordinate generation must be enabled.Texture coordinate generation will take precedence for thosetexture units for which a texture coordinate set is specifiedand texture coordinate generation is enabled. IfvertexFormat does not include one ofTEXTURE_COORDINATE_2 orTEXTURE_COORDINATE_3 orTEXTURE_COORDINATE_4, thetexCoordSetMap array is not used. The following exampleillustrates the use of the texCoordSetMap array.

    Index
    Element
    Description
    0
    1
    Use tex coord set 1 for tex unit 0
    1
    -1
    Use no tex coord set for tex unit 1
    2
    0
    Use tex coord set 0 for tex unit 2
    3
    1
    Reuse tex coord set 1 for tex unit 3


exception:
  
IllegalArgumentException - if vertexCount < 0
exception:
  IllegalArgumentException - if vertexFormat does notinclude COORDINATES
exception:
  IllegalArgumentException - if the USE_COORD_INDEX_ONLYbit or the BY_REFERENCE_INDICES bit is set for non-indexed geometry arrays (that is, GeometryArray objectsthat are not a subclass of IndexedGeometryArray)
exception:
  IllegalArgumentException - if the INTERLEAVEDbit is set without the BY_REFERENCE bit being set
exception:
  IllegalArgumentException - if the USE_NIO_BUFFERbit is set without the BY_REFERENCE bit being set
exception:
  IllegalArgumentException - if the INTERLEAVEDbit and the VERTEX_ATTRIBUTES bit are both set
exception:
  IllegalArgumentException - if the BY_REFERENCE_INDICESbit is set without the BY_REFERENCE and USE_COORD_INDEX_ONLY bits being set
exception:
  IllegalArgumentException - iftexCoordSetCount < 0
exception:
  IllegalArgumentException - if any element intexCoordSetMap[] >= texCoordSetCount.
since:
   Java 3D 1.2




GeometryArray
public GeometryArray(int vertexCount, int vertexFormat, int texCoordSetCount, int[] texCoordSetMap, int vertexAttrCount, int[] vertexAttrSizes)(Code)
Constructs an empty GeometryArray object with the specified number of vertices, vertex format, number of texture coordinate sets, texture coordinate mapping array, vertex attribute count, and vertex attribute sizes array.
Parameters:
  vertexCount - the number of vertex elements in thisGeometryArray


Parameters:
  vertexFormat - a mask indicating which components arepresent in each vertex. This is specified as one or moreindividual flags that are bitwise "OR"ed together to describethe per-vertex data.The flags include: COORDINATES, to signal the inclusion ofvertex positions--always present; NORMALS, to signalthe inclusion of per vertex normals; one of COLOR_3 orCOLOR_4, to signal the inclusion of per vertexcolors (without or with alpha information); one ofTEXTURE_COORDINATE_2 or TEXTURE_COORDINATE_3or TEXTURE_COORDINATE_4,to signal theinclusion of per-vertex texture coordinates (2D , 3D or 4D);VERTEX_ATTRIBUTES, to signalthe inclusion of one or more arrays of vertex attributes;BY_REFERENCE, to indicate that the data is passedby referencerather than by copying; INTERLEAVED, to indicatethat the referenceddata is interleaved in a single array;USE_NIO_BUFFER, to indicate that the referenced datais accessed via a J3DBuffer object that wraps an NIO buffer;USE_COORD_INDEX_ONLY,to indicate that only the coordinate indices are used for indexedgeometry arrays;BY_REFERENCE_INDICES, to indicatethat the indices are accessed by reference in indexedgeometry arrays.


Parameters:
  texCoordSetCount - the number of texture coordinate setsin this GeometryArray object. If vertexFormatdoes not include one of TEXTURE_COORDINATE_2 orTEXTURE_COORDINATE_3, thetexCoordSetCount parameter is not used.


Parameters:
  texCoordSetMap - an array that maps texture coordinatesets to texture units. The array is indexed by texture unitnumber for each texture unit in the associated Appearanceobject. The values in the array specify the texture coordinateset within this GeometryArray object that maps to thecorresponding textureunit. All elements within the array must be less thantexCoordSetCount. A negative value specifies thatno texture coordinate set maps to the texture unitcorresponding to the index. If there are more texture units inany associated Appearance object than elements in the mappingarray, the extra elements are assumed to be -1. The sametexture coordinate set may be used for more than one textureunit. Each texture unit in every associated Appearance musthave a valid source of texture coordinates: either anon-negative texture coordinate set must be specified in themapping array or texture coordinate generation must be enabled.Texture coordinate generation will take precedence for thosetexture units for which a texture coordinate set is specifiedand texture coordinate generation is enabled. IfvertexFormat does not include one ofTEXTURE_COORDINATE_2 orTEXTURE_COORDINATE_3 orTEXTURE_COORDINATE_4, thetexCoordSetMap array is not used. The following exampleillustrates the use of the texCoordSetMap array.

    Index
    Element
    Description
    0
    1
    Use tex coord set 1 for tex unit 0
    1
    -1
    Use no tex coord set for tex unit 1
    2
    0
    Use tex coord set 0 for tex unit 2
    3
    1
    Reuse tex coord set 1 for tex unit 3


Parameters:
  vertexAttrCount - the number of vertex attributesin this GeometryArray object. If vertexFormatdoes not include VERTEX_ATTRIBUTES, thevertexAttrCount parameter must be 0.


Parameters:
  vertexAttrSizes - is an array that specifes the size ofeach vertex attribute. Each element in the array specifies thenumber of components in the attribute, from 1 to 4. The lengthof the array must be equal to vertexAttrCount.


exception:
  
IllegalArgumentException - if vertexCount < 0
exception:
  IllegalArgumentException - if vertexFormat does notinclude COORDINATES
exception:
  IllegalArgumentException - if the USE_COORD_INDEX_ONLYbit or the BY_REFERENCE_INDICES bit is set for non-indexed geometry arrays (that is, GeometryArray objectsthat are not a subclass of IndexedGeometryArray)
exception:
  IllegalArgumentException - if the INTERLEAVEDbit is set without the BY_REFERENCE bit being set
exception:
  IllegalArgumentException - if the USE_NIO_BUFFERbit is set without the BY_REFERENCE bit being set
exception:
  IllegalArgumentException - if the INTERLEAVEDbit and the VERTEX_ATTRIBUTES bit are both set
exception:
  IllegalArgumentException - if the BY_REFERENCE_INDICESbit is set without the BY_REFERENCE and USE_COORD_INDEX_ONLY bits being set
exception:
  IllegalArgumentException - iftexCoordSetCount < 0
exception:
  IllegalArgumentException - if any element intexCoordSetMap[] >= texCoordSetCount.
exception:
  IllegalArgumentException - ifvertexAttrCount > 0 and theVERTEX_ATTRIBUTES bit is not set
exception:
  IllegalArgumentException - ifvertexAttrCount < 0
exception:
  IllegalArgumentException - ifvertexAttrSizes.length != vertexAttrCount
exception:
  IllegalArgumentException - if any element invertexAttrSizes[] is < 1 or> 4.
since:
   Java 3D 1.4





Method Detail
duplicateAttributes
void duplicateAttributes(NodeComponent originalNodeComponent, boolean forceDuplicate)(Code)
Copies all node information from originalNodeComponent into the current node. This method is called from the duplicateNode method. This routine does the actual duplication of all "local data" (any data defined in this object).
Parameters:
  originalNodeComponent - the original node to duplicate.
Parameters:
  forceDuplicate - when set to true, causes theduplicateOnCloneTree flag to be ignored. Whenfalse, the value of each node'sduplicateOnCloneTree variable determines whetherNodeComponent data is duplicated or copied.
See Also:   Node.cloneTree
See Also:   NodeComponent.setDuplicateOnCloneTree



getColor
public void getColor(int index, float color)(Code)
Gets the color associated with the vertex at the specified index for this object. The color is copied into the specified array. The array must be large enough to hold all of the colors.
Parameters:
  index - source vertex index in this geometry array
Parameters:
  color - destination array of 3 or 4 values that will receive the color
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



getColor
public void getColor(int index, byte color)(Code)
Gets the color associated with the vertex at the specified index for this object. The color is copied into the specified array. The array must be large enough to hold all of the colors.
Parameters:
  index - source vertex index in this geometry array
Parameters:
  color - destination array of 3 or 4 values that will receive the color
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



getColor
public void getColor(int index, Color3f color)(Code)
Gets the color associated with the vertex at the specified index for this object.
Parameters:
  index - source vertex index in this geometry array
Parameters:
  color - a vector that will receive the color
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_4 is specified in the vertexformat



getColor
public void getColor(int index, Color4f color)(Code)
Gets the color associated with the vertex at the specified index for this object.
Parameters:
  index - source vertex index in this geometry array
Parameters:
  color - a vector that will receive the color
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_3 is specified in the vertexformat



getColor
public void getColor(int index, Color3b color)(Code)
Gets the color associated with the vertex at the specified index for this object.
Parameters:
  index - source vertex index in this geometry array
Parameters:
  color - a vector that will receive the color
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_4 is specified in the vertexformat



getColor
public void getColor(int index, Color4b color)(Code)
Gets the color associated with the vertex at the specified index for this object.
Parameters:
  index - source vertex index in this geometry array
Parameters:
  color - a vector that will receive the color
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_3 is specified in the vertexformat



getColorRef3b
public Color3b[] getColorRef3b()(Code)

since:
   Java 3D 1.2



getColorRef3f
public Color3f[] getColorRef3f()(Code)

since:
   Java 3D 1.2



getColorRef4b
public Color4b[] getColorRef4b()(Code)

since:
   Java 3D 1.2



getColorRef4f
public Color4f[] getColorRef4f()(Code)

since:
   Java 3D 1.2



getColorRefBuffer
public J3DBuffer getColorRefBuffer()(Code)
Gets the color array buffer reference. the current color array buffer reference.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is not USE_NIO_BUFFER, or is INTERLEAVED.
since:
   Java 3D 1.3



getColorRefByte
public byte[] getColorRefByte()(Code)
Gets the byte color array reference. the current byte color array reference.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is USE_NIO_BUFFER, or is INTERLEAVED.
since:
   Java 3D 1.2



getColorRefFloat
public float[] getColorRefFloat()(Code)
Gets the float color array reference. the current float color array reference.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is USE_NIO_BUFFER, or is INTERLEAVED.
since:
   Java 3D 1.2



getColors
public void getColors(int index, float colors)(Code)
Gets the colors associated with the vertices starting at the specified index for this object. The color is copied into the specified array. The length of the destination array determines the number of colors copied. A maximum of vertexCount-index colors are copied. If the destination array is larger than is needed to hold the colors, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the colors, only as many colors as the array will hold are copied.
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  colors - destination array of 3*n or 4*n values that will receive n new colors
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



getColors
public void getColors(int index, byte colors)(Code)
Gets the colors associated with the vertices starting at the specified index for this object. The color is copied into the specified array. The length of the destination array determines the number of colors copied. A maximum of vertexCount-index colors are copied. If the destination array is larger than is needed to hold the colors, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the colors, only as many colors as the array will hold are copied.
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  colors - destination array of 3*n or 4*n values that will receive new colors
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



getColors
public void getColors(int index, Color3f colors)(Code)
Gets the colors associated with the vertices starting at the specified index for this object. The color is copied into the specified array. The length of the destination array determines the number of colors copied. A maximum of vertexCount-index colors are copied. If the destination array is larger than is needed to hold the colors, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the colors, only as many colors as the array will hold are copied.
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  colors - destination array of Color3f objects that will receive new colors
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_4 is specified in the vertexformat



getColors
public void getColors(int index, Color4f colors)(Code)
Gets the colors associated with the vertices starting at the specified index for this object. The color is copied into the specified array. The length of the destination array determines the number of colors copied. A maximum of vertexCount-index colors are copied. If the destination array is larger than is needed to hold the colors, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the colors, only as many colors as the array will hold are copied.
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  colors - destination array of Color4f objects that will receive new colors
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_3 is specified in the vertexformat



getColors
public void getColors(int index, Color3b colors)(Code)
Gets the colors associated with the vertices starting at the specified index for this object. The color is copied into the specified array. The length of the destination array determines the number of colors copied. A maximum of vertexCount-index colors are copied. If the destination array is larger than is needed to hold the colors, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the colors, only as many colors as the array will hold are copied.
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  colors - destination array of Color3b objects that will receive new colors
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_4 is specified in the vertexformat



getColors
public void getColors(int index, Color4b colors)(Code)
Gets the colors associated with the vertices starting at the specified index for this object. The color is copied into the specified array. The length of the destination array determines the number of colors copied. A maximum of vertexCount-index colors are copied. If the destination array is larger than is needed to hold the colors, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the colors, only as many colors as the array will hold are copied.
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  colors - destination array of Color4b objects that will receive new colors
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_3 is specified in the vertexformat



getCoordRef3d
public Point3d[] getCoordRef3d()(Code)

since:
   Java 3D 1.2



getCoordRef3f
public Point3f[] getCoordRef3f()(Code)

since:
   Java 3D 1.2



getCoordRefBuffer
public J3DBuffer getCoordRefBuffer()(Code)
Gets the coordinate array buffer reference. the current coordinate array buffer reference.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is not USE_NIO_BUFFER, or is INTERLEAVED.
since:
   Java 3D 1.3



getCoordRefDouble
public double[] getCoordRefDouble()(Code)
Gets the double coordinate array reference. the current double coordinate array reference.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is USE_NIO_BUFFER, or is INTERLEAVED.
since:
   Java 3D 1.2



getCoordRefFloat
public float[] getCoordRefFloat()(Code)
Gets the float coordinate array reference. the current float coordinate array reference.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is USE_NIO_BUFFER, or is INTERLEAVED.
since:
   Java 3D 1.2



getCoordinate
public void getCoordinate(int index, float coordinate)(Code)
Gets the coordinate associated with the vertex at the specified index for this object using data in texCoords
Parameters:
  index - source vertex index in this geometry array
Parameters:
  coordinate - destination array of 3 values that will receive the coordinate
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



getCoordinate
public void getCoordinate(int index, double coordinate)(Code)
Gets the coordinate associated with the vertex at the specified index for this object.
Parameters:
  index - source vertex index in this geometry array
Parameters:
  coordinate - destination array of 3 values that will receive the coordinate
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



getCoordinate
public void getCoordinate(int index, Point3f coordinate)(Code)
Gets the coordinate associated with the vertex at the specified index for this object.
Parameters:
  index - source vertex index in this geometry array
Parameters:
  coordinate - a vector that will receive the coordinate
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



getCoordinate
public void getCoordinate(int index, Point3d coordinate)(Code)
Gets the coordinate associated with the vertex at the specified index for this object.
Parameters:
  index - source vertex index in this geometry array
Parameters:
  coordinate - a vector that will receive the coordinate
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



getCoordinates
public void getCoordinates(int index, float coordinates)(Code)
Gets the coordinates associated with the vertices starting at the specified index for this object. The length of the destination array determines the number of vertices copied. A maximum of vertexCount-index coordinates are copied. If the destination array is larger than is needed to hold the coordinates, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the coordinates, only as many coordinates as the array will hold are copied.
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  coordinates - destination array of 3*n values that will receive new coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



getCoordinates
public void getCoordinates(int index, double coordinates)(Code)
Gets the coordinates associated with the vertices starting at the specified index for this object. The length of the destination array determines the number of vertices copied. A maximum of vertexCount-index coordinates are copied. If the destination array is larger than is needed to hold the coordinates, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the coordinates, only as many coordinates as the array will hold are copied.
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  coordinates - destination array of 3*n values that will receive new coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



getCoordinates
public void getCoordinates(int index, Point3f coordinates)(Code)
Gets the coordinates associated with the vertices starting at the specified index for this object. The length of the destination array determines the number of vertices copied. A maximum of vertexCount-index coordinates are copied. If the destination array is larger than is needed to hold the coordinates, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the coordinates, only as many coordinates as the array will hold are copied.
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  coordinates - destination array of points that will receive new coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



getCoordinates
public void getCoordinates(int index, Point3d coordinates)(Code)
Gets the coordinates associated with the vertices starting at the specified index for this object. The length of the destination array determines the number of vertices copied. A maximum of vertexCount-index coordinates are copied. If the destination array is larger than is needed to hold the coordinates, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the coordinates, only as many coordinates as the array will hold are copied.
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  coordinates - destination array of points that will receive new coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



getInitialColorIndex
public int getInitialColorIndex()(Code)
Gets the initial color index for this GeometryArray object. This attribute is only used when the data mode for this geometry array object is BY_REFERENCE and is not INTERLEAVED. the current initial color index for thisGeometryArray object.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
since:
   Java 3D 1.2



getInitialCoordIndex
public int getInitialCoordIndex()(Code)
Gets the initial coordinate index for this GeometryArray object. This attribute is only used when the data mode for this geometry array object is BY_REFERENCE and is not INTERLEAVED. the current initial coordinate index for thisGeometryArray object.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
since:
   Java 3D 1.2



getInitialNormalIndex
public int getInitialNormalIndex()(Code)
Gets the initial normal index for this GeometryArray object. This attribute is only used when the data mode for this geometry array object is BY_REFERENCE and is not INTERLEAVED. the current initial normal index for thisGeometryArray object.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
since:
   Java 3D 1.2



getInitialTexCoordIndex
public int getInitialTexCoordIndex(int texCoordSet)(Code)
Gets the initial texture coordinate index for the specified texture coordinate set for this GeometryArray object. This attribute is only used when the data mode for this geometry array object is BY_REFERENCE and is not INTERLEAVED.
Parameters:
  texCoordSet - texture coordinate set in this geometry array the current initial texture coordinate index for the specifiedtexture coordinate set
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if texCoordSet is out of range.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
since:
   Java 3D 1.2



getInitialVertexAttrIndex
public int getInitialVertexAttrIndex(int vertexAttrNum)(Code)
Gets the initial vertex attribute index for the specified vertex attribute number for this GeometryArray object. This attribute is only used when the data mode for this geometry array object is BY_REFERENCE and is not INTERLEAVED.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array the current initial vertex attribute index for the specifiedvertex attribute number
exception:
  ArrayIndexOutOfBoundsException - if vertexAttrNum isout of range.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
since:
   Java 3D 1.4



getInitialVertexIndex
public int getInitialVertexIndex()(Code)
Gets the initial vertex index for this GeometryArray object. This attribute is only used when the data mode for this geometry array object is not BY_REFERENCE or when the data mode is INTERLEAVED. the current initial vertex index for this GeometryArray object.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
since:
   Java 3D 1.2



getInterleavedVertexBuffer
public J3DBuffer getInterleavedVertexBuffer()(Code)
Gets the interleaved vertex array buffer reference. the current interleaved vertex array buffer reference.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not INTERLEAVEDor is not USE_NIO_BUFFER.
since:
   Java 3D 1.3



getInterleavedVertices
public float[] getInterleavedVertices()(Code)
Gets the interleaved vertices array reference. the current interleaved vertices array reference.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not INTERLEAVEDor is USE_NIO_BUFFER.
since:
   Java 3D 1.2



getNormal
public void getNormal(int index, float normal)(Code)
Gets the normal associated with the vertex at the specified index for this object. The normal is copied into the specified array.
Parameters:
  index - source vertex index in this geometry array
Parameters:
  normal - destination array of 3 values that will receive the normal
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



getNormal
public void getNormal(int index, Vector3f normal)(Code)
Gets the normal associated with the vertex at the specified index for this object.
Parameters:
  index - source vertex index in this geometry array
Parameters:
  normal - the vector that will receive the normal
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



getNormalRef3f
public Vector3f[] getNormalRef3f()(Code)

since:
   Java 3D 1.2



getNormalRefBuffer
public J3DBuffer getNormalRefBuffer()(Code)
Gets the normal array buffer reference. the current normal array buffer reference.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is not USE_NIO_BUFFER, or is INTERLEAVED.
since:
   Java 3D 1.3



getNormalRefFloat
public float[] getNormalRefFloat()(Code)
Gets the float normal array reference. the current float normal array reference.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is USE_NIO_BUFFER, or is INTERLEAVED.
since:
   Java 3D 1.2



getNormals
public void getNormals(int index, float normals)(Code)
Gets the normals associated with the vertices starting at the specified index for this object. The length of the destination array determines the number of normals copied. A maximum of vertexCount-index normals are copied. If the destination array is larger than is needed to hold the normals, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the normals, only as many normals as the array will hold are copied.
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  normals - destination array of 3*n values that will receive the normal
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



getNormals
public void getNormals(int index, Vector3f normals)(Code)
Gets the normals associated with the vertices starting at the specified index for this object. The length of the destination array determines the number of normals copied. A maximum of vertexCount-index normals are copied. If the destination array is larger than is needed to hold the normals, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the normals, only as many normals as the array will hold are copied.
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  normals - destination array of vectors that will receive the normals
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



getTexCoordRef2f
public TexCoord2f[] getTexCoordRef2f(int texCoordSet)(Code)

since:
   Java 3D 1.2



getTexCoordRef3f
public TexCoord3f[] getTexCoordRef3f(int texCoordSet)(Code)

since:
   Java 3D 1.2



getTexCoordRefBuffer
public J3DBuffer getTexCoordRefBuffer(int texCoordSet)(Code)
Gets the texture coordinate array buffer reference for the specified texture coordinate set.
Parameters:
  texCoordSet - texture coordinate set in this geometry array the current texture coordinate array buffer referencefor the specified texture coordinate set
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is not USE_NIO_BUFFER, or is INTERLEAVED.
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or texCoordSet is out of range.
since:
   Java 3D 1.3



getTexCoordRefFloat
public float[] getTexCoordRefFloat(int texCoordSet)(Code)
Gets the float texture coordinate array reference for the specified texture coordinate set.
Parameters:
  texCoordSet - texture coordinate set in this geometry array the current float texture coordinate array referencefor the specified texture coordinate set
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is USE_NIO_BUFFER, or is INTERLEAVED.
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or texCoordSet is out of range.
since:
   Java 3D 1.2



getTexCoordSetCount
public int getTexCoordSetCount()(Code)
Retrieves the number of texture coordinate sets in this GeometryArray object. the number of texture coordinate setsin this GeometryArray object
since:
   Java 3D 1.2



getTexCoordSetMap
public void getTexCoordSetMap(int[] texCoordSetMap)(Code)
Retrieves the texture coordinate set mapping array from this GeometryArray object.
Parameters:
  texCoordSetMap - an array that will receive a copy of thetexture coordinate set mapping array. The array must be largeenough to hold all entries of the texture coordinate setmapping array.
since:
   Java 3D 1.2



getTexCoordSetMapLength
public int getTexCoordSetMapLength()(Code)
Retrieves the length of the texture coordinate set mapping array of this GeometryArray object. the length of the texture coordinate set mappingarray of this GeometryArray object
since:
   Java 3D 1.2



getTextureCoordinate
public void getTextureCoordinate(int index, float texCoord)(Code)



getTextureCoordinate
public void getTextureCoordinate(int texCoordSet, int index, float texCoord)(Code)
Gets the texture coordinate associated with the vertex at the specified index in the specified texture coordinate set for this object.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - source vertex index in this geometry array
Parameters:
  texCoord - array of 2, 3 or 4 values that will receive thetexture coordinate
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
since:
   Java 3D 1.2



getTextureCoordinate
public void getTextureCoordinate(int index, Point2f texCoord)(Code)



getTextureCoordinate
public void getTextureCoordinate(int texCoordSet, int index, TexCoord2f texCoord)(Code)
Gets the texture coordinate associated with the vertex at the specified index in the specified texture coordinate set for this object.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - source vertex index in this geometry array
Parameters:
  texCoord - the vector that will receive the texture coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if TEXTURE_COORDINATE_3 orTEXTURE_COORDINATE_4 is specified in vertex format
since:
   Java 3D 1.2



getTextureCoordinate
public void getTextureCoordinate(int index, Point3f texCoord)(Code)



getTextureCoordinate
public void getTextureCoordinate(int texCoordSet, int index, TexCoord3f texCoord)(Code)
Gets the texture coordinate associated with the vertex at the specified index in the specified texture coordinate set for this object.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - source vertex index in this geometry array
Parameters:
  texCoord - the vector that will receive the texture coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if TEXTURE_COORDINATE_2 orTEXTURE_COORDINATE_4 is specified in vertex format
since:
   Java 3D 1.2



getTextureCoordinate
public void getTextureCoordinate(int texCoordSet, int index, TexCoord4f texCoord)(Code)
Gets the texture coordinate associated with the vertex at the specified index in the specified texture coordinate set for this object.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - source vertex index in this geometry array
Parameters:
  texCoord - the vector that will receive the texture coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if TEXTURE_COORDINATE_2 orTEXTURE_COORDINATE_3 is specified in vertex format
since:
   Java 3D 1.3



getTextureCoordinates
public void getTextureCoordinates(int index, float texCoords)(Code)



getTextureCoordinates
public void getTextureCoordinates(int texCoordSet, int index, float texCoords)(Code)
Gets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object. The length of the destination array determines the number of texture coordinates copied. A maximum of vertexCount-index texture coordinates are copied. If the destination array is larger than is needed to hold the texture coordinates, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the texture coordinates, only as many texture coordinates as the array will hold are copied.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  texCoords - destination array of 2*n , 3*n or 4*n values thatwill receive n new texture coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
since:
   Java 3D 1.2



getTextureCoordinates
public void getTextureCoordinates(int index, Point2f texCoords)(Code)



getTextureCoordinates
public void getTextureCoordinates(int texCoordSet, int index, TexCoord2f texCoords)(Code)
Gets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object. The length of the destination array determines the number of texture coordinates copied. A maximum of vertexCount-index texture coordinates are copied. If the destination array is larger than is needed to hold the texture coordinates, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the texture coordinates, only as many texture coordinates as the array will hold are copied.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  texCoords - destination array of TexCoord2f objects that willreceive the texture coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if TEXTURE_COORDINATE_3 orTEXTURE_COORDINATE_4 is specified in vertex format
since:
   Java 3D 1.2



getTextureCoordinates
public void getTextureCoordinates(int index, Point3f texCoords)(Code)



getTextureCoordinates
public void getTextureCoordinates(int texCoordSet, int index, TexCoord3f texCoords)(Code)
Gets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object. The length of the destination array determines the number of texture coordinates copied. A maximum of vertexCount-index texture coordinates are copied. If the destination array is larger than is needed to hold the texture coordinates, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the texture coordinates, only as many texture coordinates as the array will hold are copied.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  texCoords - destination array of TexCoord3f objects that willreceive the texture coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if TEXTURE_COORDINATE_2 orTEXTURE_COORDINATE_4 is specified in vertex format
since:
   Java 3D 1.2



getTextureCoordinates
public void getTextureCoordinates(int texCoordSet, int index, TexCoord4f texCoords)(Code)
Gets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object. The length of the destination array determines the number of texture coordinates copied. A maximum of vertexCount-index texture coordinates are copied. If the destination array is larger than is needed to hold the texture coordinates, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the texture coordinates, only as many texture coordinates as the array will hold are copied.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  texCoords - destination array of TexCoord4f objects that willreceive the texture coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if TEXTURE_COORDINATE_2 orTEXTURE_COORDINATE_3 is specified in vertex format
since:
   Java 3D 1.3



getValidVertexCount
public int getValidVertexCount()(Code)
Gets the valid vertex count for this GeometryArray object. For geometry strip primitives (subclasses of GeometryStripArray), the valid vertex count is defined to be the sum of the stripVertexCounts array. the current valid vertex count
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
since:
   Java 3D 1.2



getVertexAttr
public void getVertexAttr(int vertexAttrNum, int index, float[] vertexAttr)(Code)
Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - source vertex index in this geometry array
Parameters:
  vertexAttr - array of 1, 2, 3 or 4 values that will receive thevertex attribute
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if the index orvertexAttrNum is out of range, or if the vertexAttr array istoo small.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
since:
   Java 3D 1.4



getVertexAttr
public void getVertexAttr(int vertexAttrNum, int index, Point2f vertexAttr)(Code)
Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - source vertex index in this geometry array
Parameters:
  vertexAttr - the vector that will receive the vertex attributes
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if the index orvertexAttrNum is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if the size of the specifiedvertex attribute number is not 2.
since:
   Java 3D 1.4



getVertexAttr
public void getVertexAttr(int vertexAttrNum, int index, Point3f vertexAttr)(Code)
Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - source vertex index in this geometry array
Parameters:
  vertexAttr - the vector that will receive the vertex attributes
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if the index orvertexAttrNum is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if the size of the specifiedvertex attribute number is not 3.
since:
   Java 3D 1.4



getVertexAttr
public void getVertexAttr(int vertexAttrNum, int index, Point4f vertexAttr)(Code)
Gets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - source vertex index in this geometry array
Parameters:
  vertexAttr - the vector that will receive the vertex attributes
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if the index orvertexAttrNum is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if the size of the specifiedvertex attribute number is not 4.
since:
   Java 3D 1.4



getVertexAttrCount
public int getVertexAttrCount()(Code)
Retrieves the number of vertex attributes in this GeometryArray object. the number of vertex attributes in this GeometryArrayobject
since:
   Java 3D 1.4



getVertexAttrRefBuffer
public J3DBuffer getVertexAttrRefBuffer(int vertexAttrNum)(Code)
Gets the vertex attribute array buffer reference for the specified vertex attribute number.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array the current vertex attribute array buffer referencefor the specified vertex attribute number
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is not USE_NIO_BUFFER, or is INTERLEAVED.
exception:
  ArrayIndexOutOfBoundsException - if vertexAttrNum is outof range.
since:
   Java 3D 1.4



getVertexAttrRefFloat
public float[] getVertexAttrRefFloat(int vertexAttrNum)(Code)
Gets the float vertex attribute array reference for the specified vertex attribute number.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array the current float vertex attribute array referencefor the specified vertex attribute number
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is USE_NIO_BUFFER, or is INTERLEAVED.
exception:
  ArrayIndexOutOfBoundsException - if vertexAttrNum isout of range.
since:
   Java 3D 1.4



getVertexAttrSizes
public void getVertexAttrSizes(int[] vertexAttrSizes)(Code)
Retrieves the vertex attribute sizes array from this GeometryArray object.
Parameters:
  vertexAttrSizes - an array that will receive a copy ofthe vertex attribute sizes array. The array must hold at leastvertexAttrCount elements.
since:
   Java 3D 1.4



getVertexAttrs
public void getVertexAttrs(int vertexAttrNum, int index, float[] vertexAttrs)(Code)
Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object. The length of the destination array determines the number of vertex attributes copied. A maximum of vertexCount-index vertex attributes are copied. If the destination array is larger than is needed to hold the vertex attributes, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the vertex attributes, only as many vertex attributes as the array will hold are copied.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  vertexAttrs - destination array of 1*n, 2*n, 3*n, or 4*n valuesthat will receive n new vertex attributes
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if the index orvertexAttrNum is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
since:
   Java 3D 1.4



getVertexAttrs
public void getVertexAttrs(int vertexAttrNum, int index, Point2f[] vertexAttrs)(Code)
Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object. The length of the destination array determines the number of vertex attributes copied. A maximum of vertexCount-index vertex attributes are copied. If the destination array is larger than is needed to hold the vertex attributes, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the vertex attributes, only as many vertex attributes as the array will hold are copied.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  vertexAttrs - destination array of Point2f objects that willreceive the vertex attributes
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if the index orvertexAttrNum is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if the size of the specifiedvertex attribute number is not 2.
since:
   Java 3D 1.4



getVertexAttrs
public void getVertexAttrs(int vertexAttrNum, int index, Point3f[] vertexAttrs)(Code)
Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object. The length of the destination array determines the number of vertex attributes copied. A maximum of vertexCount-index vertex attributes are copied. If the destination array is larger than is needed to hold the vertex attributes, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the vertex attributes, only as many vertex attributes as the array will hold are copied.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  vertexAttrs - destination array of Point3f objects that willreceive the vertex attributes
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if the index orvertexAttrNum is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if the size of the specifiedvertex attribute number is not 3.
since:
   Java 3D 1.4



getVertexAttrs
public void getVertexAttrs(int vertexAttrNum, int index, Point4f[] vertexAttrs)(Code)
Gets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object. The length of the destination array determines the number of vertex attributes copied. A maximum of vertexCount-index vertex attributes are copied. If the destination array is larger than is needed to hold the vertex attributes, the excess locations in the array are not modified. If the destination array is smaller than is needed to hold the vertex attributes, only as many vertex attributes as the array will hold are copied.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - starting source vertex index in this geometry array
Parameters:
  vertexAttrs - destination array of Point4f objects that willreceive the vertex attributes
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if the index orvertexAttrNum is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if the size of the specifiedvertex attribute number is not 4.
since:
   Java 3D 1.4



getVertexCount
public int getVertexCount()(Code)
Retrieves the number of vertices in this GeometryArray number of vertices in this GeometryArray
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph



getVertexFormat
public int getVertexFormat()(Code)
Retrieves the vertexFormat of this GeometryArray format of vertices in this GeometryArray
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph



setColor
public void setColor(int index, float color)(Code)
Sets the color associated with the vertex at the specified index for this object.
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  color - source array of 3 or 4 values containing the new color
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setColor
public void setColor(int index, byte color)(Code)
Sets the color associated with the vertex at the specified index for this object.
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  color - source array of 3 or 4 values containing the new color
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setColor
public void setColor(int index, Color3f color)(Code)
Sets the color associated with the vertex at the specified index for this object.
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  color - a Color3f containing the new color
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_4 is specified in the vertex format



setColor
public void setColor(int index, Color4f color)(Code)
Sets the color associated with the vertex at the specified index for this object.
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  color - a Color4f containing the new color
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_3 is specified in the vertex format



setColor
public void setColor(int index, Color3b color)(Code)
Sets the color associated with the vertex at the specified index for this object.
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  color - a Color3b containing the new color
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_4 is specified in the vertex format



setColor
public void setColor(int index, Color4b color)(Code)
Sets the color associated with the vertex at the specified index for this object.
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  color - a Color4b containing the new color
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_3 is specified in the vertex format



setColorRef3b
public void setColorRef3b(Color3b[] colors)(Code)

since:
   Java 3D 1.2



setColorRef3f
public void setColorRef3f(Color3f[] colors)(Code)

since:
   Java 3D 1.2



setColorRef4b
public void setColorRef4b(Color4b[] colors)(Code)

since:
   Java 3D 1.2



setColorRef4f
public void setColorRef4f(Color4f[] colors)(Code)

since:
   Java 3D 1.2



setColorRefBuffer
public void setColorRefBuffer(J3DBuffer colors)(Code)
Sets the color buffer reference to the specified buffer object. The buffer contains either a java.nio.FloatBuffer or java.nio.ByteBuffer object containing floating-point or byte red, green, blue, and, optionally, alpha values for each vertex (for a total of 3*n or 4*n values, where n is the number of vertices). If the color buffer reference is null and colors are enabled (that is, the vertexFormat includes either COLOR_3 or COLOR_4), the entire geometry array object is treated as if it were null--any Shape3D or Morph node that uses this geometry array will not be drawn.
Parameters:
  colors - a J3DBuffer object to which a reference will be set.The buffer contains an NIO buffer of 3*n or 4*nfloat or byte values.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is not USE_NIO_BUFFER, or is INTERLEAVED.
exception:
  IllegalArgumentException - if the java.nio.Buffercontained in the specified J3DBuffer is not ajava.nio.FloatBuffer or a java.nio.ByteBuffer object.
exception:
  ArrayIndexOutOfBoundsException - if none of theCOLOR bits are set in thevertexFormat, or ifcolors.getBuffer().limit() < num_words *(initialColorIndex + validVertexCount),where num_words is 3 or 4 depending on the vertex color format.
exception:
  ArrayIndexOutOfBoundsException - if this GeometryArrayobject is a subclass of IndexedGeometryArray, and any elementin the range[initialIndexIndex, initialIndexIndex+validIndexCount-1]in the color index array is greater than or equal to thenumber of vertices defined by the colors object,colors.getBuffer().limit() / num_words.
since:
   Java 3D 1.3



setColorRefByte
public void setColorRefByte(byte[] colors)(Code)
Sets the byte color array reference to the specified array. The array contains red, green, blue, and, optionally, alpha values for each vertex (for a total of 3*n or 4*n values, where n is the number of vertices). Only one of colorRefFloat, colorRefByte, colorRef3f, colorRef4f, colorRef3b, or colorRef4b may be non-null (or they may all be null). An attempt to set more than one of these attributes to a non-null reference will result in an exception being thrown. If all color array references are null and colors are enabled (that is, the vertexFormat includes either COLOR_3 or COLOR_4), the entire geometry array object is treated as if it were null--any Shape3D or Morph node that uses this geometry array will not be drawn.
Parameters:
  colors - an array of 3*n or 4*n values to which areference will be set.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is USE_NIO_BUFFER, or is INTERLEAVED.
exception:
  IllegalArgumentException - if the specified array isnon-null and any other color reference is also non-null.
exception:
  ArrayIndexOutOfBoundsException - if none of theCOLOR bits are set in thevertexFormat, or ifcolors.length < num_words *(initialColorIndex + validVertexCount),where num_words is 3 or 4 depending on the vertex color format.
exception:
  ArrayIndexOutOfBoundsException - if this GeometryArrayobject is a subclass of IndexedGeometryArray, and any elementin the range[initialIndexIndex, initialIndexIndex+validIndexCount-1]in the color index array is greater than or equal to thenumber of vertices defined by the colors array,colors.length / num_words.
since:
   Java 3D 1.2



setColorRefFloat
public void setColorRefFloat(float[] colors)(Code)
Sets the float color array reference to the specified array. The array contains floating-point red, green, blue, and, optionally, alpha values for each vertex (for a total of 3*n or 4*n values, where n is the number of vertices). Only one of colorRefFloat, colorRefByte, colorRef3f, colorRef4f, colorRef3b, or colorRef4b may be non-null (or they may all be null). An attempt to set more than one of these attributes to a non-null reference will result in an exception being thrown. If all color array references are null and colors are enabled (that is, the vertexFormat includes either COLOR_3 or COLOR_4), the entire geometry array object is treated as if it were null--any Shape3D or Morph node that uses this geometry array will not be drawn.
Parameters:
  colors - an array of 3*n or 4*n values to which areference will be set.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is USE_NIO_BUFFER, or is INTERLEAVED.
exception:
  IllegalArgumentException - if the specified array isnon-null and any other color reference is also non-null.
exception:
  ArrayIndexOutOfBoundsException - if none of theCOLOR bits are set in thevertexFormat, or ifcolors.length < num_words *(initialColorIndex + validVertexCount),where num_words is 3 or 4 depending on the vertex color format.
exception:
  ArrayIndexOutOfBoundsException - if this GeometryArrayobject is a subclass of IndexedGeometryArray, and any elementin the range[initialIndexIndex, initialIndexIndex+validIndexCount-1]in the color index array is greater than or equal to thenumber of vertices defined by the colors array,colors.length / num_words.
since:
   Java 3D 1.2



setColors
public void setColors(int index, float colors)(Code)
Sets the colors associated with the vertices starting at the specified index for this object. The entire source array is copied to this geometry array.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  colors - source array of 3*n or 4*n values containing n new colors
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setColors
public void setColors(int index, byte colors)(Code)
Sets the colors associated with the vertices starting at the specified index for this object. The entire source array is copied to this geometry array.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  colors - source array of 3*n or 4*n values containing n new colors
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setColors
public void setColors(int index, Color3f colors)(Code)
Sets the colors associated with the vertices starting at the specified index for this object. The entire source array is copied to this geometry array.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  colors - source array of Color3f objects containing new colors
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_4 is specified in vertex format



setColors
public void setColors(int index, Color4f colors)(Code)
Sets the colors associated with the vertices starting at the specified index for this object. The entire source array is copied to this geometry array.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  colors - source array of Color4f objects containing new colors
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_3 is specified in vertex format



setColors
public void setColors(int index, Color3b colors)(Code)
Sets the colors associated with the vertices starting at the specified index for this object. The entire source array is copied to this geometry array.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  colors - source array of Color3b objects containing new colors
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_4 is specified in vertex format



setColors
public void setColors(int index, Color4b colors)(Code)
Sets the colors associated with the vertices starting at the specified index for this object. The entire source array is copied to this geometry array.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  colors - source array of Color4b objects containing new colors
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_3 is specified in vertex format



setColors
public void setColors(int index, float colors, int start, int length)(Code)
Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  colors - source array of 3*n or 4*n values containing n new colors
Parameters:
  start - starting source vertex index in colors array.
Parameters:
  length - number of colors to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setColors
public void setColors(int index, byte colors, int start, int length)(Code)
Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  colors - source array of 3*n or 4*n values containing n new colors
Parameters:
  start - starting source vertex index in colors array.
Parameters:
  length - number of colors to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setColors
public void setColors(int index, Color3f colors, int start, int length)(Code)
Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  colors - source array of Color3f objects containing new colors
Parameters:
  start - starting source vertex index in colors array.
Parameters:
  length - number of colors to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_4 is specified in vertex format



setColors
public void setColors(int index, Color4f colors, int start, int length)(Code)
Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  colors - source array of Color4f objects containing new colors
Parameters:
  start - starting source vertex index in colors array.
Parameters:
  length - number of colors to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_3 is specified in vertex format



setColors
public void setColors(int index, Color3b colors, int start, int length)(Code)
Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  colors - source array of Color3b objects containing new colors
Parameters:
  start - starting source vertex index in colors array.
Parameters:
  length - number of colors to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_4 is specified in vertex format



setColors
public void setColors(int index, Color4b colors, int start, int length)(Code)
Sets the colors associated with the vertices starting at the specified index for this object using data in colors starting at index start for length colors.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  colors - source array of Color4b objects containing new colors
Parameters:
  start - starting source vertex index in colors array.
Parameters:
  length - number of colors to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if COLOR bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if COLOR_3 is specified in vertex format



setCoordRef3d
public void setCoordRef3d(Point3d[] coords)(Code)

since:
   Java 3D 1.2



setCoordRef3f
public void setCoordRef3f(Point3f[] coords)(Code)

since:
   Java 3D 1.2



setCoordRefBuffer
public void setCoordRefBuffer(J3DBuffer coords)(Code)
Sets the coordinate buffer reference to the specified buffer object. The buffer contains either a java.nio.FloatBuffer or java.nio.DoubleBuffer object containing single or double precision floating-point x, y, and z values for each vertex (for a total of 3*n values, where n is the number of vertices). If the coordinate buffer reference is null, the entire geometry array object is treated as if it were null--any Shape3D or Morph node that uses this geometry array will not be drawn.
Parameters:
  coords - a J3DBuffer object to which a reference will be set.The buffer contains an NIO buffer of 3*n float ordouble values.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is not USE_NIO_BUFFER, or is INTERLEAVED.
exception:
  IllegalArgumentException - if the java.nio.Buffercontained in the specified J3DBuffer is not ajava.nio.FloatBuffer or a java.nio.DoubleBuffer object.
exception:
  ArrayIndexOutOfBoundsException - ifcoords.getBuffer().limit() <3 * (initialCoordIndex + validVertexCount).
exception:
  ArrayIndexOutOfBoundsException - if this GeometryArrayobject is a subclass of IndexedGeometryArray, and any elementin the range[initialIndexIndex, initialIndexIndex+validIndexCount-1]in the coordinate index array is greater than or equal to thenumber of vertices defined by the coords object,coords.getBuffer().limit() / 3.
since:
   Java 3D 1.3



setCoordRefDouble
public void setCoordRefDouble(double[] coords)(Code)
Sets the double coordinate array reference to the specified array. The array contains double-precision floating-point x, y, and z values for each vertex (for a total of 3*n values, where n is the number of vertices). Only one of coordRefFloat, coordRefDouble, coordRef3f, or coordRef3d may be non-null (or they may all be null). An attempt to set more than one of these attributes to a non-null reference will result in an exception being thrown. If all coordinate array references are null, the entire geometry array object is treated as if it were null--any Shape3D or Morph node that uses this geometry array will not be drawn.
Parameters:
  coords - an array of 3*n values to which areference will be set.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is USE_NIO_BUFFER, or is INTERLEAVED.
exception:
  IllegalArgumentException - if the specified array isnon-null and any other coordinate reference is also non-null.
exception:
  ArrayIndexOutOfBoundsException - ifcoords.length < 3 * (initialCoordIndex + validVertexCount).
exception:
  ArrayIndexOutOfBoundsException - if this GeometryArrayobject is a subclass of IndexedGeometryArray, and any elementin the range[initialIndexIndex, initialIndexIndex+validIndexCount-1]in the coordinate index array is greater than or equal to thenumber of vertices defined by the coords array,coords.length / 3.
since:
   Java 3D 1.2



setCoordRefFloat
public void setCoordRefFloat(float[] coords)(Code)
Sets the float coordinate array reference to the specified array. The array contains floating-point x, y, and z values for each vertex (for a total of 3*n values, where n is the number of vertices). Only one of coordRefFloat, coordRefDouble, coordRef3f, or coordRef3d may be non-null (or they may all be null). An attempt to set more than one of these attributes to a non-null reference will result in an exception being thrown. If all coordinate array references are null, the entire geometry array object is treated as if it were null--any Shape3D or Morph node that uses this geometry array will not be drawn.
Parameters:
  coords - an array of 3*n values to which areference will be set.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is USE_NIO_BUFFER, or is INTERLEAVED.
exception:
  IllegalArgumentException - if the specified array isnon-null and any other coordinate reference is also non-null.
exception:
  ArrayIndexOutOfBoundsException - ifcoords.length < 3 * (initialCoordIndex + validVertexCount).
exception:
  ArrayIndexOutOfBoundsException - if this GeometryArrayobject is a subclass of IndexedGeometryArray, and any elementin the range[initialIndexIndex, initialIndexIndex+validIndexCount-1]in the coordinate index array is greater than or equal to thenumber of vertices defined by the coords array,coords.length / 3.
since:
   Java 3D 1.2



setCoordinate
public void setCoordinate(int index, float coordinate)(Code)
Sets the coordinate associated with the vertex at the specified index for this object.
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  coordinate - source array of 3 values containing the new coordinate
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setCoordinate
public void setCoordinate(int index, double coordinate)(Code)
Sets the coordinate associated with the vertex at the specified index.
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  coordinate - source array of 3 values containing the new coordinate
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setCoordinate
public void setCoordinate(int index, Point3f coordinate)(Code)
Sets the coordinate associated with the vertex at the specified index for this object.
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  coordinate - a point containing the new coordinate
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setCoordinate
public void setCoordinate(int index, Point3d coordinate)(Code)
Sets the coordinate associated with the vertex at the specified index for this object.
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  coordinate - a point containing the new coordinate
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setCoordinates
public void setCoordinates(int index, float coordinates)(Code)
Sets the coordinates associated with the vertices starting at the specified index for this object. The entire source array is copied to this geometry array.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  coordinates - source array of 3*n values containing n new coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setCoordinates
public void setCoordinates(int index, double coordinates)(Code)
Sets the coordinates associated with the vertices starting at the specified index for this object. The entire source array is copied to this geometry array.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  coordinates - source array of 3*n values containing n new coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setCoordinates
public void setCoordinates(int index, Point3f coordinates)(Code)
Sets the coordinates associated with the vertices starting at the specified index for this object. The entire source array is copied to this geometry array.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  coordinates - source array of points containing new coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setCoordinates
public void setCoordinates(int index, Point3d coordinates)(Code)
Sets the coordinates associated with the vertices starting at the specified index for this object. The entire source array is copied to this geometry array.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  coordinates - source array of points containing new coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setCoordinates
public void setCoordinates(int index, float coordinates, int start, int length)(Code)
Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  coordinates - source array of 3*n values containing n new coordinates
Parameters:
  start - starting source vertex index in coordinates array.
Parameters:
  length - number of vertices to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setCoordinates
public void setCoordinates(int index, double coordinates, int start, int length)(Code)
Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  coordinates - source array of 3*n values containing n new coordinates
Parameters:
  start - starting source vertex index in coordinates array.
Parameters:
  length - number of vertices to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setCoordinates
public void setCoordinates(int index, Point3f coordinates, int start, int length)(Code)
Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  coordinates - source array of points containing new coordinates
Parameters:
  start - starting source vertex index in coordinates array.
Parameters:
  length - number of vertices to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setCoordinates
public void setCoordinates(int index, Point3d coordinates, int start, int length)(Code)
Sets the coordinates associated with the vertices starting at the specified index for this object using coordinate data starting from vertex index start for length vertices.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  coordinates - source array of points containing new coordinates
Parameters:
  start - starting source vertex index in coordinates array.
Parameters:
  length - number of vertices to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setInitialColorIndex
public void setInitialColorIndex(int initialColorIndex)(Code)
Sets the initial color index for this GeometryArray object. This index specifies the first color within the array of colors referenced by this geometry array that is actually used in rendering or other operations such as picking and collision. This attribute is initialized to 0. This attribute is only used when the data mode for this geometry array object is BY_REFERENCE and is not INTERLEAVED.
Parameters:
  initialColorIndex - the new initial color index.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph


exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE or if the data modeis INTERLEAVED.


exception:
  IllegalArgumentException - if either of the following aretrue:

    initialColorIndex < 0 or
    initialColorIndex + validVertexCount > vertexCount


exception:
  ArrayIndexOutOfBoundsException - ifthe ColorRef array is non-null and:

    ColorRef.length < num_words *(initialColorIndex + validVertexCount)
where num_words depends on which variant ofsetColorRef is used.
since:
   Java 3D 1.2



setInitialCoordIndex
public void setInitialCoordIndex(int initialCoordIndex)(Code)
Sets the initial coordinate index for this GeometryArray object. This index specifies the first coordinate within the array of coordinates referenced by this geometry array that is actually used in rendering or other operations such as picking and collision. This attribute is initialized to 0. This attribute is only used when the data mode for this geometry array object is BY_REFERENCE and is not INTERLEAVED.
Parameters:
  initialCoordIndex - the new initial coordinate index.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph


exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE or if the data modeis INTERLEAVED.


exception:
  IllegalArgumentException - if either of the following aretrue:

    initialCoordIndex < 0 or
    initialCoordIndex + validVertexCount > vertexCount


exception:
  ArrayIndexOutOfBoundsException - ifthe CoordRef array is non-null and:

    CoordRef.length < num_words *(initialCoordIndex + validVertexCount)
where num_words depends on which variant ofsetCoordRef is used.
since:
   Java 3D 1.2



setInitialNormalIndex
public void setInitialNormalIndex(int initialNormalIndex)(Code)
Sets the initial normal index for this GeometryArray object. This index specifies the first normal within the array of normals referenced by this geometry array that is actually used in rendering or other operations such as picking and collision. This attribute is initialized to 0. This attribute is only used when the data mode for this geometry array object is BY_REFERENCE and is not INTERLEAVED.
Parameters:
  initialNormalIndex - the new initial normal index.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph


exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE or if the data modeis INTERLEAVED.


exception:
  IllegalArgumentException - if either of the following aretrue:

    initialNormalIndex < 0 or
    initialNormalIndex + validVertexCount > vertexCount


exception:
  ArrayIndexOutOfBoundsException - if normalsthe NormalRef array is non-null and:

    NormalRef.length < num_words *(initialNormalIndex + validVertexCount)
where num_words depends on which variant ofsetNormalRef is used.
since:
   Java 3D 1.2



setInitialTexCoordIndex
public void setInitialTexCoordIndex(int texCoordSet, int initialTexCoordIndex)(Code)
Sets the initial texture coordinate index for the specified texture coordinate set for this GeometryArray object. This index specifies the first texture coordinate within the array of texture coordinates referenced by this geometry array that is actually used in rendering or other operations such as picking and collision. This attribute is initialized to 0. This attribute is only used when the data mode for this geometry array object is BY_REFERENCE and is not INTERLEAVED.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  initialTexCoordIndex - the new initial texture coordinate index.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph


exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE or if the data modeis INTERLEAVED.


exception:
  IllegalArgumentException - if either of the following aretrue:

    initialTexCoordIndex < 0 or
    initialTexCoordIndex + validVertexCount > vertexCount


exception:
  ArrayIndexOutOfBoundsException - ifthe TexCoordRef array is non-null and:

    TexCoordRef.length < num_words *(initialTexCoordIndex + validVertexCount)
where num_words depends on which variant ofsetTexCoordRef is used.


exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if texCoordSet is out of range.
since:
   Java 3D 1.2




setInitialVertexAttrIndex
public void setInitialVertexAttrIndex(int vertexAttrNum, int initialVertexAttrIndex)(Code)
Sets the initial vertex attribute index for the specified vertex attribute number for this GeometryArray object. This index specifies the first vertex attribute within the array of vertex attributes referenced by this geometry array that is actually used in rendering or other operations such as picking and collision. This attribute is initialized to 0. This attribute is only used when the data mode for this geometry array object is BY_REFERENCE and is not INTERLEAVED.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  initialVertexAttrIndex - the new initial vertex attribute index.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph


exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE or if the data modeis INTERLEAVED.


exception:
  IllegalArgumentException - if either of the following aretrue:

    initialVertexAttrIndex < 0 or
    initialVertexAttrIndex + validVertexCount > vertexCount


exception:
  ArrayIndexOutOfBoundsException - ifthe VertexAttrRef array is non-null and:

    VertexAttrRef.length < num_words *(initialVertexAttrIndex + validVertexCount)
where num_words is the size of the specifiedvertexAttrNum (1, 2, 3, or 4).


exception:
  ArrayIndexOutOfBoundsException - if vertexAttrNum isout of range.
since:
   Java 3D 1.4




setInitialVertexIndex
public void setInitialVertexIndex(int initialVertexIndex)(Code)
Sets the initial vertex index for this GeometryArray object. This index specifies the first vertex within this geometry array that is actually used in rendering or other operations such as picking and collision. This attribute is initialized to 0. This attribute is only used when the data mode for this geometry array object is not BY_REFERENCE or when the data mode is INTERLEAVED.
Parameters:
  initialVertexIndex - the new initial vertex index.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalArgumentException - if either of the following aretrue:
    initialVertexIndex < 0 or
    initialVertexIndex + validVertexCount > vertexCount

exception:
  ArrayIndexOutOfBoundsException - if the geometry data formatis INTERLEAVED, the InterleavedVertices array isnon-null, and:
    InterleavedVertices.length < num_words *(initialVertexIndex + validVertexCount)
where num_words depends on which vertex formats are enabled.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE and is notINTERLEAVED.
since:
   Java 3D 1.2



setInterleavedVertexBuffer
public void setInterleavedVertexBuffer(J3DBuffer vertexData)(Code)
Sets the interleaved vertex buffer reference to the specified buffer object. The buffer must contain a java.nio.FloatBuffer object. The vertex components must be stored in a predetermined order in the buffer. The order is: texture coordinates, colors, normals, and positional coordinates. Vertex attributes are not supported in interleaved mode. In the case of texture coordinates, the values for each texture coordinate set are stored in order from 0 through texCoordSetCount-1. Only those components that are enabled appear in the vertex. The number of words per vertex depends on which vertex components are enabled. Texture coordinates, if enabled, use 2 words per texture coordinate set per vertex for TEXTURE_COORDINATE_2, 3 words per texture coordinate set per vertex for TEXTURE_COORDINATE_3 or 4 words per texture coordinate set per vertex for TEXTURE_COORDINATE_4. Colors, if enabled, use 3 words per vertex for COLOR_3 or 4 words per vertex for COLOR_4. Normals, if enabled, use 3 words per vertex. Positional coordinates, which are always enabled, use 3 words per vertex. For example, the format of interleaved data for a GeometryArray object whose vertexFormat includes COORDINATES, COLOR_3, and NORMALS would be: red, green, blue, Nx, Ny, Nz, x, y, z. All components of a vertex are stored in adjacent memory locations. The first component of vertex 0 is stored beginning at index 0 in the buffer. The first component of vertex 1 is stored beginning at index words_per_vertex in the buffer. The total number of words needed to store n vertices is words_per_vertex*n.
Parameters:
  vertexData - a J3DBuffer object to which a reference will be set.The buffer contains an NIO float buffer ofwords_per_vertex*n values.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not INTERLEAVEDor is not USE_NIO_BUFFER.
exception:
  IllegalArgumentException - if the java.nio.Buffercontained in the specified J3DBuffer is not ajava.nio.FloatBuffer object.
exception:
  ArrayIndexOutOfBoundsException - ifvertexData.getBuffer().limit() < words_per_vertex *(initialVertexIndex + validVertexCount),where words_per_vertex depends on which formats are enabled.
exception:
  ArrayIndexOutOfBoundsException - if this GeometryArrayobject is a subclass of IndexedGeometryArray, and any elementin the range[initialIndexIndex, initialIndexIndex+validIndexCount-1]in the index array associated with any of the enabled vertexcomponents (coord, color, normal, texcoord) is greater than orequal to the number of vertices defined by the vertexDataobject,vertexData.getBuffer().limit() / words_per_vertex.
since:
   Java 3D 1.3



setInterleavedVertices
public void setInterleavedVertices(float[] vertexData)(Code)
Sets the interleaved vertex array reference to the specified array. The vertex components must be stored in a predetermined order in the array. The order is: texture coordinates, colors, normals, and positional coordinates. Vertex attributes are not supported in interleaved mode. In the case of texture coordinates, the values for each texture coordinate set are stored in order from 0 through texCoordSetCount-1. Only those components that are enabled appear in the vertex. The number of words per vertex depends on which vertex components are enabled. Texture coordinates, if enabled, use 2 words per texture coordinate set per vertex for TEXTURE_COORDINATE_2, 3 words per texture coordinate set per vertex for TEXTURE_COORDINATE_3 or 4 words per texture coordinate set per vertex for TEXTURE_COORDINATE_4. Colors, if enabled, use 3 words per vertex for COLOR_3 or 4 words per vertex for COLOR_4. Normals, if enabled, use 3 words per vertex. Positional coordinates, which are always enabled, use 3 words per vertex. For example, the format of interleaved data for a GeometryArray object whose vertexFormat includes COORDINATES, COLOR_3, and NORMALS would be: red, green, blue, Nx, Ny, Nz, x, y, z. All components of a vertex are stored in adjacent memory locations. The first component of vertex 0 is stored beginning at index 0 in the array. The first component of vertex 1 is stored beginning at index words_per_vertex in the array. The total number of words needed to store n vertices is words_per_vertex*n.
Parameters:
  vertexData - an array of vertex values to which areference will be set.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not INTERLEAVEDor is USE_NIO_BUFFER.
exception:
  ArrayIndexOutOfBoundsException - ifvertexData.length < words_per_vertex *(initialVertexIndex + validVertexCount),where words_per_vertex depends on which formats are enabled.
exception:
  ArrayIndexOutOfBoundsException - if this GeometryArrayobject is a subclass of IndexedGeometryArray, and any elementin the range[initialIndexIndex, initialIndexIndex+validIndexCount-1]in the index array associated with any of the enabled vertexcomponents (coord, color, normal, texcoord) is greater than orequal to the number of vertices defined by the vertexDataarray,vertexData.length / words_per_vertex.
since:
   Java 3D 1.2



setNormal
public void setNormal(int index, float normal)(Code)
Sets the normal associated with the vertex at the specified index for this object.
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  normal - source array of 3 values containing the new normal
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if NORMALS bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setNormal
public void setNormal(int index, Vector3f normal)(Code)
Sets the normal associated with the vertex at the specified index for this object.
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  normal - the vector containing the new normal
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if NORMALS bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setNormalRef3f
public void setNormalRef3f(Vector3f[] normals)(Code)

since:
   Java 3D 1.2



setNormalRefBuffer
public void setNormalRefBuffer(J3DBuffer normals)(Code)
Sets the normal buffer reference to the specified buffer object. The buffer contains a java.nio.FloatBuffer object containing nx, ny, and nz values for each vertex (for a total of 3*n values, where n is the number of vertices). If the normal buffer reference is null and normals are enabled (that is, the vertexFormat includes NORMAL), the entire geometry array object is treated as if it were null--any Shape3D or Morph node that uses this geometry array will not be drawn.
Parameters:
  normals - a J3DBuffer object to which a reference will be set.The buffer contains an NIO buffer of 3*n float values.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is not USE_NIO_BUFFER, or is INTERLEAVED.
exception:
  IllegalArgumentException - if the java.nio.Buffercontained in the specified J3DBuffer is not ajava.nio.FloatBuffer object.
exception:
  ArrayIndexOutOfBoundsException - ifNORMALS bit is not set in thevertexFormat, or ifnormals.getBuffer().limit() <3 * (initialNormalIndex + validVertexCount).
exception:
  ArrayIndexOutOfBoundsException - if this GeometryArrayobject is a subclass of IndexedGeometryArray, and any elementin the range[initialIndexIndex, initialIndexIndex+validIndexCount-1]in the normal index array is greater than or equal to thenumber of vertices defined by the normals object,normals.getBuffer().limit() / 3.
since:
   Java 3D 1.3



setNormalRefFloat
public void setNormalRefFloat(float[] normals)(Code)
Sets the float normal array reference to the specified array. The array contains floating-point nx, ny, and nz values for each vertex (for a total of 3*n values, where n is the number of vertices). Only one of normalRefFloat or normalRef3f may be non-null (or they may all be null). An attempt to set more than one of these attributes to a non-null reference will result in an exception being thrown. If all normal array references are null and normals are enabled (that is, the vertexFormat includes NORMAL), the entire geometry array object is treated as if it were null--any Shape3D or Morph node that uses this geometry array will not be drawn.
Parameters:
  normals - an array of 3*n values to which areference will be set.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is USE_NIO_BUFFER, or is INTERLEAVED.
exception:
  IllegalArgumentException - if the specified array isnon-null and any other normal reference is also non-null.
exception:
  ArrayIndexOutOfBoundsException - ifNORMALS bit is not set in thevertexFormat, or ifnormals.length < 3 * (initialNormalIndex + validVertexCount).
exception:
  ArrayIndexOutOfBoundsException - if this GeometryArrayobject is a subclass of IndexedGeometryArray, and any elementin the range[initialIndexIndex, initialIndexIndex+validIndexCount-1]in the normal index array is greater than or equal to thenumber of vertices defined by the normals array,normals.length / 3.
since:
   Java 3D 1.2



setNormals
public void setNormals(int index, float normals)(Code)
Sets the normals associated with the vertices starting at the specified index for this object. The entire source array is copied to this geometry array.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  normals - source array of 3*n values containing n new normals
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if NORMALS bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setNormals
public void setNormals(int index, Vector3f normals)(Code)
Sets the normals associated with the vertices starting at the specified index for this object. The entire source array is copied to this geometry array.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  normals - source array of vectors containing new normals
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if NORMALS bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setNormals
public void setNormals(int index, float normals, int start, int length)(Code)
Sets the normals associated with the vertices starting at the specified index for this object using data in normals starting at index start and ending at index start+length.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  normals - source array of 3*n values containing n new normals
Parameters:
  start - starting source vertex index in normals array.
Parameters:
  length - number of normals to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if NORMALS bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setNormals
public void setNormals(int index, Vector3f normals, int start, int length)(Code)
Sets the normals associated with the vertices starting at the specified index for this object using data in normals starting at index start and ending at index start+length.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  normals - source array of vectors containing new normals
Parameters:
  start - starting source vertex index in normals array.
Parameters:
  length - number of normals to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if NORMALS bit NOT set inconstructor vertexFormat or array index for element is out of bounds.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.



setTexCoordRef2f
public void setTexCoordRef2f(int texCoordSet, TexCoord2f[] texCoords)(Code)

since:
   Java 3D 1.2



setTexCoordRef3f
public void setTexCoordRef3f(int texCoordSet, TexCoord3f[] texCoords)(Code)

since:
   Java 3D 1.2



setTexCoordRefBuffer
public void setTexCoordRefBuffer(int texCoordSet, J3DBuffer texCoords)(Code)
Sets the texture coordinate buffer reference for the specified texture coordinate set to the specified buffer object. The buffer contains a java.nio.FloatBuffer object containing s, t, and, optionally, r and q values for each vertex (for a total of 2*n , 3*n or 4*n values, where n is the number of vertices). If the texCoord buffer reference is null and texture coordinates are enabled (that is, the vertexFormat includes TEXTURE_COORDINATE_2, TEXTURE_COORDINATE_3, or TEXTURE_COORDINATE_4), the entire geometry array object is treated as if it were null--any Shape3D or Morph node that uses this geometry array will not be drawn.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  texCoords - a J3DBuffer object to which a reference will be set.The buffer contains an NIO buffer of 2*n, 3*n or4*n float values.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is not USE_NIO_BUFFER, or is INTERLEAVED.
exception:
  IllegalArgumentException - if the java.nio.Buffercontained in the specified J3DBuffer is not ajava.nio.FloatBuffer object.
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat, or if texCoordSet is out of range,or iftexCoords.getBuffer().limit() < num_words * (initialTexCoordIndex + validVertexCount),where num_words is 2, 3, or 4 depending on the vertextexture coordinate format.
exception:
  ArrayIndexOutOfBoundsException - if this GeometryArrayobject is a subclass of IndexedGeometryArray, and any elementin the range[initialIndexIndex, initialIndexIndex+validIndexCount-1]in the texture coordinate index array is greater than or equal to thenumber of vertices defined by the texCoords object,texCoords.getBuffer().limit() / num_words.
since:
   Java 3D 1.3



setTexCoordRefFloat
public void setTexCoordRefFloat(int texCoordSet, float[] texCoords)(Code)
Sets the float texture coordinate array reference for the specified texture coordinate set to the specified array. The array contains floating-point s, t, and, optionally, r and q values for each vertex (for a total of 2*n , 3*n or 4*n values, where n is the number of vertices). Only one of texCoordRefFloat, texCoordRef2f, or texCoordRef3f may be non-null (or they may all be null). An attempt to set more than one of these attributes to a non-null reference will result in an exception being thrown. If all texCoord array references are null and texture coordinates are enabled (that is, the vertexFormat includes TEXTURE_COORDINATE_2, TEXTURE_COORDINATE_3, or TEXTURE_COORDINATE_4), the entire geometry array object is treated as if it were null--any Shape3D or Morph node that uses this geometry array will not be drawn.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  texCoords - an array of 2*n, 3*n or4*n values towhich a reference will be set.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is USE_NIO_BUFFER, or is INTERLEAVED.
exception:
  IllegalArgumentException - if the specified array isnon-null and any other texCoord reference is also non-null.
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat, or if texCoordSet is out of range,or iftexCoords.length < num_words *(initialTexCoordIndex + validVertexCount),where num_words is 2, 3, or 4 depending on the vertextexture coordinate format.
exception:
  ArrayIndexOutOfBoundsException - if this GeometryArrayobject is a subclass of IndexedGeometryArray, and any elementin the range[initialIndexIndex, initialIndexIndex+validIndexCount-1]in the texture coordinate index array is greater than or equal to thenumber of vertices defined by the texCoords array,texCoords.length / num_words.
since:
   Java 3D 1.2



setTextureCoordinate
public void setTextureCoordinate(int index, float texCoord)(Code)



setTextureCoordinate
public void setTextureCoordinate(int texCoordSet, int index, float texCoord)(Code)
Sets the texture coordinate associated with the vertex at the specified index in the specified texture coordinate set for this object.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  texCoord - source array of 2, 3 or 4 values containing the newtexture coordinate
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
since:
   Java 3D 1.2



setTextureCoordinate
public void setTextureCoordinate(int index, Point2f texCoord)(Code)



setTextureCoordinate
public void setTextureCoordinate(int texCoordSet, int index, TexCoord2f texCoord)(Code)
Sets the texture coordinate associated with the vertex at the specified index in the specified texture coordinate set for this object.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  texCoord - the TexCoord2f containing the new texture coordinate
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if TEXTURE_COORDINATE_3 orTEXTURE_COORDINATE_4 is specified in vertex format
since:
   Java 3D 1.2



setTextureCoordinate
public void setTextureCoordinate(int index, Point3f texCoord)(Code)



setTextureCoordinate
public void setTextureCoordinate(int texCoordSet, int index, TexCoord3f texCoord)(Code)
Sets the texture coordinate associated with the vertex at the specified index in the specified texture coordinate set for this object.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  texCoord - the TexCoord3f containing the new texture coordinate
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if TEXTURE_COORDINATE_2 orTEXTURE_COORDINATE_4 is specified in vertex format
since:
   Java 3D 1.2



setTextureCoordinate
public void setTextureCoordinate(int texCoordSet, int index, TexCoord4f texCoord)(Code)
Sets the texture coordinate associated with the vertex at the specified index in the specified texture coordinate set for this object.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  texCoord - the TexCoord4f containing the new texture coordinate
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if TEXTURE_COORDINATE_2 orTEXTURE_COORDINATE_3 is specified in vertex format
since:
   Java 3D 1.3



setTextureCoordinates
public void setTextureCoordinates(int index, float texCoords)(Code)



setTextureCoordinates
public void setTextureCoordinates(int texCoordSet, int index, float texCoords)(Code)
Sets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object. The entire source array is copied to this geometry array.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  texCoords - source array of 2*n, 3*n or 4*n values containing n newtexture coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
since:
   Java 3D 1.2



setTextureCoordinates
public void setTextureCoordinates(int index, Point2f texCoords)(Code)



setTextureCoordinates
public void setTextureCoordinates(int texCoordSet, int index, TexCoord2f texCoords)(Code)
Sets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object. The entire source array is copied to this geometry array.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  texCoords - source array of TexCoord2f objects containing newtexture coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if TEXTURE_COORDINATE_3 orTEXTURE_COORDINATE_4 is specified in vertex format
since:
   Java 3D 1.2



setTextureCoordinates
public void setTextureCoordinates(int index, Point3f texCoords)(Code)



setTextureCoordinates
public void setTextureCoordinates(int texCoordSet, int index, TexCoord3f texCoords)(Code)
Sets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object. The entire source array is copied to this geometry array.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  texCoords - source array of TexCoord3f objects containing newtexture coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if TEXTURE_COORDINATE_2 orTEXTURE_COORDINATE_4 is specified in vertex format
since:
   Java 3D 1.2



setTextureCoordinates
public void setTextureCoordinates(int texCoordSet, int index, TexCoord4f texCoords)(Code)
Sets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object. The entire source array is copied to this geometry array.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  texCoords - source array of TexCoord4f objects containing newtexture coordinates
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if TEXTURE_COORDINATE_2 orTEXTURE_COORDINATE_3 is specified in vertex format
since:
   Java 3D 1.3



setTextureCoordinates
public void setTextureCoordinates(int index, float texCoords, int start, int length)(Code)



setTextureCoordinates
public void setTextureCoordinates(int texCoordSet, int index, float texCoords, int start, int length)(Code)
Sets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object using data in texCoords starting at index start and ending at index start+length.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  texCoords - source array of 2*n , 3*n or 4*n values containing n new texture coordinates
Parameters:
  start - starting source vertex index in texCoordsarray.
Parameters:
  length - number of texture Coordinates to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
since:
   Java 3D 1.2



setTextureCoordinates
public void setTextureCoordinates(int index, Point2f texCoords, int start, int length)(Code)



setTextureCoordinates
public void setTextureCoordinates(int texCoordSet, int index, TexCoord2f texCoords, int start, int length)(Code)
Sets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object using data in texCoords starting at index start and ending at index start+length.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  texCoords - source array of TexCoord2f objects containing newtexture coordinates
Parameters:
  start - starting source vertex index in texCoordsarray.
Parameters:
  length - number of texture Coordinates to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if TEXTURE_COORDINATE_3 or TEXTURE_COORDINATE_4 is specified in vertex format
since:
   Java 3D 1.2



setTextureCoordinates
public void setTextureCoordinates(int index, Point3f texCoords, int start, int length)(Code)



setTextureCoordinates
public void setTextureCoordinates(int texCoordSet, int index, TexCoord3f texCoords, int start, int length)(Code)
Sets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object. starting at index start and ending at index start+length.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  texCoords - source array of TexCoord3f objects containing newtexture coordinates
Parameters:
  start - starting source vertex index in texCoordsarray.
Parameters:
  length - number of texture Coordinates to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if TEXTURE_COORDINATE_2 orTEXTURE_COORDINATE_4 is specified in vertex format
since:
   Java 3D 1.2



setTextureCoordinates
public void setTextureCoordinates(int texCoordSet, int index, TexCoord4f texCoords, int start, int length)(Code)
Sets the texture coordinates associated with the vertices starting at the specified index in the specified texture coordinate set for this object. starting at index start and ending at index start+length.
Parameters:
  texCoordSet - texture coordinate set in this geometry array
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  texCoords - source array of TexCoord4f objects containing newtexture coordinates
Parameters:
  start - starting source vertex index in texCoordsarray.
Parameters:
  length - number of texture Coordinates to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if none of theTEXTURE_COORDINATE bits are set in thevertexFormat or if the index ortexCoordSet is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if TEXTURE_COORDINATE_2 orTEXTURE_COORDINATE_3 is specified in vertex format
since:
   Java 3D 1.3



setValidVertexCount
public void setValidVertexCount(int validVertexCount)(Code)
Sets the valid vertex count for this GeometryArray object. This count specifies the number of vertices actually used in rendering or other operations such as picking and collision. This attribute is initialized to vertexCount.
Parameters:
  validVertexCount - the new valid vertex count.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph


exception:
  IllegalArgumentException - if any of the following aretrue:

    validVertexCount < 0,
    initialVertexIndex + validVertexCount > vertexCount,
    initialCoordIndex + validVertexCount > vertexCount,
    initialColorIndex + validVertexCount > vertexCount,
    initialNormalIndex + validVertexCount > vertexCount,
    initialTexCoordIndex + validVertexCount > vertexCount,
    initialVertexAttrIndex + validVertexCount > vertexCount


exception:
  ArrayIndexOutOfBoundsException - if the geometry data formatis BY_REFERENCE and any the followingare true for non-null array references:

    CoordRef.length < num_words *(initialCoordIndex + validVertexCount),
    ColorRef.length < num_words *(initialColorIndex + validVertexCount),
    NormalRef.length < num_words *(initialNormalIndex + validVertexCount),
    TexCoordRef.length < num_words *(initialTexCoordIndex + validVertexCount),
    VertexAttrRef.length < num_words *(initialVertexAttrIndex + validVertexCount),
    InterleavedVertices.length < words_per_vertex *(initialVertexIndex + validVertexCount)
where num_words depends on which variant ofsetArrayRef is used, andwords_per_vertex depends on which vertex formats are enabledfor interleaved arrays.
since:
   Java 3D 1.2



setVertexAttr
public void setVertexAttr(int vertexAttrNum, int index, float[] vertexAttr)(Code)
Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  vertexAttr - source array of 1, 2, 3 or 4 values containingthe new vertex attribute
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if the index orvertexAttrNum is out of range, or if the vertexAttr array istoo small.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
since:
   Java 3D 1.4



setVertexAttr
public void setVertexAttr(int vertexAttrNum, int index, Point2f vertexAttr)(Code)
Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  vertexAttr - the Point2f containing the new vertex attribute
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if the index orvertexAttrNum is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if the size of the specifiedvertex attribute number is not 2.
since:
   Java 3D 1.4



setVertexAttr
public void setVertexAttr(int vertexAttrNum, int index, Point3f vertexAttr)(Code)
Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  vertexAttr - the Point3f containing the new vertex attribute
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if the index orvertexAttrNum is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if the size of the specifiedvertex attribute number is not 3.
since:
   Java 3D 1.4



setVertexAttr
public void setVertexAttr(int vertexAttrNum, int index, Point4f vertexAttr)(Code)
Sets the vertex attribute associated with the vertex at the specified index in the specified vertex attribute number for this object.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - destination vertex index in this geometry array
Parameters:
  vertexAttr - the Point4f containing the new vertex attribute
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if the index orvertexAttrNum is out of range.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if the size of the specifiedvertex attribute number is not 4.
since:
   Java 3D 1.4



setVertexAttrRefBuffer
public void setVertexAttrRefBuffer(int vertexAttrNum, J3DBuffer vertexAttrs)(Code)
Sets the vertex attribute buffer reference for the specified vertex attribute number to the specified buffer object. The buffer contains a java.nio.FloatBuffer object containing 1, 2, 3, or 4 values for each vertex (for a total of 1*n, 2*n, 3*n, or 4*n values, where n is the number of vertices). If the vertexAttr buffer reference is null and vertex attributes are enabled (that is, the vertexFormat includes VERTEX_ATTRIBUTES), the entire geometry array object is treated as if it were null--any Shape3D node that uses this geometry array will not be drawn.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  vertexAttrs - a J3DBuffer object to which a reference willbe set. The buffer contains an NIO buffer of 1*n,2*n, 3*n, or 4*n float values.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is not USE_NIO_BUFFER, or is INTERLEAVED.
exception:
  IllegalArgumentException - if the java.nio.Buffercontained in the specified J3DBuffer is not ajava.nio.FloatBuffer object.
exception:
  ArrayIndexOutOfBoundsException - if vertexAttrNum is out ofrange, or ifvertexAttrs.getBuffer().limit() < num_words * (initialVertexAttrIndex + validVertexCount),where num_words is the size of the specifiedvertexAttrNum (1, 2, 3, or 4).
exception:
  ArrayIndexOutOfBoundsException - if this GeometryArrayobject is a subclass of IndexedGeometryArray, and any elementin the range[initialIndexIndex, initialIndexIndex+validIndexCount-1]in the vertex attribute index array is greater than or equal to thenumber of vertices defined by the vertexAttrs object,vertexAttrs.getBuffer().limit() / num_words.
since:
   Java 3D 1.4



setVertexAttrRefFloat
public void setVertexAttrRefFloat(int vertexAttrNum, float[] vertexAttrs)(Code)
Sets the float vertex attribute array reference for the specified vertex attribute number to the specified array. The array contains 1, 2, 3, or 4 floating-point values for each vertex (for a total of 1*n, 2*n, 3*n, or 4*n values, where n is the number of vertices). If the vertexAttr array reference is null and vertex attributes are enabled (that is, the vertexFormat includes VERTEX_ATTRIBUTES), the entire geometry array object is treated as if it were null--any Shape3D node that uses this geometry array will not be drawn.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  vertexAttrs - an array of 1*n, 2*n,3*n, or 4*n values to which a reference will beset.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  IllegalStateException - if the data mode for this geometryarray object is not BY_REFERENCE,is USE_NIO_BUFFER, or is INTERLEAVED.
exception:
  ArrayIndexOutOfBoundsException - if vertexAttrNum isout of range, or ifvertexAttrs.length < num_words *(initialVertexAttrIndex + validVertexCount),where num_words is the size of the specifiedvertexAttrNum (1, 2, 3, or 4).
exception:
  ArrayIndexOutOfBoundsException - if this GeometryArrayobject is a subclass of IndexedGeometryArray, and any elementin the range[initialIndexIndex, initialIndexIndex+validIndexCount-1]in the vertex attribute index array is greater than or equal to thenumber of vertices defined by the vertexAttrs array,vertexAttrs.length / num_words.
since:
   Java 3D 1.4



setVertexAttrs
public void setVertexAttrs(int vertexAttrNum, int index, float[] vertexAttrs)(Code)
Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object. The entire source array is copied to this geometry array.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  vertexAttrs - source array of 1*n, 2*n, 3*n, or 4*n valuescontaining n new vertex attributes
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if the index orvertexAttrNum is out of range, or if the vertexAttr array istoo large.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
since:
   Java 3D 1.4



setVertexAttrs
public void setVertexAttrs(int vertexAttrNum, int index, Point2f[] vertexAttrs)(Code)
Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object. The entire source array is copied to this geometry array.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  vertexAttrs - source array of Point2f objects containing newvertex attributes
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if the index orvertexAttrNum is out of range, or if the vertexAttr array istoo large.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if the size of the specifiedvertex attribute number is not 2.
since:
   Java 3D 1.4



setVertexAttrs
public void setVertexAttrs(int vertexAttrNum, int index, Point3f[] vertexAttrs)(Code)
Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object. The entire source array is copied to this geometry array.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  vertexAttrs - source array of Point3f objects containing newvertex attributes
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if the index orvertexAttrNum is out of range, or if the vertexAttr array istoo large.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if the size of the specifiedvertex attribute number is not 3.
since:
   Java 3D 1.4



setVertexAttrs
public void setVertexAttrs(int vertexAttrNum, int index, Point4f[] vertexAttrs)(Code)
Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object. The entire source array is copied to this geometry array.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  vertexAttrs - source array of Point4f objects containing newvertex attributes
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if the index orvertexAttrNum is out of range, or if the vertexAttr array istoo large.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if the size of the specifiedvertex attribute number is not 4.
since:
   Java 3D 1.4



setVertexAttrs
public void setVertexAttrs(int vertexAttrNum, int index, float[] vertexAttrs, int start, int length)(Code)
Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and ending at index start+length.
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  vertexAttrs - source array of 1*n, 2*n, 3*n, or 4*n valuescontaining n new vertex attributes
Parameters:
  start - starting source vertex index in vertexAttrsarray.
Parameters:
  length - number of vertex attributes to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if any of index,(index+length), or vertexAttrNum are out of range, or ifvertexAttrs is too small.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
since:
   Java 3D 1.4



setVertexAttrs
public void setVertexAttrs(int vertexAttrNum, int index, Point2f[] vertexAttrs, int start, int length)(Code)
Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and ending at index start+length.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  vertexAttrs - source array of Point2f objects containing newvertex attributes
Parameters:
  start - starting source vertex index in vertexAttrsarray.
Parameters:
  length - number of vertex attributes to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if any of index,(index+length), or vertexAttrNum are out of range, or ifvertexAttrs is too small.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if the size of the specifiedvertex attribute number is not 2.
since:
   Java 3D 1.4



setVertexAttrs
public void setVertexAttrs(int vertexAttrNum, int index, Point3f[] vertexAttrs, int start, int length)(Code)
Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and ending at index start+length.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  vertexAttrs - source array of Point3f objects containing newvertex attributes
Parameters:
  start - starting source vertex index in vertexAttrsarray.
Parameters:
  length - number of vertex attributes to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if any of index,(index+length), or vertexAttrNum are out of range, or ifvertexAttrs is too small.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if the size of the specifiedvertex attribute number is not 3.
since:
   Java 3D 1.4



setVertexAttrs
public void setVertexAttrs(int vertexAttrNum, int index, Point4f[] vertexAttrs, int start, int length)(Code)
Sets the vertex attributes associated with the vertices starting at the specified index in the specified vertex attribute number for this object using data in vertexAttrs starting at index start and ending at index start+length.
Parameters:
  vertexAttrNum - vertex attribute number in this geometry array
Parameters:
  index - starting destination vertex index in this geometry array
Parameters:
  vertexAttrs - source array of Point4f objects containing newvertex attributes
Parameters:
  start - starting source vertex index in vertexAttrsarray.
Parameters:
  length - number of vertex attributes to be copied.
exception:
  CapabilityNotSetException - if the appropriate capability isnot set and this object is part of a live or compiled scene graph
exception:
  ArrayIndexOutOfBoundsException - if any of index,(index+length), or vertexAttrNum are out of range, or ifvertexAttrs is too small.
exception:
  IllegalStateException - if the data mode for this geometryarray object is BY_REFERENCE.
exception:
  IllegalStateException - if the size of the specifiedvertex attribute number is not 4.
since:
   Java 3D 1.4



updateData
public void updateData(GeometryUpdater updater)(Code)
Updates geometry array data that is accessed by reference. This method calls the updateData method of the specified GeometryUpdater object to synchronize updates to vertex data that is referenced by this GeometryArray object. Applications that wish to modify such data must perform all updates via this method.

This method may also be used to atomically set multiple references (for example, to coordinate and color arrays) or to atomically change multiple data values through the geometry data copying methods.
Parameters:
  updater - object whose updateData callback method will becalled to update the data referenced by this GeometryArray.
exception:
  CapabilityNotSetException - if the appropriate capabilityis not set, the vertex data mode is BY_REFERENCE, and thisobject is part of a live or compiled scene graph
since:
   Java 3D 1.2




Fields inherited from javax.media.j3d.Geometry
final public static int ALLOW_INTERSECT(Code)(Java Doc)


Fields inherited from javax.media.j3d.NodeComponent
boolean forceDuplicate(Code)(Java Doc)

Methods inherited from javax.media.j3d.NodeComponent
final void checkDuplicateNodeComponent(NodeComponent originalNodeComponent)(Code)(Java Doc)
public NodeComponent cloneNodeComponent()(Code)(Java Doc)
public NodeComponent cloneNodeComponent(boolean forceDuplicate)(Code)(Java Doc)
void createRetained()(Code)(Java Doc)
void duplicateAttributes(NodeComponent originalNode, boolean forceDuplicate)(Code)(Java Doc)
boolean duplicateChild()(Code)(Java Doc)
public void duplicateNodeComponent(NodeComponent originalNodeComponent)(Code)(Java Doc)
public void duplicateNodeComponent(NodeComponent originalNodeComponent, boolean forceDuplicate)(Code)(Java Doc)
public boolean getDuplicateOnCloneTree()(Code)(Java Doc)
public void setDuplicateOnCloneTree(boolean duplicate)(Code)(Java Doc)
void validateImageIllegalSharing(ImageComponent image)(Code)(Java Doc)

Fields inherited from javax.media.j3d.SceneGraphObject
Hashtable nodeHashtable(Code)(Java Doc)
SceneGraphObjectRetained retained(Code)(Java Doc)

Methods inherited from javax.media.j3d.SceneGraphObject
final boolean capabilityBitsEmpty()(Code)(Java Doc)
final void checkForLiveOrCompiled()(Code)(Java Doc)
final public void clearCapability(int bit)(Code)(Java Doc)
final public void clearCapabilityIsFrequent(int bit)(Code)(Java Doc)
final void clearLive()(Code)(Java Doc)
void createRetained()(Code)(Java Doc)
protected void duplicateSceneGraphObject(SceneGraphObject originalNode)(Code)(Java Doc)
final public boolean getCapability(int bit)(Code)(Java Doc)
final public boolean getCapabilityIsFrequent(int bit)(Code)(Java Doc)
public String getName()(Code)(Java Doc)
String getNamePrefix()(Code)(Java Doc)
NodeComponent getNodeComponent(NodeComponent originalNodeComponent, boolean forceDuplicate, Hashtable hashtable)(Code)(Java Doc)
public Object getUserData()(Code)(Java Doc)
final public boolean isCompiled()(Code)(Java Doc)
final public boolean isLive()(Code)(Java Doc)
final boolean isLiveOrCompiled()(Code)(Java Doc)
final public void setCapability(int bit)(Code)(Java Doc)
final public void setCapabilityIsFrequent(int bit)(Code)(Java Doc)
final void setCompiled()(Code)(Java Doc)
void setDefaultReadCapabilities(int[] bits)(Code)(Java Doc)
final void setLive()(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setUserData(Object userData)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void updateNodeReferences(NodeReferenceTable referenceTable)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.