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

TextureAttributes
public class TextureAttributes extends NodeComponent (Code)
The TextureAttributes object defines attributes that apply to texture mapping. The texture attributes include the following:

  • Texture mode - defines how the object and texture colors are blended. The mode may be one of the following:
    • MODULATE - modulates the incoming color with the texture color.

        C' = C Ct
    • DECAL - applies the texture color to the incoming color as a decal.

        C'rgb = Crgb (1 - Cta) + Ctrgb Cta

        C'a = Ca

    • BLEND - blends the texture blend color with the incoming color.

        C'rgb = Crgb (1 - Ctrgb) + Cbrgb Ctrgb

        C'a = Ca Cta

      Note that if the texture format is INTENSITY, alpha is computed identically to red, green, and blue:

        C'a = Ca (1 - Cta) + Cba Cta
    • REPLACE - replaces the incoming color with the texture color.

        C' = Ct

    • COMBINE - combines the object color with the texture color or texture blend color according to the combine operation as specified in the texture combine mode.
    C = Incoming color to the texture unit state. For texture unit state 0, C is the object color Ct = Texture color
    Cb = Texture blend color

  • Combine Mode - defines the combine operation when texture mode specifies COMBINE. The combine mode includes the following:

    • COMBINE_REPLACE

        C' = C0

    • COMBINE_MODULATE

        C' = C0 C1
    • COMBINE_ADD

        C' = C0 + C1

    • COMBINE_ADD_SIGNED

        C' = C0 + C1 - 0.5

    • COMBINE_SUBTRACT

        C' = C0 - C1

    • COMBINE_INTERPOLATE

        C' = C0 C2 + C1 (1 - C2)

    • COMBINE_DOT3

        C' = 4 * ( (C0r - 0.5) * (C1r - 0.5) + (C0g - 0.5) * (C1g - 0.5) + (C0b - 0.5) * (C1b - 0.5))

        where CNx is the x component of the Nth color operand in the combine operation.

        The value C' will be placed to the all three r,g,b components or the a component of the output.

  • where C0, C1 and C2 are determined by the color source, and the color operand.

  • Combine Color Source - defines the source for a color operand in the combine operation. The color source includes the following:

    • COMBINE_OBJECT_COLOR - object color

    • COMBINE_TEXTURE_COLOR - texture color

    • COMBINE_CONSTANT_COLOR - texture blend color

    • COMBINE_PREVIOUS_TEXTURE_UNIT_STATE - color from the previous texture unit state. For texture unit state 0, this is equivalent to COMBINE_OBJECT_COLOR.

  • Combine Color Function - specifies the function for a color operand in the combine operation. The valid values are:

    • COMBINE_SRC_COLOR - the color function is f = Crgb

    • COMBINE_ONE_MINUS_SRC_COLOR - the color function is f = (1 - Crgb)

    • COMBINE_SRC_ALPHA - the color function is f = Ca

    • COMBINE_ONE_MINUS_SRC_ALPHA - the color function is f = (1 - Ca)

  • Combine scale factor - specifies the scale factor to be applied to the output color of the combine operation. The valid values include: 1, 2, or 4.
  • Transform - the texture transform object used to transform texture coordinates. The texture transform can translate, scale, or rotate the texture coordinates before the texture is applied to the object.
  • Blend color - the constant texture blend color
  • Perspective correction - the perspective correction mode used for color and texture coordinate interpolation. One of the following:
    • NICEST - uses the nicest (highest quality) available method for texture mapping perspective correction.
    • FASTEST - uses the fastest available method for texture mapping perspective correction.
  • Texture color table - defines a table that is used to look up texture colors before applying the texture mode.

See Also:   Appearance
See Also:   Canvas3D.queryProperties


Field Summary
final public static  intALLOW_BLEND_COLOR_READ
     Specifies that this TextureAttributes object allows reading its texture blend color component information.
final public static  intALLOW_BLEND_COLOR_WRITE
     Specifies that this TextureAttributes object allows writing its texture blend color component information.
final public static  intALLOW_COLOR_TABLE_READ
     Specifies that this TextureAttributes object allows reading its texture color table component information.
