Java Doc for Texture3D.java in  » 6.0-JDK-Modules » java-3d » javax » media » j3d » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » java 3d » javax.media.j3d 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.media.j3d.SceneGraphObject
      javax.media.j3d.NodeComponent
         javax.media.j3d.Texture
            javax.media.j3d.Texture3D

Texture3D
public class Texture3D extends Texture (Code)
Texture3D is a subclass of Texture class. It extends Texture class by adding a third coordinate, constructor and a mutator method for setting a 3D texture image. If 3D texture mapping is not supported on a particular Canvas3D, 3D texture mapping is ignored for that canvas.

Note that as of Java 3D 1.5, the texture width, height, and depth are no longer required to be an exact power of two. However, not all graphics devices supports non-power-of-two textures. If non-power-of-two texture mapping is unsupported on a particular Canvas3D, textures with a width, height, or depth that are not an exact power of two are ignored for that canvas.
See Also:   Canvas3D.queryProperties




Constructor Summary
public  Texture3D()
     Constructs a Texture3D object with default parameters.
public  Texture3D(int mipmapMode, int format, int width, int height, int depth)
     Constructs an empty Texture3D object with specified mipmapMode format, width, height, and depth.
public  Texture3D(int mipmapMode, int format, int width, int height, int depth, int boundaryWidth)
     Constructs an empty Texture3D object with specified mipmapMode format, width, height, depth, and boundaryWidth.

Method Summary
public  NodeComponentcloneNodeComponent()
    
 voidcreateRetained()
     Creates a retained mode Texture3DRetained object that this Texture3D component object will point to.
 voidduplicateAttributes(NodeComponent originalNodeComponent, boolean forceDuplicate)
     Copies all node information from originalNodeComponent into the current node.
public  voidduplicateNodeComponent(NodeComponent originalNodeComponent)
     NOTE: Applications should not call this method directly.
public  intgetBoundaryModeR()
     Retrieves the boundary mode for the R coordinate.
public  intgetDepth()
     Retrieves the depth of this Texture3D object.
public  voidsetBoundaryModeR(int boundaryModeR)
     Sets the boundary mode for the R coordinate in this texture object.


Constructor Detail
Texture3D
public Texture3D()(Code)
Constructs a Texture3D object with default parameters. The default values are as follows:
    depth : 0
    boundary mode R : WRAP

Note that the default constructor creates a texture object with a width, height, and depth of 0 and is, therefore, not useful.




Texture3D
public Texture3D(int mipmapMode, int format, int width, int height, int depth)(Code)
Constructs an empty Texture3D object with specified mipmapMode format, width, height, and depth. Image at base level must be set by the application using 'setImage' method. If mipmapMode is set to MULTI_LEVEL_MIPMAP, images for base level through maximum level must be set. Note that a texture with a non-power-of-two width, height, or depth will only be rendered on a graphics device that supports non-power-of-two textures.
Parameters:
  mipmapMode - type of mipmap for this Texture: One ofBASE_LEVEL, MULTI_LEVEL_MIPMAP.
Parameters:
  format - data format of Textures saved in this object.One of INTENSITY, LUMINANCE, ALPHA, LUMINANCE_ALPHA, RGB, RGBA.
Parameters:
  width - width of image at level 0.
Parameters:
  height - height of image at level 0.
Parameters:
  depth - depth of image at level 0.
exception:
  IllegalArgumentException - if width, height, or depth are notgreater than 0 OR invalid format/mipmapMode is specified.



Texture3D
public Texture3D(int mipmapMode, int format, int width, int height, int depth, int boundaryWidth)(Code)
Constructs an empty Texture3D object with specified mipmapMode format, width, height, depth, and boundaryWidth. Image at base level must be set by the application using 'setImage' method. If mipmapMode is set to MULTI_LEVEL_MIPMAP, images for base level through maximum level must be set. Note that a texture with a non-power-of-two width, height, or depth will only be rendered on a graphics device that supports non-power-of-two textures.
Parameters:
  mipmapMode - type of mipmap for this Texture: One ofBASE_LEVEL, MULTI_LEVEL_MIPMAP.
