Package xj3d.filter.node
Class ImageTexture
java.lang.Object
xj3d.filter.node.BaseEncodable
xj3d.filter.node.BaseTexture2D
xj3d.filter.node.ImageTexture
- All Implemented Interfaces:
Encodable,IAppearanceChild,ITexture,ITexture2D,IUrl
Wrapper for the X3D ImageTexture node.
- Version:
- $Revision: 1.2 $
- Author:
- Rex Melton
-
Field Summary
FieldsModifier and TypeFieldDescriptionField valueintNumber of urls in the arrayString[]Field valueFields inherited from class xj3d.filter.node.BaseTexture2D
repeatS, repeatTFields 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 TypeMethodDescriptionvoidclear()Clear the node fields to their initial valuesclone(boolean full) Create and return a copy of this object.booleandeepEquals(Encodable enc) Compares this appearance to another and checks if all fields are the same and that all children fields are the same.voidencode()Push the node contents to the ContentHandler.voidSet the value of the named field.voidSet the value of the named field.Methods inherited from class xj3d.filter.node.BaseTexture2D
copy, getTextureProperties, setTexturePropertiesMethods inherited from class xj3d.filter.node.BaseEncodable
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
getDefName, getNodeName, getUseName, setContentHandler, setDefName, setFieldReader, setUseName
-
Field Details
-
description
Field value -
url
Field value -
num_url
public int num_urlNumber of urls in the array
-
-
Constructor Details
-
ImageTexture
public ImageTexture()Constructor -
ImageTexture
-
-
Method Details
-
clear
public void clear()Clear the node fields to their initial values- Specified by:
clearin interfaceEncodable- Overrides:
clearin classBaseTexture2D
-
encode
public void encode()Push the node contents to the ContentHandler.- Specified by:
encodein interfaceEncodable- Overrides:
encodein classBaseTexture2D
-
setValue
-
setValue
Set the value of the named field.- Specified by:
setValuein interfaceEncodable- Overrides:
setValuein classBaseTexture2D- 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.
-
deepEquals
Compares this appearance to another and checks if all fields are the same and that all children fields are the same.- Specified by:
deepEqualsin interfaceEncodable- Overrides:
deepEqualsin classBaseEncodable- Returns:
-