|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.web3d.vrml.renderer.common.nodes.AbstractNode
org.web3d.vrml.renderer.common.nodes.BaseTextureNode
org.web3d.vrml.renderer.common.nodes.BaseTexture3DNode
public abstract class BaseTexture3DNode
Base implementation of a 3D texture object.
Performs the VRML field handling for REPEAT_S, REPEAT_T and REPEAT_R
The node is defined by the X3DTexture3DNode type, which is defined as:
X3DTexture3DNode : X3DTextureNode {
SFNode [in,out] metadata NULL [X3DMetadataObject]
SFBool [] repeatS FALSE
SFBool [] repeatT FALSE
SFBool [] repeatR FALSE
}
| Field Summary | |
|---|---|
protected static int |
FIELD_REPEATR
Index of the repeatR field |
protected static int |
FIELD_REPEATS
Index of the repeatS field |
protected static int |
FIELD_REPEATT
Index of the repeatT field |
protected static int |
LAST_3DTEXTURE_INDEX
Last valid index used in this class |
protected int |
textureDepth
The number of 2D image slices that the user has defined |
protected boolean |
vfRepeatR
field SFBool repeatR TRUE |
protected boolean |
vfRepeatS
field SFBool repeatS TRUE |
protected boolean |
vfRepeatT
field SFBool repeatT TRUE |
| Fields inherited from class org.web3d.vrml.renderer.common.nodes.BaseTextureNode |
|---|
listenerList |
| Fields inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode |
|---|
BAD_NODE_MSG, errorReporter, FIELD_METADATA, fieldLocalData, hasChanged, INIT_ONLY_WRITE_MSG, inSetup, isDEF, isStatic, LAST_NODE_INDEX, layerIds, METADATA_NODE_MSG, METADATA_PROTO_MSG, nodeName, pMetadata, refCounts, removedLayerIds, stateManager, vfMetadata, vrmlMajorVersion, vrmlMinorVersion |
| Constructor Summary | |
|---|---|
BaseTexture3DNode(java.lang.String name)
Default constructor for the node. |
|
| Method Summary | |
|---|---|
protected void |
copy(VRMLTexture3DNodeType node)
Set the fields of the grouping node that has the fields set based on the fields of the passed in node. |
int |
getDepth()
Get the depth of the texture. |
VRMLFieldData |
getFieldValue(int index)
Get the value of a field. |
boolean |
getRepeatR()
Get the value of field repeatR. |
boolean |
getRepeatS()
Get the value of field repeatS. |
boolean |
getRepeatT()
Get the value of field repeatT. |
int |
getTextureType()
Get the texture type of this texture. |
void |
setValue(int index,
boolean value)
Set the value of the field at the given index as an boolean. |
| Methods inherited from class org.web3d.vrml.renderer.common.nodes.BaseTextureNode |
|---|
addTextureListener, fireTextureImageChanged, fireTextureParamsChanged, getCacheString, removeTextureListener |
| Methods inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode |
|---|
addNodeListener, allEventsComplete, checkNodeType, checkSecondaryType, checkSecondaryType, clearRemovedLayerIds, fireFieldChanged, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, getSecondaryType, getUserData, getVRMLNodeName, hasFieldChanged, isDEF, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setErrorReporter, setFrameStateManager, setMetadataObject, setupFinished, setUserData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setVersion, updateRefCount, updateRefs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLTextureNodeType |
|---|
addTextureListener, getCacheString, removeTextureListener |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType |
|---|
addNodeListener, clearRemovedLayerIds, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount |
| Methods inherited from interface org.web3d.vrml.lang.VRMLNode |
|---|
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersion |
| Methods inherited from interface org.web3d.vrml.nodes.FrameStateListener |
|---|
allEventsComplete |
| Field Detail |
|---|
protected static final int FIELD_REPEATS
protected static final int FIELD_REPEATT
protected static final int FIELD_REPEATR
protected static final int LAST_3DTEXTURE_INDEX
protected boolean vfRepeatS
protected boolean vfRepeatT
protected boolean vfRepeatR
protected int textureDepth
| Constructor Detail |
|---|
public BaseTexture3DNode(java.lang.String name)
name - The name of the type of node| Method Detail |
|---|
protected void copy(VRMLTexture3DNodeType node)
node - The grouping node to copy info frompublic int getDepth()
getDepth in interface VRMLTexture3DNodeTypepublic int getTextureType()
getTextureType in interface VRMLTextureNodeTypepublic boolean getRepeatS()
true.
getRepeatS in interface VRMLTexture3DNodeTypepublic boolean getRepeatT()
true.
getRepeatT in interface VRMLTexture3DNodeTypepublic boolean getRepeatR()
true.
getRepeatR in interface VRMLTexture3DNodeType
public VRMLFieldData getFieldValue(int index)
throws InvalidFieldException
getFieldValue in interface VRMLNodeTypegetFieldValue in class AbstractNodeindex - The index of the field to change.
InvalidFieldException - The field index is not known
public void setValue(int index,
boolean value)
throws InvalidFieldException
setValue in interface VRMLNodeTypesetValue in class AbstractNodeindex - The index of destination field to setvalue - The new value to use for the node
InvalidFieldException - The field index is not know
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||