final public static  intALLOW_COLOR_TABLE_WRITE
     Specifies that this TextureAttributes object allows writing its texture color table component information.
final public static  intALLOW_COMBINE_READ
     Specifies that this TextureAttributes object allows reading its texture combine mode information.
final public static  intALLOW_COMBINE_WRITE
     Specifies that this TextureAttributes object allows writing its texture combine mode information.
final public static  intALLOW_MODE_READ
     Specifies that this TextureAttributes object allows reading its texture mode component information and perspective correction mode.
final public static  intALLOW_MODE_WRITE
     Specifies that this TextureAttributes object allows writing its texture mode component information and perspective correction mode.
final public static  intALLOW_TRANSFORM_READ
     Specifies that this TextureAttributes object allows reading its texture transform component information.
final public static  intALLOW_TRANSFORM_WRITE
     Specifies that this TextureAttributes object allows writing its texture transform component information.
final public static  intBLEND
     Blend the texture blend color with the object color.
final public static  intCOMBINE
     Combine the object color with texture color as specified in the combine mode.
final public static  intCOMBINE_ADD
     Add two colors.
final public static  intCOMBINE_ADD_SIGNED
     Add two colors plus an implicit offset.
final public static  intCOMBINE_CONSTANT_COLOR
     Texture blend color.
final public static  intCOMBINE_DOT3
     Dot product of two colors.
final public static  intCOMBINE_INTERPOLATE
     Interpolate two colors with a factor.
final public static  intCOMBINE_MODULATE
     Modulates one color with another color.
final public static  intCOMBINE_OBJECT_COLOR
     Object color coming into the texturing state.
final public static  intCOMBINE_ONE_MINUS_SRC_ALPHA
    
final public static  intCOMBINE_ONE_MINUS_SRC_COLOR
    
final public static  intCOMBINE_PREVIOUS_TEXTURE_UNIT_STATE
     Color from the previous texture unit state.
final public static  intCOMBINE_REPLACE
     Replace the input color with the specified color.
final public static  intCOMBINE_SRC_ALPHA
    
final public static  intCOMBINE_SRC_COLOR
    
final public static  intCOMBINE_SUBTRACT
     Subtract one color from another color.
final public static  intCOMBINE_TEXTURE_COLOR
     Texture color of the corresponding texture unit state.
final public static  intDECAL
     Apply the texture color to the object as a decal.
final public static  intFASTEST
     Use the fastest available method for perspective correction.
final public static  intMODULATE
     Modulate the object color with the texture color.
final public static  intNICEST
     Use the nicest (highest quality) available method for texture mapping perspective correction.
final public static  intREPLACE
     Replace the object color with the texture color.

Constructor Summary
public  TextureAttributes()
     Constructs a TextureAttributes object with default parameters.
public  TextureAttributes(int textureMode, Transform3D transform, Color4f textureBlendColor, int perspCorrectionMode)
     Constructs a TextureAttributes object with the specified values.

Method Summary
public  NodeComponentcloneNodeComponent()
    
 voidcreateRetained()
     Creates a retained mode TextureAttributesRetained object that this TextureAttributes component object will point to.
 voidduplicateAttributes(NodeComponent originalNodeComponent, boolean forceDuplicate)
     Copies all node information from originalNodeComponent into the current node.
public  intgetCombineAlphaFunction(int index)
     Retrieves the function for the alpha component of the specified color operand for this object.
public  intgetCombineAlphaMode()
     Retrieves the combine mode for the alpha component of the output color for this object.
public  intgetCombineAlphaScale()
     Retrieves the scale factor for the alpha component of the output color for this object.
public  intgetCombineAlphaSource(int index)
     Retrieves the source for the alpha component of the specified color operand for this object.
public  intgetCombineRgbFunction(int index)
     Retrieves the function for the rgb components of the specified color operand for this object.
public  intgetCombineRgbMode()
     Retrieves the combine mode for the rgb components of the output color for this object.
public  intgetCombineRgbScale()
     Retrieves the scale factor for the rgb components of the output color for this object.
public  intgetCombineRgbSource(int index)
     Retrieves the source for the rgb components of the specified color operand for this object.
public  intgetNumTextureColorTableComponents()
     Retrieves the number of color components in the current texture color table.