Parameters:
  format - data format of Textures saved in this object.One of INTENSITY, LUMINANCE, ALPHA, LUMINANCE_ALPHA, RGB, RGBA.
Parameters:
  width - width of image at level 0. Thisdoes not include the width of the boundary.
Parameters:
  height - height of image at level 0. Thisdoes not include the width of the boundary.
Parameters:
  depth - depth of image at level 0. Thisdoes not include the width of the boundary.
Parameters:
  boundaryWidth - width of the boundary, which must be 0 or 1.
exception:
  IllegalArgumentException - if width, height, or depth are notgreater than 0 OR invalid format/mipmapMode is specified, orif the boundaryWidth is < 0 or > 1
since:
   Java 3D 1.3




Method Detail
cloneNodeComponent
public NodeComponent cloneNodeComponent()(Code)



createRetained
void createRetained()(Code)
Creates a retained mode Texture3DRetained object that this Texture3D component object will point to.



duplicateAttributes
void duplicateAttributes(NodeComponent originalNodeComponent, boolean forceDuplicate)(Code)
Copies all node information from originalNodeComponent into the current node. This method is called from the duplicateNode method. This routine does the actual duplication of all "local data" (any data defined in this object).
Parameters:
  originalNodeComponent - the original node to duplicate.
Parameters:
  forceDuplicate - when set to true, causes theduplicateOnCloneTree flag to be ignored. Whenfalse, the value of each node'sduplicateOnCloneTree variable determines whetherNodeComponent data is duplicated or copied.
See Also:   Node.cloneTree
See Also:   NodeComponent.setDuplicateOnCloneTree



duplicateNodeComponent
public void duplicateNodeComponent(NodeComponent originalNodeComponent)(Code)
NOTE: Applications should not call this method directly. It should only be called by the cloneNode method.



getBoundaryModeR
public int getBoundaryModeR()(Code)
Retrieves the boundary mode for the R coordinate. the current boundary mode for the R coordinate.
exception:
  RestrictedAccessException - if the method is calledwhen this object is part of live or compiled scene graph.



getDepth
public int getDepth()(Code)
Retrieves the depth of this Texture3D object. the depth of this Texture3D object.
exception:
  CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph
since:
   Java 3D 1.2



setBoundaryModeR
public void setBoundaryModeR(int boundaryModeR)(Code)
Sets the boundary mode for the R coordinate in this texture object.
Parameters:
  boundaryModeR - the boundary mode for the R coordinate,one of: CLAMP, WRAP, CLAMP_TO_EDGE, or CLAMP_TO_BOUNDARY
exception:
  RestrictedAccessException - if the method is calledwhen this object is part of live or compiled scene graph.
exception:
  IllegalArgumentException - if boundaryModeRis a value other than CLAMP, WRAP,CLAMP_TO_EDGE, or CLAMP_TO_BOUNDARY.



