Aviatrix3D
2.0

org.j3d.aviatrix3d.rendering
Interface AppearanceRenderable

All Superinterfaces:
java.lang.Comparable, ObjectRenderable, Renderable
All Known Implementing Classes:
Appearance

public interface AppearanceRenderable
extends ObjectRenderable

A renderable object that visual part of a ShapeRenderable that provides the visual attributes to render the geometry with.

Implementation Nodes

When deciding whether an object has transparency defined, the following factors should be considered:

Version:
$Revision: 2.3 $
Author:
Justin Couch

Method Summary
 AppearanceAttributeRenderable getAttributeRenderable(int attrib)
          Fetch the sub-renderable for the given type.
 ObjectRenderable getMaterialRenderable()
          Fetch the renderable that corresponds to material properties.
 ShaderRenderable getShaderRenderable()
          Fetch the renderable that corresponds to the set programmable shader.
 TextureRenderable getTextureRenderable(int unitNumber)
          Request the renderable for the given texture unit number.
 boolean hasTransparency()
          Ask the appearance if it has any transparency values.
 int numTextureRenderables()
          Request the number of texture renderables that are available to process in this node.
 
Methods inherited from interface org.j3d.aviatrix3d.rendering.ObjectRenderable
postRender, render
 
Methods inherited from interface org.j3d.aviatrix3d.rendering.Renderable
equals
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

hasTransparency

boolean hasTransparency()
Ask the appearance if it has any transparency values. The implementation should determine this from it's internal set of state, such as looking at material properties, texture formats etc.

Returns:
true if any form of non-opaque rendering is defined

getAttributeRenderable

AppearanceAttributeRenderable getAttributeRenderable(int attrib)
Fetch the sub-renderable for the given type. This can then be cast up to the appropriate extended Renderable type.

Parameters:
attrib - The attribute type identifier from AppearanceAttributeRenderable
Returns:
A renderable for that attribute if one is set, or null

numTextureRenderables

int numTextureRenderables()
Request the number of texture renderables that are available to process in this node. OpenGL allows a maximum of 32 textures to be defined.

Returns:
A number between 0 and 32

getTextureRenderable

TextureRenderable getTextureRenderable(int unitNumber)
Request the renderable for the given texture unit number. If there is no renderable for that number, return null.

Parameters:
unitNumber - The number of the texture unit to fetch
Returns:
The matching texture unit renderable or null if not available

getShaderRenderable

ShaderRenderable getShaderRenderable()
Fetch the renderable that corresponds to the set programmable shader. If no shader is set, return null.

Returns:
The current shader renderable or null

getMaterialRenderable

ObjectRenderable getMaterialRenderable()
Fetch the renderable that corresponds to material properties. If none is set or valid for this visual appearance, return null

Returns:
The current shader renderable or null

Aviatrix3D
2.0

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2008 j3d.org