/** * Retrieves the current transparencyAttributes object. * @return the transparencyAttributes object * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public TransparencyAttributes getTransparencyAttributes() { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_TRANSPARENCY_ATTRIBUTES_READ)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance9")); return ((AppearanceRetained)this.retained).getTransparencyAttributes(); }
/** * Retrieves the current texture object. * @return the texture object * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public Texture getTexture() { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_TEXTURE_READ)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance3")); return ((AppearanceRetained)this.retained).getTexture(); }
/** * Retrieves the current material object. * @return the material object * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public Material getMaterial() { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_MATERIAL_READ)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance1")); return ((AppearanceRetained)this.retained).getMaterial(); }
/** * Retrieves the current textureAttributes object. * @return the textureAttributes object * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public TextureAttributes getTextureAttributes() { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_TEXTURE_ATTRIBUTES_READ)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance5")); return ((AppearanceRetained)this.retained).getTextureAttributes(); }
/** * Retrieves the current polygonAttributes object. * @return the polygonAttributes object * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public PolygonAttributes getPolygonAttributes() { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_POLYGON_ATTRIBUTES_READ)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance13")); return ((AppearanceRetained)this.retained).getPolygonAttributes(); }
/** * Retrieves the current coloringAttributes object. * @return the coloringAttributes object * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public ColoringAttributes getColoringAttributes() { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_COLORING_ATTRIBUTES_READ)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance7")); return ((AppearanceRetained)this.retained).getColoringAttributes(); }
/** * Retrieves the current lineAttributes object. * @return the lineAttributes object * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public LineAttributes getLineAttributes() { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_LINE_ATTRIBUTES_READ)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance15")); return ((AppearanceRetained)this.retained).getLineAttributes(); }
/** * Retrieves the current texCoordGeneration object. * @return the texCoordGeneration object * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public TexCoordGeneration getTexCoordGeneration() { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_TEXGEN_READ)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance19")); return ((AppearanceRetained)this.retained).getTexCoordGeneration(); }
/** * Retrieves the current renderingAttributes object. * @return the renderingAttributes object * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public RenderingAttributes getRenderingAttributes() { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_RENDERING_ATTRIBUTES_READ)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance11")); return ((AppearanceRetained)this.retained).getRenderingAttributes(); }
/** * Retrieves the current pointAttributes object. * @return the pointAttributes object * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public PointAttributes getPointAttributes() { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_POINT_ATTRIBUTES_READ)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance17")); return ((AppearanceRetained)this.retained).getPointAttributes(); }
/** * Sets the coloringAttributes object to the specified object. * Setting it to null will result in default attribute usage. * @param coloringAttributes object that specifies the desired * coloringAttributes parameters * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public void setColoringAttributes(ColoringAttributes coloringAttributes) { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_COLORING_ATTRIBUTES_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance6")); ((AppearanceRetained)this.retained).setColoringAttributes(coloringAttributes); }
/** * Sets the material object to the specified object. * Setting it to null disables lighting. * @param material object that specifies the desired material * properties * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public void setMaterial(Material material) { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_MATERIAL_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance0")); ((AppearanceRetained)this.retained).setMaterial(material); }
/** * Sets the transparencyAttributes object to the specified object. * Setting it to null will result in default attribute usage. * @param transparencyAttributes object that specifies the desired * transparencyAttributes parameters * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public void setTransparencyAttributes(TransparencyAttributes transparencyAttributes) { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_TRANSPARENCY_ATTRIBUTES_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance8")); ((AppearanceRetained)this.retained).setTransparencyAttributes(transparencyAttributes); }
/** * Sets the renderingAttributes object to the specified object. * Setting it to null will result in default attribute usage. * @param renderingAttributes object that specifies the desired * renderingAttributes parameters * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public void setRenderingAttributes(RenderingAttributes renderingAttributes) { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_RENDERING_ATTRIBUTES_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance10")); ((AppearanceRetained)this.retained).setRenderingAttributes(renderingAttributes); }
/** * Sets the lineAttributes object to the specified object. * Setting it to null will result in default attribute usage. * @param lineAttributes object that specifies the desired * lineAttributes parameters * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public void setLineAttributes(LineAttributes lineAttributes) { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_LINE_ATTRIBUTES_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance14")); ((AppearanceRetained)this.retained).setLineAttributes(lineAttributes); }
/** * Sets the polygonAttributes object to the specified object. * Setting it to null will result in default attribute usage. * @param polygonAttributes object that specifies the desired * polygonAttributes parameters * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public void setPolygonAttributes(PolygonAttributes polygonAttributes) { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_POLYGON_ATTRIBUTES_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance12")); ((AppearanceRetained)this.retained).setPolygonAttributes(polygonAttributes); }
/** * Sets the pointAttributes object to the specified object. * Setting it to null will result in default attribute usage. * @param pointAttributes object that specifies the desired * pointAttributes parameters * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public void setPointAttributes(PointAttributes pointAttributes) { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_POINT_ATTRIBUTES_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance16")); ((AppearanceRetained)this.retained).setPointAttributes(pointAttributes); }
/** * Retrieves the array of texture unit state objects from this * Appearance object. A shallow copy of the array of references to * the TextureUnitState objects is returned. * * @return the array of texture unit state objects * * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph * * @since Java 3D 1.2 */ public TextureUnitState[] getTextureUnitState() { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_TEXTURE_UNIT_STATE_READ)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance21")); return ((AppearanceRetained)this.retained).getTextureUnitState(); }
/** * Retrieves the length of the texture unit state array from * this appearance object. The length of this array specifies the * maximum number of texture units that will be used by this * appearance object. If the array is null, a count of 0 is * returned. * * @return the length of the texture unit state array * * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph * * @since Java 3D 1.2 */ public int getTextureUnitCount() { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_TEXTURE_UNIT_STATE_READ)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance21")); return ((AppearanceRetained)this.retained).getTextureUnitCount(); }
/** * Retrieves the texture unit state object at the specified * index within the texture unit state array. The index must be * within the range <code>[0, stateArray.length-1]</code>. * * @param index the array index of the object to be retrieved * * @return the texture unit state object at the specified index * * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph * * @since Java 3D 1.2 */ public TextureUnitState getTextureUnitState(int index) { if (isLiveOrCompiled()) if (!this.getCapability(ALLOW_TEXTURE_UNIT_STATE_READ)) throw new CapabilityNotSetException(J3dI18N.getString("Appearance21")); return ((AppearanceRetained)this.retained).getTextureUnitState(index); }