Java Doc for OverlayGroup.java in  » 6.0-JDK-Modules » java-3d » com » db » layers » overlay » 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 » com.db.layers.overlay 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.db.layers.overlay.OverlayGroup

OverlayGroup
public class OverlayGroup extends Object (Code)
This class provides the ability to place scenegraph objects relative to the Java3D Canvas3D. The implementation places a TransformGroup below the parent of the ViewPlatform, and reads all of the parameters in the View Model to determine the transformation from the ViewPlatform coordinate system to the pixel coordinate system. The origin of the Overlay Group is placed in the bottom left hand corner of the Canvas3D. It also allows you to place objects in specified Z.

This supports most (if not all) of the non-headtracking parts of the ViewModel. Currently, Java3D does not support Overlaying in a head-tracked View Model settings because the values of the Sensors get read AFTER the WakeUpOnElapsedFrame behaviors are run, but before the next frame is rendered. This is currently under inquiry with the Sun Java3D team, and hopefully will be fixed in the near future.

Also, when the Canvas3D is moved on the screen, the ImagePlate changes with respect to the ViewPlatform. These events (Window Move and Resize) are captured by AWT events, and therefore since their is a lag time/syncronization error between Java3D and AWT, this produces nasty jitter when these events happen. Better to not move/resize the window when possible.
author:
   Blaine Bell
since:
   JDK1.1
version:
   1.0



Field Summary
 FixedCanvas3D_canvas
    
 Group_group
    
 View_view
    
static  VectorallOverlayGroups
    
 booleanonNearClippingPlaneonNearSet
    
 DimensionscreenSizecanvSize
    
 booleansetup
    
 TransformGrouptg
    
 doublezdist
    

Constructor Summary
public  OverlayGroup()
    

Method Summary
public  voidsetOnNearClippingPlane(boolean b)
    
public  voidsetupOverlayGroup(FixedCanvas3D c, Group groupAboveViewPlatform, Group overlayAnchor)
     Setups this OverlayGroup.
public static  voidupdateAllZValues()
    
public  voidupdatePlacement()
     This function must be called once the View Model is set up properly in order for the overlaygroup to work.
public  voidupdateZValue(double z)
     Allows the Z value to change.

Field Detail
_canvas
FixedCanvas3D _canvas(Code)



_group
Group _group(Code)



_view
View _view(Code)



allOverlayGroups
static Vector allOverlayGroups(Code)



onNearClippingPlaneonNearSet
boolean onNearClippingPlaneonNearSet(Code)



screenSizecanvSize
Dimension screenSizecanvSize(Code)



setup
boolean setup(Code)



tg
TransformGroup tg(Code)



zdist
double zdist(Code)




Constructor Detail
OverlayGroup
public OverlayGroup()(Code)




Method Detail
setOnNearClippingPlane
public void setOnNearClippingPlane(boolean b)(Code)
determines if you want to place the overlaygroup on the Near Clipping plane *



setupOverlayGroup
public void setupOverlayGroup(FixedCanvas3D c, Group groupAboveViewPlatform, Group overlayAnchor)(Code)
Setups this OverlayGroup. Note: This needs to be called in order for the overlaygroup to work properly. Should only be called once.
Parameters:
  c - The FixedCanvas3D that needs to be used in order for this to work properly
Parameters:
  groupAboveViewPlatform - node directly above the ViewPlatform
Parameters:
  overlayAnchor - the group node that is placed in the overlayplane/pixel coordinates



updateAllZValues
public static void updateAllZValues()(Code)



updatePlacement
public void updatePlacement()(Code)
This function must be called once the View Model is set up properly in order for the overlaygroup to work. If any parameters of the View Model Changes, or the Z value is changed, this needs to be called again.



updateZValue
public void updateZValue(double z)(Code)
Allows the Z value to change.
Parameters:
  z - z-value in image-plate coordinates. Negative Z is typically further awayfrom the eyepoint



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.