Package xj3d.filter.node
Class MultiTexture
java.lang.Object
xj3d.filter.node.BaseEncodable
xj3d.filter.node.MultiTexture
- All Implemented Interfaces:
Encodable,IAppearanceChild,ITexture
Wrapper for the X3D MultiTexture node.
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatField valuefloat[]Field valueString[]Field valueString[]Field valueintNumber of functions in the arrayintNumber of modes in the arrayintNumber of sources in the arrayString[]Field valueFields inherited from class xj3d.filter.node.BaseEncodable
bch, defName, fieldReader, handler, HANDLER_BINARY, HANDLER_NULL, HANDLER_STRING, handlerType, nodeName, sch, useName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTexture(Encodable enc) Add a Texture to this node.voidaddTexture(Encodable[] enc) Add Textures to this node.voidclear()Clear the node fields to their initial valuesclone(boolean full) Create and return a copy of this object.voidencode()Push the node contents to the ContentHandler.Return the texture of this node.voidsetTexture(Encodable[] enc) Clear and set the Textures of this node.voidSet the value of the named field.voidSet the value of the named field.Methods inherited from class xj3d.filter.node.BaseEncodable
copy, deepEquals, getDefName, getMetadata, getNodeName, getUseName, setContentHandler, setDefName, setFieldReader, setMetadata, setUseNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface xj3d.filter.node.Encodable
deepEquals, getDefName, getNodeName, getUseName, setContentHandler, setDefName, setFieldReader, setUseName
-
Field Details
-
alpha
public float alphaField value -
color
public float[] colorField value -
function
Field value -
num_function
public int num_functionNumber of functions in the array -
mode
Field value -
num_mode
public int num_modeNumber of modes in the array -
source
Field value -
num_source
public int num_sourceNumber of sources in the array
-
-
Constructor Details
-
MultiTexture
public MultiTexture()Constructor -
MultiTexture
-
-
Method Details
-
clear
public void clear()Clear the node fields to their initial values- Specified by:
clearin interfaceEncodable- Overrides:
clearin classBaseEncodable
-
encode
public void encode()Push the node contents to the ContentHandler.- Specified by:
encodein interfaceEncodable- Overrides:
encodein classBaseEncodable
-
setValue
-
setValue
Set the value of the named field.- Specified by:
setValuein interfaceEncodable- Overrides:
setValuein classBaseEncodable- Parameters:
name- The name of the field to set.value- The value of the field.len- The number of values in the array.
-
clone
Create and return a copy of this object.- Specified by:
clonein interfaceEncodable- Overrides:
clonein classBaseEncodable- Parameters:
full- true if the clone should contain a copy of the complete contents of this node and it's children, false returns a new instance of this node type.- Returns:
- a copy of this.
-
setTexture
Clear and set the Textures of this node.- Parameters:
enc- The Texture nodes to set. A value of null just performs a clear.
-
getTexture
Return the texture of this node.- Returns:
- The Texture nodes of this node.
-
addTexture
Add Textures to this node.- Parameters:
enc- The Texture nodes to add to this node.
-
addTexture
Add a Texture to this node.- Parameters:
enc- A Texture node to add to this node.
-