public  intgetPerspectiveCorrectionMode()
     Gets perspective correction mode value.
public  voidgetTextureBlendColor(Color4f textureBlendColor)
     Gets the texture blend color for this appearance component object.
public  voidgetTextureColorTable(int[][] table)
     Retrieves the texture color table and copies it into the specified array.
public  intgetTextureColorTableSize()
     Retrieves the size of the current texture color table.
public  intgetTextureMode()
     Gets the texture mode parameter for this texture attributes object.
public  voidgetTextureTransform(Transform3D transform)
     Retrieves a copy of the texture transform object.
public  voidsetCombineAlphaFunction(int index, int function)
     Sets the function for the alpha component of the specified color operand for this object.
public  voidsetCombineAlphaMode(int combineMode)
     Sets the combine mode for the alpha component of the output color for this object.
public  voidsetCombineAlphaScale(int scale)
     Sets the scale factor for the alpha component of the output color for this object.
Parameters:
  scale - the scale factor for the alpha component of the output color.
public  voidsetCombineAlphaSource(int index, int src)
     Sets the source for the alpha component of the specified color operand for this object.
public  voidsetCombineRgbFunction(int index, int function)
     Sets the function for the rgb components of the specified color operand for this object.
public  voidsetCombineRgbMode(int combineMode)
     Sets the combine mode for the rgb components of the output color for this object.
public  voidsetCombineRgbScale(int scale)
     Sets the scale factor for the rgb components of the output color for this object.
Parameters:
  scale - the scale factor for the rgb components of the output color.
public  voidsetCombineRgbSource(int index, int src)
     Sets the source for the rgb components of the specified color operand for this object.
public  voidsetPerspectiveCorrectionMode(int mode)
     Sets perspective correction mode to be used for color and/or texture coordinate interpolation.
public  voidsetTextureBlendColor(Color4f textureBlendColor)
     Sets the texture constant color for this texture attributes object.
public  voidsetTextureBlendColor(float r, float g, float b, float a)
     Sets the texture blend color for this appearance component object.
public  voidsetTextureColorTable(int[][] table)
     Sets the texture color table from the specified table.
public  voidsetTextureMode(int textureMode)
     Sets the texture mode parameter for this appearance component object.
public  voidsetTextureTransform(Transform3D transform)
     Sets the texture transform object used to transform texture coordinates.

Field Detail
ALLOW_BLEND_COLOR_READ
final public static int ALLOW_BLEND_COLOR_READ(Code)
Specifies that this TextureAttributes object allows reading its texture blend color component information.



ALLOW_BLEND_COLOR_WRITE
final public static int ALLOW_BLEND_COLOR_WRITE(Code)
Specifies that this TextureAttributes object allows writing its texture blend color component information.



ALLOW_COLOR_TABLE_READ
final public static int ALLOW_COLOR_TABLE_READ(Code)
Specifies that this TextureAttributes object allows reading its texture color table component information.
since:
   Java 3D 1.2



ALLOW_COLOR_TABLE_WRITE
final public static int ALLOW_COLOR_TABLE_WRITE(Code)
Specifies that this TextureAttributes object allows writing its texture color table component information.
since:
   Java 3D 1.2



ALLOW_COMBINE_READ
final public static int ALLOW_COMBINE_READ(Code)
Specifies that this TextureAttributes object allows reading its texture combine mode information. (e.g. combine mode, combine color source, combine color function, combine scale factor)
since:
   Java 3D 1.3



ALLOW_COMBINE_WRITE
final public static int ALLOW_COMBINE_WRITE(Code)
Specifies that this TextureAttributes object allows writing its texture combine mode information. (e.g. combine mode, combine color source, combine color function, combine scale factor)
since:
   Java 3D 1.3



ALLOW_MODE_READ
final public static int ALLOW_MODE_READ(Code)
Specifies that this TextureAttributes object allows reading its texture mode component information and perspective correction mode.



ALLOW_MODE_WRITE
final public static int ALLOW_MODE_WRITE(Code)
Specifies that this TextureAttributes object allows writing its texture mode component information and perspective correction mode.



ALLOW_TRANSFORM_READ
final public static int ALLOW_TRANSFORM_READ(Code)
Specifies that this TextureAttributes object allows reading its texture transform component information.



