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

PickInfo
public class PickInfo extends Object (Code)
The PickInfo object contains the computed information about a pick hit. The detailed information about each intersection of the PickShape with the picked Node can be inquired. The PickInfo object is constructed with basic information and more detailed information can be generated by setting the appropriate mask to the flag argument in the pick methods of BranchGroup and Locale.


See Also:   Locale
See Also:   BranchGroup
See Also:   
since:
   Java 3D 1.4


Inner Class :public class IntersectionInfo extends Object

Field Summary
final public static  intALL_GEOM_INFO
     Specifies that this PickInfo returns all the closest intersection geometry informations.
final public static  intCLOSEST_DISTANCE
     Specifies that this PickInfo returns the closest intersection distance.
final public static  intCLOSEST_GEOM_INFO
     Specifies that this PickInfo returns only the closest intersection geometry information.
final public static  intCLOSEST_INTERSECTION_POINT
     Specifies that this PickInfo returns the closest intersection point.
final public static  intLOCAL_TO_VWORLD
     Specifies that this PickInfo returns the computed local to vworld transform.
final public static  intNODE
     Specifies that this PickInfo returns the computed intersected Node object.
final static  intPICK_ALL
    
final static  intPICK_ANY
    
final public static  intPICK_BOUNDS
     Specifies a Pick using the bounds of the pickable nodes.
final public static  intPICK_GEOMETRY
     Specifies a Pick using the geometry of the pickable nodes.
final public static  intSCENEGRAPHPATH
     Specifies that this PickInfo returns the computed SceneGraphPath object.

Constructor Summary
 PickInfo()
    

Method Summary
 IntersectionInfocreateIntersectionInfo()
    
public  doublegetClosestDistance()
     Retrieves the distance between the start point of the pickShape and the closest intersection point.
public  Point3dgetClosestIntersectionPoint()
     Retrieves the reference to the closest intersection point in this PickInfo object.
public  IntersectionInfo[]getIntersectionInfos()
     Retrieves the reference to the array of intersection results in this PickInfo object.
public  Transform3DgetLocalToVWorld()
     Retrieves the reference to the LocalToVworld transform of the picked node in this PickInfo object.
 Transform3DgetLocalToVWorldRef()
    
public  NodegetNode()
     Retrieves the reference to the picked node, either a Shape3D or a Morph, in this PickInfo object.
 NodegetNodeRef()
    
static  ArrayListgetPickInfos(ArrayList initpath, BranchGroupRetained bgRetained, GeometryAtom geomAtoms, Locale locale, int flags, int pickType)
     return all PickInfo[] of the geomAtoms.
public  SceneGraphPathgetSceneGraphPath()
     Retrieves the reference to the SceneGraphPath in this PickInfo object.
static  ArrayListinitSceneGraphPath(NodeRetained nodeR)
     Search the path from nodeR up to Locale.
 voidinsertIntersectionInfo(IntersectionInfo iInfo)
    
static  PickInfo[]pick(Object node, GeometryAtom[] geomAtoms, int mode, int flags, PickShape pickShape, int pickType)
    
 voidsetClosestDistance(double cDist)
    
 voidsetClosestIntersectionPoint(Point3d cIPt)
    
 voidsetLocalToVWorld(Transform3D l2vw)
    
 voidsetLocalToVWorldRef(Transform3D l2vwRef)
    
 voidsetNode(Node node)
    
 voidsetNodeRef(Node nodeRef)
    
 voidsetSceneGraphPath(SceneGraphPath sgp)
    
static  voidsortGeomAtoms(GeometryAtom geomAtoms, PickShape shape)
    
 voidsortIntersectionInfoArray(IntersectionInfo[] iInfoArr)
    
static  voidsortPickInfoArray(PickInfo[] pickInfoArr)
    

Field Detail
ALL_GEOM_INFO
final public static int ALL_GEOM_INFO(Code)
Specifies that this PickInfo returns all the closest intersection geometry informations.



CLOSEST_DISTANCE
final public static int CLOSEST_DISTANCE(Code)
Specifies that this PickInfo returns the closest intersection distance.



CLOSEST_GEOM_INFO
final public static int CLOSEST_GEOM_INFO(Code)
Specifies that this PickInfo returns only the closest intersection geometry information.



CLOSEST_INTERSECTION_POINT
final public static int CLOSEST_INTERSECTION_POINT(Code)
Specifies that this PickInfo returns the closest intersection point.



LOCAL_TO_VWORLD
final public static int LOCAL_TO_VWORLD(Code)
Specifies that this PickInfo returns the computed local to vworld transform.



NODE
final public static int NODE(Code)
Specifies that this PickInfo returns the computed intersected Node object.



PICK_ALL
final static int PICK_ALL(Code)



