Class dnx.lr.node.AppearanceNode
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.lr.node.AppearanceNode

java.lang.Object
   |
   +----dnx.util.DNXObject
           |
           +----dnx.lr.Node
                   |
                   +----dnx.lr.SubsidiaryNode
                           |
                           +----dnx.lr.node.AppearanceNode

public class AppearanceNode
extends SubsidiaryNode
 Appearance {
    exposedField SFNode       material        NULL
    exposedField SFNode       texture         NULL
    exposedField SFNode       textureTransform NULL
 }

The Appearance node specifies the visual properties of geometry by defining the material and texture nodes. The value for each of the fields in this node can be NULL. However, if the field is non-NULL, it must contain one node of the appropriate type.

The material field, if specified, must contain a Material node. If the material field is NULL or unspecified, lighting is off (all lights are ignored during rendering of the object that references this Appearance) and the unlit object color is (0, 0, 0) - see "Concepts - Lighting Model" for details of the VRML lighting model.

The texture field, if specified, must contain one of the various types of texture nodes (ImageTexture, MovieTexture, or PixelTexture). If the texture node is NULL or unspecified, the object that references this Appearance is not textured.

The textureTransform field, if specified, must contain a TextureTransform node. If the texture field is NULL or unspecified, or if the textureTransform is NULL or unspecified, the textureTransform field has no effect.


Variable Index

 o material
 o texture
 o textureTransform

Constructor Index

 o AppearanceNode()

Method Index

 o createNodeDefinition(NodeDefinition)
Create the node definition.
 o getMaterial()
 o getMaterialNode()
 o getTexture(Graphics3DDevice)
 o getTextureNode()
 o getTextureTransform()
 o getTextureTransformNode()
 o handleFieldChange(Field)
Handle a field change.
 o initFields()
Initialize field values.

Variables

 o material
  public SFNode material
 o texture
  public SFNode texture
 o textureTransform
  public SFNode textureTransform

Constructors

 o AppearanceNode
  public AppearanceNode()

Methods

 o createNodeDefinition
  protected void createNodeDefinition(NodeDefinition def)
Create the node definition.
Overrides:
createNodeDefinition in class Node
 o initFields
  protected void initFields()
Initialize field values.
Overrides:
initFields in class Node
 o getMaterial
  public Material getMaterial()
 o getMaterialNode
  public MaterialNode getMaterialNode()
 o getTexture
  public Texture getTexture(Graphics3DDevice device)
 o getTextureNode
  public TextureNode getTextureNode()
 o getTextureTransform
  public Matrix4 getTextureTransform()
 o getTextureTransformNode
  public TextureTransformNode getTextureTransformNode()
 o handleFieldChange
  protected void handleFieldChange(Field f)
Handle a field change.
Overrides:
handleFieldChange in class Node

All Packages  Class Hierarchy  This Package  Previous  Next  Index