Fields inherited from javax.media.j3d.Texture
final public static int ALLOW_ANISOTROPIC_FILTER_READ(Code)(Java Doc)
final public static int ALLOW_BOUNDARY_COLOR_READ(Code)(Java Doc)
final public static int ALLOW_BOUNDARY_MODE_READ(Code)(Java Doc)
final public static int ALLOW_ENABLE_READ(Code)(Java Doc)
final public static int ALLOW_ENABLE_WRITE(Code)(Java Doc)
final public static int ALLOW_FILTER4_READ(Code)(Java Doc)
final public static int ALLOW_FILTER_READ(Code)(Java Doc)
final public static int ALLOW_FORMAT_READ(Code)(Java Doc)
final public static int ALLOW_IMAGE_READ(Code)(Java Doc)
final public static int ALLOW_IMAGE_WRITE(Code)(Java Doc)
final public static int ALLOW_LOD_RANGE_READ(Code)(Java Doc)
final public static int ALLOW_LOD_RANGE_WRITE(Code)(Java Doc)
final public static int ALLOW_MIPMAP_MODE_READ(Code)(Java Doc)
final public static int ALLOW_SHARPEN_TEXTURE_READ(Code)(Java Doc)
final public static int ALLOW_SIZE_READ(Code)(Java Doc)
final public static int ALPHA(Code)(Java Doc)
final public static int ANISOTROPIC_NONE(Code)(Java Doc)
final public static int ANISOTROPIC_SINGLE_VALUE(Code)(Java Doc)
final public static int BASE_LEVEL(Code)(Java Doc)
final public static int BASE_LEVEL_LINEAR(Code)(Java Doc)
final public static int BASE_LEVEL_POINT(Code)(Java Doc)
final public static int CLAMP(Code)(Java Doc)
final public static int CLAMP_TO_BOUNDARY(Code)(Java Doc)
final public static int CLAMP_TO_EDGE(Code)(Java Doc)
final public static int FASTEST(Code)(Java Doc)
final public static int FILTER4(Code)(Java Doc)
final public static int INTENSITY(Code)(Java Doc)
final public static int LINEAR_SHARPEN(Code)(Java Doc)
final public static int LINEAR_SHARPEN_ALPHA(Code)(Java Doc)
final public static int LINEAR_SHARPEN_RGB(Code)(Java Doc)
final public static int LUMINANCE(Code)(Java Doc)
final public static int LUMINANCE_ALPHA(Code)(Java Doc)
final public static int MULTI_LEVEL_LINEAR(Code)(Java Doc)
final public static int MULTI_LEVEL_MIPMAP(Code)(Java Doc)
final public static int MULTI_LEVEL_POINT(Code)(Java Doc)
final public static int NICEST(Code)(Java Doc)
final public static int RGB(Code)(Java Doc)
final public static int RGBA(Code)(Java Doc)
final public static int WRAP(Code)(Java Doc)

Methods inherited from javax.media.j3d.Texture
void duplicateAttributes(NodeComponent originalNodeComponent, boolean forceDuplicate)(Code)(Java Doc)
boolean duplicateChild()(Code)(Java Doc)
public float getAnisotropicFilterDegree()(Code)(Java Doc)
public int getAnisotropicFilterMode()(Code)(Java Doc)
public int getBaseLevel()(Code)(Java Doc)
public void getBoundaryColor(Color4f boundaryColor)(Code)(Java Doc)
public int getBoundaryModeS()(Code)(Java Doc)
public int getBoundaryModeT()(Code)(Java Doc)
public int getBoundaryWidth()(Code)(Java Doc)
public boolean getEnable()(Code)(Java Doc)
public void getFilter4Func(float[] weights)(Code)(Java Doc)
public int getFilter4FuncPointsCount()(Code)(Java Doc)
public int getFormat()(Code)(Java Doc)
public int getHeight()(Code)(Java Doc)
public ImageComponent getImage(int level)(Code)(Java Doc)
public ImageComponent[] getImages()(Code)(Java Doc)
static int getLevelsNPOT(int num)(Code)(Java Doc)
public void getLodOffset(Tuple3f offset)(Code)(Java Doc)
public int getMagFilter()(Code)(Java Doc)
public float getMaximumLOD()(Code)(Java Doc)
public int getMaximumLevel()(Code)(Java Doc)
public int getMinFilter()(Code)(Java Doc)
public float getMinimumLOD()(Code)(Java Doc)
public int getMipMapMode()(Code)(Java Doc)
static int getPowerOf2(int num)(Code)(Java Doc)
public void getSharpenTextureFunc(float[] lod, float[] pts)(Code)(Java Doc)
public void getSharpenTextureFunc(Point2f[] pts)(Code)(Java Doc)
public int getSharpenTextureFuncPointsCount()(Code)(Java Doc)
public int getWidth()(Code)(Java Doc)
public int numMipMapLevels()(Code)(Java Doc)
public void setAnisotropicFilterDegree(float degree)(Code)(Java Doc)
public void setAnisotropicFilterMode(int mode)(Code)(Java Doc)
public void setBaseLevel(int baseLevel)(Code)(Java Doc)
public void setBoundaryColor(Color4f boundaryColor)(Code)(Java Doc)
public void setBoundaryColor(float r, float g, float b, float a)(Code)(Java Doc)
public void setBoundaryModeS(int boundaryModeS)(Code)(Java Doc)
public void setBoundaryModeT(int boundaryModeT)(Code)(Java Doc)
public void setEnable(boolean state)(Code)(Java Doc)
public void setFilter4Func(float[] weights)(Code)(Java Doc)
public void setImage(int level, ImageComponent image)(Code)(Java Doc)
public void setImages(ImageComponent[] images)(Code)(Java Doc)
public void setLodOffset(float s, float t, float r)(Code)(Java Doc)
public void setLodOffset(Tuple3f offset)(Code)(Java Doc)
public void setMagFilter(int magFilter)(Code)(Java Doc)
public void setMaximumLOD(float maximumLod)(Code)(Java Doc)
public void setMaximumLevel(int maximumLevel)(Code)(Java Doc)
public void setMinFilter(int minFilter)(Code)(Java Doc)
public void setMinimumLOD(float minimumLod)(Code)(Java Doc)
public void setMipMapMode(int mipMapMode)(Code)(Java Doc)
public void setSharpenTextureFunc(float[] lod, float[] pts)(Code)(Java Doc)
public void setSharpenTextureFunc(Point2f[] pts)(Code)(Java Doc)

