org.xith3d.scenegraph
Class Texture3D
java.lang.Object
org.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.NodeComponent
org.xith3d.scenegraph.Texture
org.xith3d.scenegraph.Texture3D
- All Implemented Interfaces:
- org.jagatoo.datatypes.Enableable, org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.jagatoo.loaders.textures.AbstractTexture
public class Texture3D
- extends Texture
Texture3D defines attributes that apply to .
|
Constructor Summary |
Texture3D(org.jagatoo.opengl.enums.TextureFormat format)
Constructs a new Texture3D object. |
Texture3D(org.jagatoo.opengl.enums.TextureFormat format,
int boundaryWidth)
Constructs a new Texture3D object. |
| Methods inherited from class org.xith3d.scenegraph.Texture |
addImage, enableAutoFreeLocalData, finalize, freeOpenGLResources, getBoundaryColor, getBoundaryColor, getBoundaryModeS, getBoundaryModeT, getBoundaryWidth, getCacheKey, getDefaultFilter, getFilter, getFormat, getHeight, getImage, getImagesCount, getMipMapMode, getOpenGLReferences, getOriginalHeight, getOriginalSize, getOriginalWidth, getResourceName, getSize, getStateId, getType, getWidth, hasSizeChanged, isDirty, isEnabled, isMarkedAsLocalDataToBeFreed, removeFromCache, setBoundaryColor, setBoundaryColor, setBoundaryModeS, setBoundaryModes, setBoundaryModeT, setBoundaryWidth, setCacheKey, setDefaultFilter, setEnabled, setFilter, setImage, setImage, setResourceName, setSizeChanged, toString |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jagatoo.loaders.textures.AbstractTexture |
getName, setName |
Texture3D
public Texture3D(org.jagatoo.opengl.enums.TextureFormat format,
int boundaryWidth)
- Constructs a new Texture3D object.
- Parameters:
format - boundaryWidth -
Texture3D
public Texture3D(org.jagatoo.opengl.enums.TextureFormat format)
- Constructs a new Texture3D object.
- Parameters:
format -
getDepth
public final int getDepth()
- Returns:
- this Texture3D's depth.
setBoundaryModeR
public void setBoundaryModeR(org.jagatoo.opengl.enums.TextureBoundaryMode mode)
- Sets the boundary mode R.
getBoundaryModeR
public final org.jagatoo.opengl.enums.TextureBoundaryMode getBoundaryModeR()
- Gets the boundary mode R.
checkImageType
protected void checkImageType(TextureImage image)
- This method is called by
Texture.setImage(int, TextureImage).
It checks the added image's type and throws an exception,
if the type is not accepted.
- Specified by:
checkImageType in class Texture
duplicateNodeComponent
protected void duplicateNodeComponent(NodeComponent original,
boolean forceDuplicate)
-
- Overrides:
duplicateNodeComponent in class Texture
cloneNodeComponent
public Texture3D cloneNodeComponent(boolean forceDuplicate)
-
- Specified by:
cloneNodeComponent in class NodeComponent