PICK_ANY
final static int PICK_ANY(Code)



PICK_BOUNDS
final public static int PICK_BOUNDS(Code)
Specifies a Pick using the bounds of the pickable nodes.



PICK_GEOMETRY
final public static int PICK_GEOMETRY(Code)
Specifies a Pick using the geometry of the pickable nodes.



SCENEGRAPHPATH
final public static int SCENEGRAPHPATH(Code)
Specifies that this PickInfo returns the computed SceneGraphPath object.




Constructor Detail
PickInfo
PickInfo()(Code)
PickInfo Constructor




Method Detail
createIntersectionInfo
IntersectionInfo createIntersectionInfo()(Code)



getClosestDistance
public double getClosestDistance()(Code)
Retrieves the distance between the start point of the pickShape and the closest intersection point. the closest distance in double, or NaN if flag is not set with CLOSEST_INTERSECTION_POINT.Note : If this PickInfo object is returned by either pickClosest or pickAllSorted method, the returnvalue is the closest distance in double even if flag is not set with CLOSET_INTERSECTION_POINT.
See Also:   Locale
See Also:   BranchGroup



getClosestIntersectionPoint
public Point3d getClosestIntersectionPoint()(Code)
Retrieves the reference to the closest intersection point in this PickInfo object. the closest intersection point, or null if flag is not set with CLOSEST_INTERSECTION_POINT.
See Also:   Locale
See Also:   BranchGroup



getIntersectionInfos
public IntersectionInfo[] getIntersectionInfos()(Code)
Retrieves the reference to the array of intersection results in this PickInfo object. an array of 1 IntersectionInfo object if flag is to set CLOSEST_GEOM_INFO,or an array of N IntersectionInfo objects containing all intersections of the picked node in sorted order if flag is to set ALL_GEOM_INFO, or null if neither bit is set.
See Also:   Locale
See Also:   BranchGroup



getLocalToVWorld
public Transform3D getLocalToVWorld()(Code)
Retrieves the reference to the LocalToVworld transform of the picked node in this PickInfo object. the local to vworld transform, or null if flag is not set with LOCAL_TO_VWORLD.
See Also:   Locale
See Also:   BranchGroup



getLocalToVWorldRef
Transform3D getLocalToVWorldRef()(Code)



getNode
public Node getNode()(Code)
Retrieves the reference to the picked node, either a Shape3D or a Morph, in this PickInfo object. the picked leaf node object, or null if flag is not set with NODE.
See Also:   Locale
See Also:   BranchGroup



getNodeRef
Node getNodeRef()(Code)



getPickInfos
static ArrayList getPickInfos(ArrayList initpath, BranchGroupRetained bgRetained, GeometryAtom geomAtoms, Locale locale, int flags, int pickType)(Code)
return all PickInfo[] of the geomAtoms. If initpath is null, the path is search from geomAtom Shape3D/Morph Node up to Locale (assume the same locale). Otherwise, the path is search up to node or null is return if it is not hit.



getSceneGraphPath
public SceneGraphPath getSceneGraphPath()(Code)
Retrieves the reference to the SceneGraphPath in this PickInfo object. the SceneGraphPath object, or null if flag is not set with SCENEGRAPHPATH.
See Also:   Locale
See Also:   BranchGroup



initSceneGraphPath
static ArrayList initSceneGraphPath(NodeRetained nodeR)(Code)
Search the path from nodeR up to Locale. Return the search path as ArrayList if found. Note that the locale will not insert into path.



insertIntersectionInfo
void insertIntersectionInfo(IntersectionInfo iInfo)(Code)



pick
static PickInfo[] pick(Object node, GeometryAtom[] geomAtoms, int mode, int flags, PickShape pickShape, int pickType)(Code)



setClosestDistance
void setClosestDistance(double cDist)(Code)



setClosestIntersectionPoint
void setClosestIntersectionPoint(Point3d cIPt)(Code)



setLocalToVWorld
void setLocalToVWorld(Transform3D l2vw)(Code)



setLocalToVWorldRef
void setLocalToVWorldRef(Transform3D l2vwRef)(Code)



setNode
void setNode(Node node)(Code)



setNodeRef
void setNodeRef(Node nodeRef)(Code)



setSceneGraphPath
void setSceneGraphPath(SceneGraphPath sgp)(Code)



sortGeomAtoms
static void sortGeomAtoms(GeometryAtom geomAtoms, PickShape shape)(Code)
Sort the GeometryAtoms distance from shape in ascending order geomAtoms.length must be >= 1



sortIntersectionInfoArray
void sortIntersectionInfoArray(IntersectionInfo[] iInfoArr)(Code)



sortPickInfoArray
static void sortPickInfoArray(PickInfo[] pickInfoArr)(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.