/** * Retrieves the vertexFormat of this GeometryArray * @return format of vertices in this GeometryArray * @exception CapabilityNotSetException if the appropriate capability is * not set and this object is part of a live or compiled scene graph */ public int getVertexFormat() { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_FORMAT_READ)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray2")); return ((GeometryArrayRetained)this.retained).getVertexFormat(); }
/** * Retrieves the number of vertices in this GeometryArray * @return number of vertices in this GeometryArray * @exception CapabilityNotSetException if the appropriate capability is * not set and this object is part of a live or compiled scene graph */ public int getVertexCount() { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_COUNT_READ)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray1")); return ((GeometryArrayRetained)this.retained).getVertexCount(); }
/** * @deprecated As of Java 3D version 1.2, replaced by * <code>setTextureCoordinates(int texCoordSet, TexCoord2f texCoords[])</code> */ public void setTextureCoordinates(int index, Point2f texCoords[]) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_TEXCOORD_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray42")); ((GeometryArrayRetained)this.retained).setTextureCoordinates( 0, index, texCoords, 0, texCoords.length); }
/** * @deprecated As of Java 3D version 1.2, replaced by * <code>setTextureCoordinates(int texCoordSet, TexCoord3f texCoords[], ...)</code> */ public void setTextureCoordinates(int index, Point3f texCoords[], int start, int length) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_TEXCOORD_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray42")); ((GeometryArrayRetained)this.retained).setTextureCoordinates( 0, index, texCoords, start, length); }
/** * @deprecated As of Java 3D version 1.2, replaced by * <code>getTextureCoordinates(int texCoordSet, TexCoord2f texCoords[])</code> */ public void getTextureCoordinates(int index, Point2f texCoords[]) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_TEXCOORD_READ)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray75")); int format = ((GeometryArrayRetained)this.retained).vertexFormat; if ((format & BY_REFERENCE) != 0) throw new IllegalStateException(J3dI18N.getString("GeometryArray82")); if ((format & TEXTURE_COORDINATE ) == 0) throw new ArrayIndexOutOfBoundsException(J3dI18N.getString("GeometryArray79")); ((GeometryArrayRetained)this.retained).getTextureCoordinates( 0, index, texCoords); }
/** * @deprecated As of Java 3D version 1.2, replaced by * <code>setTextureCoordinates(int texCoordSet, TexCoord3f texCoords[])</code> */ public void setTextureCoordinates(int index, Point3f texCoords[]) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_TEXCOORD_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray42")); ((GeometryArrayRetained)this.retained).setTextureCoordinates( 0, index, texCoords, 0, texCoords.length); }
/** * @deprecated As of Java 3D version 1.2, replaced by * <code>setTextureCoordinates(int texCoordSet, TexCoord2f texCoords[], ...)</code> */ public void setTextureCoordinates(int index, Point2f texCoords[], int start, int length) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_TEXCOORD_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray42")); ((GeometryArrayRetained)this.retained).setTextureCoordinates( 0, index, texCoords, start, length); }
/** * @deprecated As of Java 3D version 1.2, replaced by * <code>getTextureCoordinates(int texCoordSet, TexCoord3f texCoords[])</code> */ public void getTextureCoordinates(int index, Point3f texCoords[]) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_TEXCOORD_READ)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray75")); int format = ((GeometryArrayRetained)this.retained).vertexFormat; if ((format & BY_REFERENCE) != 0) throw new IllegalStateException(J3dI18N.getString("GeometryArray82")); if ((format & TEXTURE_COORDINATE ) == 0) throw new ArrayIndexOutOfBoundsException(J3dI18N.getString("GeometryArray79")); ((GeometryArrayRetained)this.retained).getTextureCoordinates( 0, index, texCoords); }
/** * @deprecated As of Java 3D version 1.3, use geometry by-copy * for Point3d arrays * * @since Java 3D 1.2 */ public void setCoordRef3d(Point3d[] coords) { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_REF_DATA_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray86")); int format = ((GeometryArrayRetained)this.retained).vertexFormat; if ((format & BY_REFERENCE) == 0) throw new IllegalStateException(J3dI18N.getString("GeometryArray83")); if ((format & USE_NIO_BUFFER) != 0) throw new IllegalStateException(J3dI18N.getString("GeometryArray119")); if ((format & INTERLEAVED) != 0) throw new IllegalStateException(J3dI18N.getString("GeometryArray84")); ((GeometryArrayRetained)this.retained).setCoordRef3d(coords); }
/** * @deprecated As of Java 3D version 1.3, use geometry by-copy * for Point3f arrays * * @since Java 3D 1.2 */ public void setCoordRef3f(Point3f[] coords) { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_REF_DATA_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray86")); int format = ((GeometryArrayRetained)this.retained).vertexFormat; if ((format & BY_REFERENCE) == 0) throw new IllegalStateException(J3dI18N.getString("GeometryArray83")); if ((format & USE_NIO_BUFFER) != 0) throw new IllegalStateException(J3dI18N.getString("GeometryArray119")); if ((format & INTERLEAVED) != 0) throw new IllegalStateException(J3dI18N.getString("GeometryArray84")); ((GeometryArrayRetained)this.retained).setCoordRef3f(coords); }
/** * Sets the coordinate associated with the vertex at * the specified index for this object. * @param index destination vertex index in this geometry array * @param coordinate source array of 3 values containing the new coordinate * @exception CapabilityNotSetException if the appropriate capability is * not set and this object is part of a live or compiled scene graph * @exception IllegalStateException if the data mode for this geometry * array object is <code>BY_REFERENCE</code>. */ public void setCoordinate(int index, float coordinate[]) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_COORDINATE_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray3")); int format = ((GeometryArrayRetained)this.retained).vertexFormat; if ((format & BY_REFERENCE) != 0) throw new IllegalStateException(J3dI18N.getString("GeometryArray82")); ((GeometryArrayRetained)this.retained).setCoordinate(index, coordinate); }
/** * Gets the coordinate associated with the vertex at * the specified index for this object. * @param index source vertex index in this geometry array * @param coordinate a vector that will receive the coordinate * @exception CapabilityNotSetException if the appropriate capability is * not set and this object is part of a live or compiled scene graph * @exception IllegalStateException if the data mode for this geometry * array object is <code>BY_REFERENCE</code>. */ public void getCoordinate(int index, Point3d coordinate) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_COORDINATE_READ)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray48")); int format = ((GeometryArrayRetained)this.retained).vertexFormat; if ((format & BY_REFERENCE) != 0) throw new IllegalStateException(J3dI18N.getString("GeometryArray82")); ((GeometryArrayRetained)this.retained).getCoordinate(index, coordinate); }
/** * Sets the coordinate associated with the vertex at * the specified index. * @param index destination vertex index in this geometry array * @param coordinate source array of 3 values containing the new coordinate * @exception CapabilityNotSetException if the appropriate capability is * not set and this object is part of a live or compiled scene graph * @exception IllegalStateException if the data mode for this geometry * array object is <code>BY_REFERENCE</code>. */ public void setCoordinate(int index, double coordinate[]) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_COORDINATE_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray3")); int format = ((GeometryArrayRetained)this.retained).vertexFormat; if ((format & BY_REFERENCE) != 0) throw new IllegalStateException(J3dI18N.getString("GeometryArray82")); ((GeometryArrayRetained)this.retained).setCoordinate(index, coordinate); }
/** * Sets the coordinate associated with the vertex at * the specified index for this object. * @param index destination vertex index in this geometry array * @param coordinate a point containing the new coordinate * @exception CapabilityNotSetException if the appropriate capability is * not set and this object is part of a live or compiled scene graph * @exception IllegalStateException if the data mode for this geometry * array object is <code>BY_REFERENCE</code>. */ public void setCoordinate(int index, Point3d coordinate) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_COORDINATE_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray3")); int format = ((GeometryArrayRetained)this.retained).vertexFormat; if ((format & BY_REFERENCE) != 0) throw new IllegalStateException(J3dI18N.getString("GeometryArray82")); ((GeometryArrayRetained)this.retained).setCoordinate(index, coordinate); }
/** * Gets the coordinate associated with the vertex at * the specified index for this object. * @param index source vertex index in this geometry array * @param coordinate a vector that will receive the coordinate * @exception CapabilityNotSetException if the appropriate capability is * not set and this object is part of a live or compiled scene graph * @exception IllegalStateException if the data mode for this geometry * array object is <code>BY_REFERENCE</code>. */ public void getCoordinate(int index, Point3f coordinate) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_COORDINATE_READ)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray48")); int format = ((GeometryArrayRetained)this.retained).vertexFormat; if ((format & BY_REFERENCE) != 0) throw new IllegalStateException(J3dI18N.getString("GeometryArray82")); ((GeometryArrayRetained)this.retained).getCoordinate(index, coordinate); }
/** * 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. * @return the current valid vertex count * @exception CapabilityNotSetException if the appropriate capability is * not set and this object is part of a live or compiled scene graph * * @since Java 3D 1.2 */ public int getValidVertexCount() { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_COUNT_READ)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray89")); return ((GeometryArrayRetained)this.retained).getValidVertexCount(); }
/** * Gets the initial vertex index for this GeometryArray object. * This attribute is only used when the data mode for this * geometry array object is <i>not</i> <code>BY_REFERENCE</code> * or when the data mode is <code>INTERLEAVED</code>. * @return the current initial vertex index for this GeometryArray object. * @exception CapabilityNotSetException if the appropriate capability is * not set and this object is part of a live or compiled scene graph * * @since Java 3D 1.2 */ public int getInitialVertexIndex() { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_COUNT_READ)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray91")); return ((GeometryArrayRetained)this.retained).getInitialVertexIndex(); }
/** * Gets the initial color index for this GeometryArray object. * This attribute is only used when the data mode for this * geometry array object is <code>BY_REFERENCE</code> * and is <i>not</i> </code>INTERLEAVED</code>. * @return the current initial color index for this * GeometryArray object. * @exception CapabilityNotSetException if the appropriate capability is * not set and this object is part of a live or compiled scene graph * * @since Java 3D 1.2 */ public int getInitialColorIndex() { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_COUNT_READ)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray91")); return ((GeometryArrayRetained)this.retained).getInitialColorIndex(); }
/** * Gets the initial coordinate index for this GeometryArray object. * This attribute is only used when the data mode for this * geometry array object is <code>BY_REFERENCE</code> * and is <i>not</i> </code>INTERLEAVED</code>. * @return the current initial coordinate index for this * GeometryArray object. * @exception CapabilityNotSetException if the appropriate capability is * not set and this object is part of a live or compiled scene graph * * @since Java 3D 1.2 */ public int getInitialCoordIndex() { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_COUNT_READ)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray91")); return ((GeometryArrayRetained)this.retained).getInitialCoordIndex(); }
/** * Gets the initial normal index for this GeometryArray object. * This attribute is only used when the data mode for this * geometry array object is <code>BY_REFERENCE</code> * and is <i>not</i> </code>INTERLEAVED</code>. * @return the current initial normal index for this * GeometryArray object. * @exception CapabilityNotSetException if the appropriate capability is * not set and this object is part of a live or compiled scene graph * * @since Java 3D 1.2 */ public int getInitialNormalIndex() { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_COUNT_READ)) throw new CapabilityNotSetException(J3dI18N.getString("GeometryArray91")); return ((GeometryArrayRetained)this.retained).getInitialNormalIndex(); }