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

TextureBin
class TextureBin extends Object implements ObjectUpdate(Code)
The TextureBin manages a collection of TextureSetting objects. All objects in the TextureBin share the same Texture reference.


Field Summary
final static  intCONTIGUOUS_ACTIVE_UNITS
    
final static  intON_RENDER_BIN_LIST
    
final static  intON_UPDATE_CHECK_LIST
    
final static  intON_UPDATE_LIST
    
final static  intRESORT
    
final static  intSOLE_USER
    
final static  intSOLE_USER_DIRTY_REF
    
final static  intSOLE_USER_DIRTY_TA
    
final static  intSOLE_USER_DIRTY_TC
    
final static  intSOLE_USER_DIRTY_TEXTURE
    
final static  intSOLE_USER_DIRTY_TUS
    
final static  intUSE_DISPLAYLIST
    
final static  intUSE_VERTEXARRAY
    
 HashMapaddOpaqueRMs
    
 HashMapaddTransparentRMs
    
 AppearanceRetainedapp
     If any of the texture reference in an appearance is frequently changable, then a separate TextureBin will be created for this appearance, and this TextureBin is marked as the sole user of this appearance, and app will be pointing to the appearance being referenced by this TextureBin.
 AttributeBinattributeBin
    
 EnvironmentSetenvironmentSet
    
 intequivalent
    
 TextureBinnext
     The references to the next and previous TextureBins in the list.
 intnumEditingRenderMolecules
    
 intnumRenderMolecules
    
 RenderMoleculeopaqueRMList
    
 HashMapopaqueRenderMoleculeMap
    
 TransparentRenderingInfoparentTInfo
    
 TextureBinprev
    
 RenderBinrenderBin
    
 ShaderBinshaderBin
    
 intsoleUserCompDirty
     Sole user node component dirty mask.
 inttbFlag
    
 TextureUnitStateRetained[]texUnitState
    
 RenderMoleculetransparentRMList
    
 HashMaptransparentRenderMoleculeMap
    

Constructor Summary
 TextureBin(TextureUnitStateRetained[] state, AppearanceRetained app, RenderBin rb)
    