ALLOW_TRANSFORM_WRITE
final public static int ALLOW_TRANSFORM_WRITE(Code)
Specifies that this TextureAttributes object allows writing its texture transform component information.



BLEND
final public static int BLEND(Code)
Blend the texture blend color with the object color.
See Also:   TextureAttributes.setTextureMode



COMBINE
final public static int COMBINE(Code)
Combine the object color with texture color as specified in the combine mode.
See Also:   TextureAttributes.setTextureMode
since:
   Java 3D 1.3



COMBINE_ADD
final public static int COMBINE_ADD(Code)
Add two colors.
since:
   Java 3D 1.3
See Also:   TextureAttributes.setCombineRgbMode
See Also:   TextureAttributes.setCombineAlphaMode



COMBINE_ADD_SIGNED
final public static int COMBINE_ADD_SIGNED(Code)
Add two colors plus an implicit offset.
since:
   Java 3D 1.3
See Also:   TextureAttributes.setCombineRgbMode
See Also:   TextureAttributes.setCombineAlphaMode



COMBINE_CONSTANT_COLOR
final public static int COMBINE_CONSTANT_COLOR(Code)
Texture blend color.
since:
   Java 3D 1.3
See Also:   TextureAttributes.setCombineRgbSource
See Also:   TextureAttributes.setCombineAlphaSource



COMBINE_DOT3
final public static int COMBINE_DOT3(Code)
Dot product of two colors.
since:
   Java 3D 1.3
See Also:   TextureAttributes.setCombineRgbMode
See Also:   TextureAttributes.setCombineAlphaMode



COMBINE_INTERPOLATE
final public static int COMBINE_INTERPOLATE(Code)
Interpolate two colors with a factor.
since:
   Java 3D 1.3
See Also:   TextureAttributes.setCombineRgbMode
See Also:   TextureAttributes.setCombineAlphaMode



COMBINE_MODULATE
final public static int COMBINE_MODULATE(Code)
Modulates one color with another color.
since:
   Java 3D 1.3
See Also:   TextureAttributes.setCombineRgbMode
See Also:   TextureAttributes.setCombineAlphaMode



COMBINE_OBJECT_COLOR
final public static int COMBINE_OBJECT_COLOR(Code)
Object color coming into the texturing state.
since:
   Java 3D 1.3
See Also:   TextureAttributes.setCombineRgbSource
See Also:   TextureAttributes.setCombineAlphaSource



COMBINE_ONE_MINUS_SRC_ALPHA
final public static int COMBINE_ONE_MINUS_SRC_ALPHA(Code)
Color function is f = (1 - Ca)
since:
   Java 3D 1.3
See Also:   TextureAttributes.setCombineRgbFunction
See Also:   TextureAttributes.setCombineAlphaFunction



COMBINE_ONE_MINUS_SRC_COLOR
final public static int COMBINE_ONE_MINUS_SRC_COLOR(Code)
Color function is f = (1 - Crgb)
since:
   Java 3D 1.3
See Also:   TextureAttributes.setCombineRgbFunction



COMBINE_PREVIOUS_TEXTURE_UNIT_STATE
final public static int COMBINE_PREVIOUS_TEXTURE_UNIT_STATE(Code)
Color from the previous texture unit state.
since:
   Java 3D 1.3
See Also:   TextureAttributes.setCombineRgbSource
See Also:   TextureAttributes.setCombineAlphaSource



COMBINE_REPLACE
final public static int COMBINE_REPLACE(Code)
Replace the input color with the specified color.
since:
   Java 3D 1.3
See Also:   TextureAttributes.setCombineRgbMode
See Also:   TextureAttributes.setCombineAlphaMode



COMBINE_SRC_ALPHA
final public static int COMBINE_SRC_ALPHA(Code)
Color function is f = Ca
since:
   Java 3D 1.3
See Also:   TextureAttributes.setCombineRgbFunction
See Also:   TextureAttributes.setCombineAlphaFunction



COMBINE_SRC_COLOR
final public static int COMBINE_SRC_COLOR(Code)
Color function is f = Crgb
since:
   Java 3D 1.3
