La classe Appearance

Horizontale.gif (2348 octets)

Classe de base pour tous les objets primitives graphiques.

Constructeur

Appearance(): Crée un objet Appearance par défaut.

 

Valeur rendue

Nom et paramètres

ColoringAttributes getColoringAttributes(): Retrieves the current coloringAttributes object.
LineAttributes getLineAttributes(): Retrieves the current lineAttributes object.
Material getMaterial(): Retrieves the current material object.
PointAttributes getPointAttributes(): Retrieves the current pointAttributes object.
PolygonAttributes getPolygonAttributes(): Retrieves the current polygonAttributes object.
RenderingAttributes getRenderingAttributes(): Retrieves the current renderingAttributes object.
TexCoordGeneration getTexCoordGeneration(): Retrieves the current texCoordGeneration object.
Texture getTexture(): Retrieves the current texture object.
TextureAttributes getTextureAttributes(): Retrieves the current textureAttributes object.
int getTextureUnitCount(): Retrieves the length of the texture unit state array from this appearance object.
TextureUnitState[] getTextureUnitState(): Retrieves the array of texture unit state objects from this Appearance object.
TextureUnitState getTextureUnitState(int index): Retrieves the texture unit state object at the specified index within the texture unit state array.
TransparencyAttributes getTransparencyAttributes(): Retrieves the current transparencyAttributes object.
void setColoringAttributes(ColoringAttributes coloringAttributes): Sets the coloringAttributes object to the specified object.
void setLineAttributes(LineAttributes lineAttributes): Sets the lineAttributes object to the specified object.
void setMaterial(Material material): Sets the material object to the specified object.
void setPointAttributes(PointAttributes pointAttributes): Sets the pointAttributes object to the specified object.
void setPolygonAttributes(PolygonAttributes polygonAttributes): Sets the polygonAttributes object to the specified object.
void setRenderingAttributes(RenderingAttributes renderingAttributes): Sets the renderingAttributes object to the specified object.
void setTexCoordGeneration(TexCoordGeneration texCoordGeneration): Sets the texCoordGeneration object to the specified object.
void setTexture(Texture texture): Sets the texture object to the specified object.
void setTextureAttributes(TextureAttributes textureAttributes): Sets the textureAttributes object to the specified object.
void setTextureUnitState(int index, TextureUnitState state): Sets the texture unit state object at the specified index within the texture unit state array to the specified object.
void setTextureUnitState(TextureUnitState[] stateArray): Sets the texture unit state array for this appearance object to the specified array.
void setTransparencyAttributes(TransparencyAttributes transparencyAttributes): Sets the transparencyAttributes object to the specified object.

 

Valeur

Champ

static int ALLOW_COLORING_ATTRIBUTES_READ: Specifies that this Appearance object allows reading its coloringAttributes component information.
static int ALLOW_COLORING_ATTRIBUTES_WRITE: Specifies that this Appearance object allows writing its coloringAttributes component information.
static int ALLOW_LINE_ATTRIBUTES_READ: Specifies that this Appearance object allows reading its line component information.
static int ALLOW_LINE_ATTRIBUTES_WRITE: Specifies that this Appearance object allows writing its line component information.
static int ALLOW_MATERIAL_READ: Specifies that this Appearance object allows reading its material component information.
static int ALLOW_MATERIAL_WRITE: Specifies that this Appearance object allows writing its material component information.
static int ALLOW_POINT_ATTRIBUTES_READ: Specifies that this Appearance object allows reading its point component information.
static int ALLOW_POINT_ATTRIBUTES_WRITE: Specifies that this Appearance object allows writing its point component information.
static int ALLOW_POLYGON_ATTRIBUTES_READ: Specifies that this Appearance object allows reading its polygon component information.
static int ALLOW_POLYGON_ATTRIBUTES_WRITE: Specifies that this Appearance object allows writing its polygon component information.
static int ALLOW_RENDERING_ATTRIBUTES_READ: Specifies that this Appearance object allows reading its rendering/rasterization component information.
static int ALLOW_RENDERING_ATTRIBUTES_WRITE: Specifies that this Appearance object allows writing its rendering/rasterization component information.
static int ALLOW_TEXGEN_READ: Specifies that this Appearance object allows reading its texture coordinate generation component information.
static int ALLOW_TEXGEN_WRITE: Specifies that this Appearance object allows writing its texture coordinate generation component information.
static int ALLOW_TEXTURE_ATTRIBUTES_READ: Specifies that this Appearance object allows reading its textureAttributes component information.
static int ALLOW_TEXTURE_ATTRIBUTES_WRITE: Specifies that this Appearance object allows writing its textureAttributes component information.
static int ALLOW_TEXTURE_READ: Specifies that this Appearance object allows reading its texture component information.
static int ALLOW_TEXTURE_UNIT_STATE_READ: Specifies that this Appearance object allows reading its texture unit state component information.
static int ALLOW_TEXTURE_UNIT_STATE_WRITE: Specifies that this Appearance object allows writing its texture unit state component information.
static int ALLOW_TEXTURE_WRITE: Specifies that this Appearance object allows writing its texture component information.
static int ALLOW_TRANSPARENCY_ATTRIBUTES_READ: Specifies that this Appearance object allows reading its transparency component information.
static int ALLOW_TRANSPARENCY_ATTRIBUTES_WRITE: Specifies that this Appearance object allows writing its transparency component information.

Retour