Method Summary
 RenderMoleculeaddAll(HashMap renderMoleculeMap, HashMap addRMs, RenderMolecule startList, boolean opaqueList)
     Each list of renderMoledule with the same localToVworld is connect by rm.next and rm.prev. At the end of the list (i.e.
 voidaddRenderMolecule(RenderMolecule r, RenderBin rb)
    
 voidchangeLists(RenderMolecule r)
    
 voidclear()
    
 voiddecrActiveRenderMolecule()
    
 booleanequals(TextureUnitStateRetained state, RenderAtom ra)
    
 voidincrActiveRenderMolecule()
    
 RenderMoleculeinsertRenderMolecule(RenderMolecule r, RenderMolecule renderMoleculeList)
    
 voidmarkDlistAsDirty(RenderMolecule r)
    
 RenderMoleculeremoveOneRM(RenderMolecule r, HashMap allMap, RenderMolecule list)
    
 voidremoveRenderMolecule(RenderMolecule r)
    
 voidrender(Canvas3D cv)
    
 voidrender(Canvas3D cv, Object rlist)
    
 voidrenderList(Canvas3D cv, int pass, Object rlist)
    
 voidrenderList(Canvas3D cv, int pass, RenderMolecule rlist)
    
 voidrenderList(Canvas3D cv, int pass, TransparentRenderingInfo tinfo)
    
 voidreset(TextureUnitStateRetained[] state, AppearanceRetained app)
    
 voidresetTextureState(TextureUnitStateRetained[] state)
    
 voidupdateAttributes(Canvas3D cv)
     This method is called to update the state for this TextureBin.
public  voidupdateNodeComponent()
    
public  voidupdateObject()
    

Field Detail
CONTIGUOUS_ACTIVE_UNITS
final static int CONTIGUOUS_ACTIVE_UNITS(Code)



ON_RENDER_BIN_LIST
final static int ON_RENDER_BIN_LIST(Code)



ON_UPDATE_CHECK_LIST
final static int ON_UPDATE_CHECK_LIST(Code)



ON_UPDATE_LIST
final static int ON_UPDATE_LIST(Code)



RESORT
final static int RESORT(Code)



SOLE_USER
final static int SOLE_USER(Code)



SOLE_USER_DIRTY_REF
final static int SOLE_USER_DIRTY_REF(Code)



SOLE_USER_DIRTY_TA
final static int SOLE_USER_DIRTY_TA(Code)



SOLE_USER_DIRTY_TC
final static int SOLE_USER_DIRTY_TC(Code)



SOLE_USER_DIRTY_TEXTURE
final static int SOLE_USER_DIRTY_TEXTURE(Code)



SOLE_USER_DIRTY_TUS
final static int SOLE_USER_DIRTY_TUS(Code)



USE_DISPLAYLIST
final static int USE_DISPLAYLIST(Code)



USE_VERTEXARRAY
final static int USE_VERTEXARRAY(Code)



addOpaqueRMs
HashMap addOpaqueRMs(Code)
The hashMap of RenderMolecules in this TextureBin this is used in rendering, the key used is localToVworld



addTransparentRMs
HashMap addTransparentRMs(Code)



app
AppearanceRetained app(Code)
If any of the texture reference in an appearance is frequently changable, then a separate TextureBin will be created for this appearance, and this TextureBin is marked as the sole user of this appearance, and app will be pointing to the appearance being referenced by this TextureBin. Otherwise, app is null



attributeBin
AttributeBin attributeBin(Code)
The AttributeBin that this TextureBin resides



environmentSet
EnvironmentSet environmentSet(Code)
The EnvironmentSet that this TextureBin resides



equivalent
int equivalent(Code)
Oring of the equivalence bits for all appearance attrs under this renderBin



next
TextureBin next(Code)
The references to the next and previous TextureBins in the list.



numEditingRenderMolecules
int numEditingRenderMolecules(Code)



numRenderMolecules
int numRenderMolecules(Code)



opaqueRMList
RenderMolecule opaqueRMList(Code)



opaqueRenderMoleculeMap
HashMap opaqueRenderMoleculeMap(Code)



parentTInfo
TransparentRenderingInfo parentTInfo(Code)



prev
TextureBin prev(Code)



renderBin
RenderBin renderBin(Code)
The RenderBin for this object



shaderBin
ShaderBin shaderBin(Code)
The ShaderBin that this TextureBin resides



soleUserCompDirty
int soleUserCompDirty(Code)
Sole user node component dirty mask. The first bit is reserved for node component reference dirty bit. It is set if any of the texture related node component reference in the appearance is being modified. The second bit onwords are for the individual TextureUnitState dirty bit. The ith bit set means the (i-1) texture unit state is modified. Note, this mask only supports 30 texture unit states. If the appearance uses more than 31 texture unit states, then the modification of the 32nd texture unit state and up will have the first bit set, that means the TextureBin will be reset, rather than only the particular texture unit state will be reset.



tbFlag
int tbFlag(Code)



texUnitState
TextureUnitStateRetained[] texUnitState(Code)



transparentRMList
RenderMolecule transparentRMList(Code)



transparentRenderMoleculeMap
HashMap transparentRenderMoleculeMap(Code)




Constructor Detail
TextureBin
TextureBin(TextureUnitStateRetained[] state, AppearanceRetained app, RenderBin rb)(Code)




Method Detail
addAll
RenderMolecule addAll(HashMap renderMoleculeMap, HashMap addRMs, RenderMolecule startList, boolean opaqueList)(Code)
Each list of renderMoledule with the same localToVworld is connect by rm.next and rm.prev. At the end of the list (i.e. rm.next = null) the field rm.nextMap is link to another list (with the same localToVworld). So during rendering it will traverse rm.next until this is null, then follow the .nextMap to access another list and use rm.next to continue until both rm.next and rm.nextMap are null. renderMoleculeMap is use to assist faster location of renderMolecule List with the same localToVWorld. The start of renderMolecule in the list with same localToVworld is insert in renderMoleculeMap. This map is clean up at removeRenderMolecule(). TextureBin also use the map for quick location of renderMolecule with the same localToVworld and attributes in findRenderMolecule().



addRenderMolecule
void addRenderMolecule(RenderMolecule r, RenderBin rb)(Code)
Adds the given RenderMolecule to this TextureBin



changeLists
void changeLists(RenderMolecule r)(Code)



clear
void clear()(Code)
The TextureBin is to be removed from RenderBin, do the proper unsetting of any references



decrActiveRenderMolecule
void decrActiveRenderMolecule()(Code)



equals
boolean equals(TextureUnitStateRetained state, RenderAtom ra)(Code)
This tests if the qiven textureUnitState matches this TextureBin



incrActiveRenderMolecule
void incrActiveRenderMolecule()(Code)



insertRenderMolecule
RenderMolecule insertRenderMolecule(RenderMolecule r, RenderMolecule renderMoleculeList)(Code)



markDlistAsDirty
void markDlistAsDirty(RenderMolecule r)(Code)



removeOneRM
RenderMolecule removeOneRM(RenderMolecule r, HashMap allMap, RenderMolecule list)(Code)



removeRenderMolecule
void removeRenderMolecule(RenderMolecule r)(Code)
Removes the given RenderMolecule from this TextureBin



render
void render(Canvas3D cv)(Code)
Renders this TextureBin



render
void render(Canvas3D cv, Object rlist)(Code)



renderList
void renderList(Canvas3D cv, int pass, Object rlist)(Code)
render a render list



renderList
void renderList(Canvas3D cv, int pass, RenderMolecule rlist)(Code)
render list of RenderMolecule



renderList
void renderList(Canvas3D cv, int pass, TransparentRenderingInfo tinfo)(Code)
render sorted transparent list



reset
void reset(TextureUnitStateRetained[] state, AppearanceRetained app)(Code)
For now, clone everything just like the other NodeComponent



resetTextureState
void resetTextureState(TextureUnitStateRetained[] state)(Code)



updateAttributes
void updateAttributes(Canvas3D cv)(Code)
This method is called to update the state for this TextureBin. This is only applicable in the single-pass case. Multi-pass render will have to take care of its own state update.



updateNodeComponent
public void updateNodeComponent()(Code)
updateNodeComponent is called from RenderBin to update the clone copy of the sole user node component in TextureBin when the corresponding node component is being modified



updateObject
public void updateObject()(Code)



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.