See Also:   TextureAttributes.setCombineRgbFunction



COMBINE_SUBTRACT
final public static int COMBINE_SUBTRACT(Code)
Subtract one color from another color.
since:
   Java 3D 1.3
See Also:   TextureAttributes.setCombineRgbMode
See Also:   TextureAttributes.setCombineAlphaMode



COMBINE_TEXTURE_COLOR
final public static int COMBINE_TEXTURE_COLOR(Code)
Texture color of the corresponding texture unit state.
since:
   Java 3D 1.3
See Also:   TextureAttributes.setCombineRgbSource
See Also:   TextureAttributes.setCombineAlphaSource



DECAL
final public static int DECAL(Code)
Apply the texture color to the object as a decal.
See Also:   TextureAttributes.setTextureMode



FASTEST
final public static int FASTEST(Code)
Use the fastest available method for perspective correction.
See Also:   TextureAttributes.setPerspectiveCorrectionMode



MODULATE
final public static int MODULATE(Code)
Modulate the object color with the texture color.
See Also:   TextureAttributes.setTextureMode



NICEST
final public static int NICEST(Code)
Use the nicest (highest quality) available method for texture mapping perspective correction.
See Also:   TextureAttributes.setPerspectiveCorrectionMode



REPLACE
final public static int REPLACE(Code)
Replace the object color with the texture color.
See Also:   TextureAttributes.setTextureMode




Constructor Detail
TextureAttributes
public TextureAttributes()(Code)
Constructs a TextureAttributes object with default parameters. The default values are as follows:
    texture mode : REPLACE
    blend color : black (0,0,0,0)
    transform : identity
    perspective correction mode : NICEST
    texture color table : null
    combine rgb mode : COMBINE_MODULATE
    combine alpha mode : COMBINE_MODULATE
    combine rgb source :
      C0=COMBINE_TEXTURE_COLOR
      C1=COMBINE_PREVIOUS_TEXTURE_UNIT_STATE
      C2=COMBINE_CONSTANT_COLOR
    combine alpha source :
      C0=COMBINE_TEXTURE_COLOR
      C1=COMBINE_PREVIOUS_TEXTURE_UNIT_STATE
      C2=COMBINE_CONSTANT_COLOR
    combine rgb function : COMBINE_SRC_COLOR
    combine alpha function : COMBINE_SRC_ALPHA
    combine rgb scale : 1
    combine alpha scale : 1



TextureAttributes
public TextureAttributes(int textureMode, Transform3D transform, Color4f textureBlendColor, int perspCorrectionMode)(Code)
Constructs a TextureAttributes object with the specified values.
Parameters:
  textureMode - the texture mode; one of MODULATE, DECAL, BLEND, REPLACE, orCOMBINE
Parameters:
  transform - the transform object, used to transform texturecoordinates
Parameters:
  textureBlendColor - the texture constant color
Parameters:
  perspCorrectionMode - the perspective correction mode to be used for color and/or texture coordinate interpolation;one of NICEST or FASTEST
exception:
  IllegalArgumentException - if textureModeis a value other than MODULATE,DECAL, BLEND, REPLACE, orCOMBINE
exception:
  IllegalArgumentException - if mode value is otherthan FASTEST or NICEST.




Method Detail
cloneNodeComponent
public NodeComponent cloneNodeComponent()(Code)



createRetained
void createRetained()(Code)
Creates a retained mode TextureAttributesRetained object that this TextureAttributes 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



getCombineAlphaFunction
public int getCombineAlphaFunction(int index)(Code)
Retrieves the function for the alpha component of the specified color operand for this object.
Parameters:
  index - color operand in the combine operation the function for the alpha component of the specified coloroperand for this object.
exception:
  IndexOutOfBoundsException - if index < 0 or index > 2
exception:
  CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph
since:
   Java 3D 1.3



getCombineAlphaMode
public int getCombineAlphaMode()(Code)
Retrieves the combine mode for the alpha component of the output color for this object. the combine mode for the alpha component.
exception:
  CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph
since:
   Java 3D 1.3



getCombineAlphaScale
public int getCombineAlphaScale()(Code)
Retrieves the scale factor for the alpha component of the output color for this object. the scale factor for the alpha component of the output color
exception:
  CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph
