Java Doc for TextureCubeMap.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.TextureCubeMap

TextureCubeMap
public class TextureCubeMap extends Texture (Code)
TextureCubeMap is a subclass of Texture class. It defines a special kind of texture mapping which is composed of a set of six 2D images representating the six faces of a cube. The texture coordinate (s,t,r) is used as a 3D direction vector emanating from the center of a cube to select a particular face of the cube based on the largest magnitude coordinate (the major axis). A new 2D texture coordinate (s,t) is then determined by dividing the other two coordinates (the minor axes) by the major axis value. The new coordinate is then used for texel lookup from the selected texture image of this cube map. The TextureCubeMap image is defined by specifying the images for each face of the cube. The cube map texture can be thought of as centered at the orgin of and aligned to an XYZ coordinate system. The names of the cube faces are:
  • POSITIVE_X
  • NEGATIVE_X
  • POSITIVE_Y
  • NEGATIVE_Y
  • POSITIVE_Z
  • NEGATIVE_Z

Note that as of Java 3D 1.5, the texture width and height 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 or height that are not an exact power of two are ignored for that canvas.
See Also:   Canvas3D.queryProperties
since:
   Java 3D 1.3



Field Summary
final public static  intNEGATIVE_X
    
final public static  intNEGATIVE_Y
    
final public static  intNEGATIVE_Z
    
final public static  intPOSITIVE_X
    
final public static  intPOSITIVE_Y
    
final public static  intPOSITIVE_Z
    

Constructor Summary
public  TextureCubeMap()
     Constructs a texture object using default values.
public  TextureCubeMap(int mipmapMode, int format, int width)
     Constructs an empty TextureCubeMap object with specified mipmapMode format, and width.
public  TextureCubeMap(int mipmapMode, int format, int width, int boundaryWidth)
     Constructs an empty TextureCubeMap object with specified mipmapMode format, width, and boundary width.

Method Summary
 voidcreateRetained()
     Creates a retained mode TextureCubeMapRetained object that this TextureCubeMap component object will point to.
public  voidduplicateNodeComponent(NodeComponent originalNodeComponent)
     NOTE: Applications should not call this method directly.
public  ImageComponentgetImage(int level, int face)
     Retrieves the image for a specified mipmap level of a particular face of the cube map.
Parameters:
  level - mipmap level to get.
Parameters:
  face - face of the cube map.
public  ImageComponentgetImage(int level)
     This method is not supported for TextureCubeMap.
public  ImageComponent[]getImages(int face)
     Retrieves the array of images for all mipmap level of a particular face of the cube map.
Parameters:
  face - face of the cube map.
public  ImageComponent[]getImages()
     This method is not supported for TextureCubeMap.
public  voidsetImage(int level, int face, ImageComponent2D image)
     Sets the image for a specified mipmap level of a specified face of the cube map
Parameters:
  level - mipmap level
Parameters:
  face - face of the cube map.
public  voidsetImage(int level, ImageComponent image)
     This method is not supported for TextureCubeMap.
public  voidsetImages(int face, ImageComponent2D[] images)
     Sets the array of images for mipmap levels from base level through max level for a specified face of the cube map
Parameters:
  face - face of the cube map.
public  voidsetImages(ImageComponent[] images)
     This method is not supported for TextureCubeMap.

Field Detail
NEGATIVE_X
final public static int NEGATIVE_X(Code)
Specifies the face of the cube that is pierced by the negative x axis



NEGATIVE_Y
final public static int NEGATIVE_Y(Code)
Specifies the face of the cube that is pierced by the negative y axis



NEGATIVE_Z
final public static int NEGATIVE_Z(Code)
Specifies the face of the cube that is pierced by the negative z axis



POSITIVE_X
final public static int POSITIVE_X(Code)
Specifies the face of the cube that is pierced by the positive x axis



POSITIVE_Y
final public static int POSITIVE_Y(Code)
Specifies the face of the cube that is pierced by the positive y axis



POSITIVE_Z
final public static int POSITIVE_Z(Code)
Specifies the face of the cube that is pierced by the positive z axis




Constructor Detail
TextureCubeMap
public TextureCubeMap()(Code)
Constructs a texture object using default values. Note that the default constructor creates a texture object with a width of 0 and is, therefore, not useful.



TextureCubeMap
public TextureCubeMap(int mipmapMode, int format, int width)(Code)
Constructs an empty TextureCubeMap object with specified mipmapMode format, and width. 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 cube map is square in dimensions, hence specifying width is sufficient. Note also that a texture with a non-power-of-two width 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 (and height) of image at level 0.
exception:
  IllegalArgumentException - if width is not greaterthan 0 OR invalid format/mipmapMode is specified.