Fields inherited from javax.media.j3d.NodeComponent
boolean forceDuplicate(Code)(Java Doc)

Methods inherited from javax.media.j3d.NodeComponent
final void checkDuplicateNodeComponent(NodeComponent originalNodeComponent)(Code)(Java Doc)
public NodeComponent cloneNodeComponent()(Code)(Java Doc)
public NodeComponent cloneNodeComponent(boolean forceDuplicate)(Code)(Java Doc)
void createRetained()(Code)(Java Doc)
void duplicateAttributes(NodeComponent originalNode, boolean forceDuplicate)(Code)(Java Doc)
boolean duplicateChild()(Code)(Java Doc)
public void duplicateNodeComponent(NodeComponent originalNodeComponent)(Code)(Java Doc)
public void duplicateNodeComponent(NodeComponent originalNodeComponent, boolean forceDuplicate)(Code)(Java Doc)
public boolean getDuplicateOnCloneTree()(Code)(Java Doc)
public void setDuplicateOnCloneTree(boolean duplicate)(Code)(Java Doc)
void validateImageIllegalSharing(ImageComponent image)(Code)(Java Doc)

Fields inherited from javax.media.j3d.SceneGraphObject
Hashtable nodeHashtable(Code)(Java Doc)
SceneGraphObjectRetained retained(Code)(Java Doc)

Methods inherited from javax.media.j3d.SceneGraphObject
final boolean capabilityBitsEmpty()(Code)(Java Doc)
final void checkForLiveOrCompiled()(Code)(Java Doc)
final public void clearCapability(int bit)(Code)(Java Doc)
final public void clearCapabilityIsFrequent(int bit)(Code)(Java Doc)
final void clearLive()(Code)(Java Doc)
void createRetained()(Code)(Java Doc)
protected void duplicateSceneGraphObject(SceneGraphObject originalNode)(Code)(Java Doc)
final public boolean getCapability(int bit)(Code)(Java Doc)
final public boolean getCapabilityIsFrequent(int bit)(Code)(Java Doc)
public String getName()(Code)(Java Doc)
String getNamePrefix()(Code)(Java Doc)
NodeComponent getNodeComponent(NodeComponent originalNodeComponent, boolean forceDuplicate, Hashtable hashtable)(Code)(Java Doc)
public Object getUserData()(Code)(Java Doc)
final public boolean isCompiled()(Code)(Java Doc)
final public boolean isLive()(Code)(Java Doc)
final boolean isLiveOrCompiled()(Code)(Java Doc)
final public void setCapability(int bit)(Code)(Java Doc)
final public void setCapabilityIsFrequent(int bit)(Code)(Java Doc)
final void setCompiled()(Code)(Java Doc)
void setDefaultReadCapabilities(int[] bits)(Code)(Java Doc)
final void setLive()(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setUserData(Object userData)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void updateNodeReferences(NodeReferenceTable referenceTable)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.