since:
   Java 3D 1.3



getCombineAlphaSource
public int getCombineAlphaSource(int index)(Code)
Retrieves the source for the alpha component of the specified color operand for this object.
Parameters:
  index - color operand in the combine operation the source for the alpha component of the specified coloroperand for this object
exception:
  IndexOutOfBoundsException - if index < 0 or index > 2
exception:
  CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph
since:
   Java 3D 1.3



getCombineRgbFunction
public int getCombineRgbFunction(int index)(Code)
Retrieves the function for the rgb components of the specified color operand for this object.
Parameters:
  index - color operand in the combine operation the function for the rgb components of the specified coloroperand for this object.
exception:
  IndexOutOfBoundsException - if index < 0 or index > 2
exception:
  CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph
since:
   Java 3D 1.3



getCombineRgbMode
public int getCombineRgbMode()(Code)
Retrieves the combine mode for the rgb components of the output color for this object. the combine mode for the rgb components.
exception:
  CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph
since:
   Java 3D 1.3



getCombineRgbScale
public int getCombineRgbScale()(Code)
Retrieves the scale factor for the rgb components of the output color for this object. the scale factor for the rgb components of the output color
exception:
  CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph
since:
   Java 3D 1.3



getCombineRgbSource
public int getCombineRgbSource(int index)(Code)
Retrieves the source for the rgb components of the specified color operand for this object.
Parameters:
  index - color operand in the combine operation the source for the rgb components of the specified coloroperand for this object
exception:
  IndexOutOfBoundsException - if index < 0 or index > 2
exception:
  CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph
since:
   Java 3D 1.3



getNumTextureColorTableComponents
public int getNumTextureColorTableComponents()(Code)
Retrieves the number of color components in the current texture color table. A value of 0 is returned if the texture color table is null. the number of color components in the texture colortable, or 0 if the table is null
since:
   Java 3D 1.2



getPerspectiveCorrectionMode
public int getPerspectiveCorrectionMode()(Code)
Gets perspective correction mode value. mode the value of perspective correction mode
exception:
  CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph



getTextureBlendColor
public void getTextureBlendColor(Color4f textureBlendColor)(Code)
Gets the texture blend color for this appearance component object.
Parameters:
  textureBlendColor - the vector that will receive the textureconstant color
exception:
  CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph



getTextureColorTable
public void getTextureColorTable(int[][] table)(Code)
Retrieves the texture color table and copies it into the specified array. If the current texture color table is null, no values are copied.
Parameters:
  table - the array that will receive a copy of thetexture color table from this TextureAttributes object.The array must be allocated by the caller and must be largeenough to hold the entire table (that is,int[numTextureColorTableComponents][textureColorTableSize]).
exception:
  CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph
since:
   Java 3D 1.2



getTextureColorTableSize
public int getTextureColorTableSize()(Code)
Retrieves the size of the current texture color table. A value of 0 is returned if the texture color table is null. the size of the texture color table, or 0 if the tableis null
since:
   Java 3D 1.2



getTextureMode
public int getTextureMode()(Code)
Gets the texture mode parameter for this texture attributes object. textureMode the texture mode
exception:
  CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph



getTextureTransform
public void getTextureTransform(Transform3D transform)(Code)
Retrieves a copy of the texture transform object.
Parameters:
  transform - the transform object that will receive thecurrent texture transform
exception:
  CapabilityNotSetException - if the method is calledwhen this object is part of live or compiled scene graph.



setCombineAlphaFunction
public void setCombineAlphaFunction(int index, int function)(Code)
Sets the function for the alpha component of the specified color operand for this object.
Parameters:
  index - color operand in the combine operation
Parameters:
  function - the color function, one of: COMBINE_SRC_ALPHA, orCOMBINE_ONE_MINUS_SRC_ALPHA
exception:
  IndexOutOfBoundsException - if index < 0 or index > 2
exception:
  IllegalArgumentException - if functionis a value other than COMBINE_SRC_ALPHA orCOMBINE_ONE_MINUS_SRC_ALPHA
exception:
  CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph
See Also:   Canvas3D.queryProperties
since:
   Java 3D 1.3