TextureCubeMap
public TextureCubeMap(int mipmapMode, int format, int width, int boundaryWidth)(Code)
Constructs an empty TextureCubeMap object with specified mipmapMode format, width, and boundary width. 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 cube map is square in dimensions, hence specifying width is sufficient. Note also that a texture with a non-power-of-two width 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 (and height) 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 is notgreater than 0 OR invalid format/mipmapMode is specified.




Method Detail
createRetained
void createRetained()(Code)
Creates a retained mode TextureCubeMapRetained object that this TextureCubeMap component object will point to.



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



getImage
public ImageComponent getImage(int level, int face)(Code)
Retrieves the image for a specified mipmap level of a particular face of the cube map.
Parameters:
  level - mipmap level to get.
Parameters:
  face - face of the cube map. One of: POSITIVE_X, NEGATIVE_X, POSITIVE_Y, NEGATIVE_Y,POSITIVE_Z or NEGATIVE_Z. the ImageComponent object containing the texture image atthe specified mipmap level.
exception:
  IllegalArgumentException - if face has a value otherthan POSITIVE_X, NEGATIVE_X, POSITIVE_Y, NEGATIVE_Y,POSITIVE_Z or NEGATIVE_Z.
exception:
  CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph



getImage
public ImageComponent getImage(int level)(Code)
This method is not supported for TextureCubeMap. A face of the cube map has to be specified when retrieving an image for a particular level of the cube map.
exception:
  UnsupportedOperationException - this method is not supported
since:
   Java 3D 1.3



getImages
public ImageComponent[] getImages(int face)(Code)
Retrieves the array of images for all mipmap level of a particular face of the cube map.
Parameters:
  face - face of the cube map. One of:POSITIVE_X, NEGATIVE_X,POSITIVE_Y, NEGATIVE_Y,POSITIVE_Z or NEGATIVE_Z. an array of ImageComponent object for the particular face ofof the cube map.
exception:
  IllegalArgumentException - if face has a value otherthan POSITIVE_X, NEGATIVE_X, POSITIVE_Y, NEGATIVE_Y,POSITIVE_Z or NEGATIVE_Z.
exception:
  CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph



getImages
public ImageComponent[] getImages()(Code)
This method is not supported for TextureCubeMap. A face of the cube map has to be specified when retrieving images for the cube map.
exception:
  UnsupportedOperationException - this method is not supported
since:
   Java 3D 1.3



setImage
public void setImage(int level, int face, ImageComponent2D image)(Code)
Sets the image for a specified mipmap level of a specified face of the cube map
Parameters:
  level - mipmap level
Parameters:
  face - face of the cube map. One of: POSITIVE_X, NEGATIVE_X, POSITIVE_Y, NEGATIVE_Y,POSITIVE_Z or NEGATIVE_Z.
Parameters:
  image - ImageComponent2D object containing the image
exception:
  IllegalArgumentException - if face has a value otherthan POSITIVE_X, NEGATIVE_X, POSITIVE_Y, NEGATIVE_Y,POSITIVE_Z or NEGATIVE_Z.
exception:
  CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph
exception:
  IllegalSharingException - if this TextureCubeMap is live andthe specified image is being used by a Canvas3D as an off-screen buffer.
exception:
  IllegalSharingException - if this TextureCubeMap isbeing used by an immediate mode context andthe specified image is being used by a Canvas3D as an off-screen buffer.



setImage
public void setImage(int level, ImageComponent image)(Code)
This method is not supported for TextureCubeMap. A face of the cube map has to be specified when setting an image for a particular level of the cube map.
exception:
  UnsupportedOperationException - this method is not supported
since:
   Java 3D 1.3



setImages
public void setImages(int face, ImageComponent2D[] images)(Code)
Sets the array of images for mipmap levels from base level through max level for a specified face of the cube map
Parameters:
  face - face of the cube map. One of: POSITIVE_X, NEGATIVE_X, POSITIVE_Y, NEGATIVE_Y,POSITIVE_Z or NEGATIVE_Z.
Parameters:
  images - array of ImageComponent2D objects containing the images
exception:
  IllegalArgumentException - if face has a value otherthan POSITIVE_X, NEGATIVE_X, POSITIVE_Y, NEGATIVE_Y,POSITIVE_Z or NEGATIVE_Z.
exception:
  CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph
exception:
  IllegalSharingException - if this TextureCubeMap is live andany of the specified images are being used by a Canvas3D as anoff-screen buffer.
exception:
  IllegalSharingException - if this TextureCubeMap isbeing used by an immediate mode context andany of the specified images are being used by a Canvas3D as anoff-screen buffer.



setImages
public void setImages(ImageComponent[] images)(Code)
This method is not supported for TextureCubeMap. A face of the cube map has to be specified when setting images for the cube map.
exception:
  UnsupportedOperationException - this method is not supported
since:
   Java 3D 1.3



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.