setCombineAlphaMode
public void setCombineAlphaMode(int combineMode)(Code)
Sets the combine mode for the alpha component of the output color for this object.
Parameters:
  combineMode - the combine mode, one of: COMBINE_REPLACE,COMBINE_MODULATE, COMBINE_ADD, COMBINE_ADD_SIGNED, COMBINE_SUBTRACT,COMBINE_INTERPOLATE, or COMBINE_DOT3
exception:
  IllegalArgumentException - if combineModeis a value other than COMBINE_REPLACE,COMBINE_MODULATE, COMBINE_ADD, COMBINE_ADD_SIGNED, COMBINE_SUBTRACT,COMBINE_INTERPOLATE, or COMBINE_DOT3
exception:
  CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph
See Also:   Canvas3D.queryProperties
since:
   Java 3D 1.3



setCombineAlphaScale
public void setCombineAlphaScale(int scale)(Code)
Sets the scale factor for the alpha component of the output color for this object.
Parameters:
  scale - the scale factor for the alpha component of the output color. It must be one of the following: 1, 2, or 4.
exception:
  IllegalArgumentException - if scale is avalue other than 1, 2, or 4.
exception:
  CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph
See Also:   Canvas3D.queryProperties
since:
   Java 3D 1.3



setCombineAlphaSource
public void setCombineAlphaSource(int index, int src)(Code)
Sets the source for the alpha component of the specified color operand for this object.
Parameters:
  index - color operand in the combine operation
Parameters:
  src - the color source, one of: COMBINE_OBJECT_COLOR,COMBINE_TEXTURE_COLOR, COMBINE_CONSTANT_COLOR, orCOMBINE_PREVIOUS_TEXTURE_UNIT_STATE
exception:
  IndexOutOfBoundsException - if index < 0 or index > 2
exception:
  IllegalArgumentException - if srcis a value other than COMBINE_OBJECT_COLOR,COMBINE_TEXTURE_COLOR, COMBINE_CONSTANT_COLOR, orCOMBINE_PREVIOUS_TEXTURE_UNIT_STATE
exception:
  CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph
See Also:   Canvas3D.queryProperties
since:
   Java 3D 1.3



setCombineRgbFunction
public void setCombineRgbFunction(int index, int function)(Code)
Sets the function for the rgb components of the specified color operand for this object.
Parameters:
  index - color operand in the combine operation
Parameters:
  function - the color function, one of: COMBINE_SRC_COLOR,COMBINE_ONE_MINUS_SRC_COLOR, COMBINE_SRC_ALPHA, orCOMBINE_ONE_MINUS_SRC_ALPHA
exception:
  IndexOutOfBoundsException - if index < 0 or index > 2
exception:
  IllegalArgumentException - if functionis a value other than COMBINE_SRC_COLOR,COMBINE_ONE_MINUS_SRC_COLOR, COMBINE_SRC_ALPHA, orCOMBINE_ONE_MINUS_SRC_ALPHA
exception:
  CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph
See Also:   Canvas3D.queryProperties
since:
   Java 3D 1.3



setCombineRgbMode
public void setCombineRgbMode(int combineMode)(Code)
Sets the combine mode for the rgb components of the output color for this object.
Parameters:
  combineMode - the combine mode, one of: COMBINE_REPLACE,COMBINE_MODULATE, COMBINE_ADD, COMBINE_ADD_SIGNED, COMBINE_SUBTRACT,COMBINE_INTERPOLATE, or COMBINE_DOT3
exception:
  IllegalArgumentException - if combineModeis a value other than COMBINE_REPLACE,COMBINE_MODULATE, COMBINE_ADD, COMBINE_ADD_SIGNED, COMBINE_SUBTRACT,COMBINE_INTERPOLATE, or COMBINE_DOT3
exception:
  CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph
See Also:   Canvas3D.queryProperties
since:
   Java 3D 1.3



setCombineRgbScale
public void setCombineRgbScale(int scale)(Code)
Sets the scale factor for the rgb components of the output color for this object.
Parameters:
  scale - the scale factor for the rgb components of the output color. It must be one of the following: 1, 2, or 4.
exception:
  IllegalArgumentException - if scale is avalue other than 1, 2, or 4.
exception:
  CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph
See Also:   Canvas3D.queryProperties
since:
   Java 3D 1.3



setCombineRgbSource
public void setCombineRgbSource(int index, int src)(Code)
Sets the source for the rgb components of the specified color operand for this object.
Parameters:
  index - color operand in the combine operation
Parameters:
  src - the color source, one of: COMBINE_OBJECT_COLOR,COMBINE_TEXTURE_COLOR, COMBINE_CONSTANT_COLOR, orCOMBINE_PREVIOUS_TEXTURE_UNIT_STATE
exception:
  IndexOutOfBoundsException - if index < 0 or index > 2
exception:
  IllegalArgumentException - if srcis a value other than COMBINE_OBJECT_COLOR,COMBINE_TEXTURE_COLOR, COMBINE_CONSTANT_COLOR, orCOMBINE_PREVIOUS_TEXTURE_UNIT_STATE
exception:
  CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph
See Also:   Canvas3D.queryProperties
since:
   Java 3D 1.3



setPerspectiveCorrectionMode
public void setPerspectiveCorrectionMode(int mode)(Code)
Sets perspective correction mode to be used for color and/or texture coordinate interpolation. A value of NICEST indicates that perspective correction should be performed and that the highest quality method should be used. A value of FASTEST indicates that the most efficient perspective correction method should be used.
Parameters:
  mode - one of NICEST or FASTESTThe default value is NICEST.
exception:
  CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph
exception:
  IllegalArgumentException - if mode value is otherthan FASTEST or NICEST.



setTextureBlendColor
public void setTextureBlendColor(Color4f textureBlendColor)(Code)
Sets the texture constant color for this texture attributes object.
Parameters:
  textureBlendColor - the texture constant color
exception:
  CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph



setTextureBlendColor
public void setTextureBlendColor(float r, float g, float b, float a)(Code)
Sets the texture blend color for this appearance component object.
Parameters:
  r - the red component of the color
Parameters:
  g - the green component of the color
Parameters:
  b - the blue component of the color
Parameters:
  a - the alpha component of the color
exception:
  CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph



setTextureColorTable
public void setTextureColorTable(int[][] table)(Code)
Sets the texture color table from the specified table. The individual integer array elements are copied. The array is indexed first by color component (r, g, b, and a, respectively) and then by color value; table.length defines the number of color components and table[0].length defines the texture color table size. If the table is non-null, the number of color components must either be 3, for rgb data, or 4, for rgba data. The size of each array for each color component must be the same and must be a power of 2. If table is null or if the texture color table size is 0, the texture color table is disabled. If the texture color table size is greater than the device-dependent maximum texture color table size for a particular Canvas3D, the texture color table is ignored for that canvas.

When enabled, the texture color table is applied after the texture filtering operation and before texture application. Each of the r, g, b, and a components are clamped to the range [0,1], multiplied by textureColorTableSize-1, and rounded to the nearest integer. The resulting value for each component is then used as an index into the respective table for that component. If the texture color table contains 3 components, alpha is passed through unmodified.
Parameters:
  table - the new texture color table
exception:
  IllegalArgumentException - if table.lengthis not 3 or 4, or if the arrays for each component are not allthe same length, or if the texture color table sizeis not a power of 2
exception:
  CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph
See Also:   Canvas3D.queryProperties
since:
   Java 3D 1.2




setTextureMode
public void setTextureMode(int textureMode)(Code)
Sets the texture mode parameter for this appearance component object.
Parameters:
  textureMode - the texture mode, one of: MODULATE,DECAL, BLEND, REPLACE, orCOMBINE
exception:
  IllegalArgumentException - if textureModeis a value other than MODULATE,DECAL, BLEND, REPLACE, orCOMBINE
See Also:   Canvas3D.queryProperties



setTextureTransform
public void setTextureTransform(Transform3D transform)(Code)
Sets the texture transform object used to transform texture coordinates. A copy of the specified Transform3D object is stored in this TextureAttributes object.
Parameters:
  transform - the new transform object
exception:
  CapabilityNotSetException - if the method is calledwhen this object is part of live or compiled scene graph.



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.