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


java.lang.Object
   com.db.hanim.Joint

Joint
public class Joint extends Object (Code)
This class is to implement the H-Anim proposed Joint. It's implementation for Java3D has been mimicked on the VRML97 field description. We make a little amendment to H-Anim for uLimit and lLimit: H-Anim states that "the default values for each of these fields is [], which means that the joint is assumed to be unconstrained." However, this is problematic since we can't constrain Y axis (or Z axis) without setting a default value for the X axis (unless we use a hashtable, which sounds absurd in this context). Here, we propose that there should only be valid values between -2*PI and +2*PI. Any other value should be treated as if the joint was unconstrained on this axis.
author:
   Silvere Martin-Michiellot
version:
   1.1


Field Summary
final public static  intHumanoidRoot
    
final public static  intNonStandard
    
protected  Point3dcenter
    
protected  HashSetchildren
    
protected  StringjointName
    
protected  Double[]lLimit
    
final public static  intl_acromioclavicular
    
final public static  intl_ankle
    
final public static  intl_elbow
    
final public static  intl_eyeball_joint
    
final public static  intl_eyebrow_joint
    
final public static  intl_eyelid_joint
    
final public static  intl_hip
    
final public static  intl_index0
    
final public static  intl_index1
    
final public static  intl_index2
    
final public static  intl_index3
    
final public static  intl_knee
    
final public static  intl_metatarsal
    
final public static  intl_middle0
    
final public static  intl_middle1
    
final public static  intl_middle2
    
final public static  intl_middle3
    
final public static  intl_midtarsal
    
final public static  intl_pinky0
    
final public static  intl_pinky1
    
final public static  intl_pinky2
    
final public static  intl_pinky3
    
final public static  intl_ring0
    
final public static  intl_ring1
    
final public static  intl_ring2
    
final public static  intl_ring3
    
final public static  intl_shoulder
    
final public static  intl_sternoclavicular
    
final public static  intl_subtalar
    
final public static  intl_thumb1
    
final public static  intl_thumb2
    
final public static  intl_thumb3
    
final public static  intl_wrist
    
protected  AxisAngle4dlimitOrientation
    
final public static  intr_acromioclavicular
    
final public static  intr_ankle
    
final public static  intr_elbow
    
final public static  intr_eyeball_joint
    
final public static  intr_eyebrow_joint
    
final public static  intr_eyelid_joint
    
final public static  intr_hip
    
final public static  intr_index0
    
final public static  intr_index1
    
final public static  intr_index2
    
final public static  intr_index3
    
final public static  intr_knee
    
final public static  intr_metatarsal
    
final public static  intr_middle0
    
final public static  intr_middle1
    
final public static  intr_middle2
    
final public static  intr_middle3
    
final public static  intr_midtarsal
    
final public static  intr_pinky0
    
final public static  intr_pinky1
    
final public static  intr_pinky2
    
final public static  intr_pinky3
    
final public static  intr_ring0
    
final public static  intr_ring1
    
final public static  intr_ring2
    
final public static  intr_ring3
    
final public static  intr_shoulder
    
final public static  intr_sternoclavicular
    
final public static  intr_subtalar
    
final public static  intr_thumb1
    
final public static  intr_thumb2
    
final public static  intr_thumb3
    
final public static  intr_wrist
    
final public static  intsacroiliac
    
protected  Segmentsegment
    
final public static  intskullbase
    
protected  Double[]stiffness
    
final public static  inttemporomandibular
    
protected  Transform3Dtransform3D
    
protected  Double[]uLimit
    
final public static  doubleunconstrained
    
final public static  intvc1
    
final public static  intvc2
    
final public static  intvc3
    
final public static  intvc4
    
final public static  intvc5
    
final public static  intvc6
    
final public static  intvc7
    
final public static  intvl1
    
final public static  intvl2
    
final public static  intvl3
    
final public static  intvl4
    
final public static  intvl5
    
final public static  intvt1
    
final public static  intvt10
    
final public static  intvt11
    
final public static  intvt12
    
final public static  intvt2
    
final public static  intvt3
    
final public static  intvt4
    
final public static  intvt5
    
final public static  intvt6
    
final public static  intvt7
    
final public static  intvt8
    
final public static  intvt9
    

Constructor Summary
public  Joint(String jointName)
    

Method Summary
public  voidaddChild(Joint joint)
     Adds a child to this Joint.
public  voidaddJoint(Joint joint)
     Adds joint to the children list of this Joint.
public  voidgetCenter(Point3d point3d)
    
public  HashSetgetChildren()
    
public  SegmentgetCorrespondingSegment()
     Builds up a new Segment using the official Segment that corresponds to that Joint.
public  intgetCorrespondingSegmentIdentifier()
     Gets the static identifier of the Segment that corresponds to this Joint.
public  StringgetCorrespondingSegmentName()
     Gets the official Segment name of the Segment that corresponds to this Joint.
public  voidgetDefaultCenter(Point3d point3d)
     Gets the Point3d that defines the overall center offset default value proposed by H-Anim for this Joint.
public static  StringgetJointIdentifierName(int value)
     Gets the official Joint name for the static identifier passed as argument.
public static  intgetJointIdentifierNumber(String jointName)
     Gets the static identifier for the String name passed as argument.
public  Double[]getLLimit()
    
public  AxisAngle4dgetLimitOrientation()
    
public  StringgetName()
    
public  SegmentgetSegment()
    
public  Double[]getStiffness()
    
public  voidgetTransform(Transform3D transform3D)
     Gets the Transform3D used for this Joint.
public  Double[]getULimit()
    
public  voidremoveChild(Joint joint)
     Removes a child from this Joint.
public  voidremoveJoint(Joint joint)
     Removes the Joint from the children list of this Joint.
public  voidsetCenter(Point3d point3d)
     Sets the offset center for the Joint.
public  voidsetLLimit(Double[] lLimit)
    
public  voidsetLimitOrientation(AxisAngle4d limitOrientation)
    
public  voidsetName(String jointName)
    
public  voidsetSegment(Segment segment)
     Sets the corresponding Segment of this Joint.
public  voidsetStiffness(Double[] stiffness)
    
public  voidsetTransform(Transform3D jointTransform)
     Sets the Transform3D used for this Joint.
public  voidsetULimit(Double[] uLimit)
    
public  voiduseCorrespondingSegment()
     Builds up a new Segment using the official Segment that corresponds to that Joint.
public  voiduseDefaultCenter()
     Sets the default center used for this Joint to the default value proposed by H-Anim.
public  voiduseDefaultCenterAsTranslation()
     Sets the translation used for this Joint to the default value OF THE CENTER proposed by H-Anim.

Field Detail
HumanoidRoot
final public static int HumanoidRoot(Code)



NonStandard
final public static int NonStandard(Code)



center
protected Point3d center(Code)



children
protected HashSet children(Code)



jointName
protected String jointName(Code)



lLimit
protected Double[] lLimit(Code)



l_acromioclavicular
final public static int l_acromioclavicular(Code)



l_ankle
final public static int l_ankle(Code)



l_elbow
final public static int l_elbow(Code)



l_eyeball_joint
final public static int l_eyeball_joint(Code)



l_eyebrow_joint
final public static int l_eyebrow_joint(Code)



l_eyelid_joint
final public static int l_eyelid_joint(Code)



l_hip
final public static int l_hip(Code)



l_index0
final public static int l_index0(Code)



l_index1
final public static int l_index1(Code)



l_index2
final public static int l_index2(Code)



l_index3
final public static int l_index3(Code)



l_knee
final public static int l_knee(Code)



l_metatarsal
final public static int l_metatarsal(Code)



l_middle0
final public static int l_middle0(Code)



l_middle1
final public static int l_middle1(Code)



l_middle2
final public static int l_middle2(Code)



l_middle3
final public static int l_middle3(Code)



l_midtarsal
final public static int l_midtarsal(Code)



l_pinky0
final public static int l_pinky0(Code)



l_pinky1
final public static int l_pinky1(Code)



l_pinky2
final public static int l_pinky2(Code)



l_pinky3
final public static int l_pinky3(Code)



l_ring0
final public static int l_ring0(Code)



l_ring1
final public static int l_ring1(Code)



l_ring2
final public static int l_ring2(Code)



l_ring3
final public static int l_ring3(Code)



l_shoulder
final public static int l_shoulder(Code)



l_sternoclavicular
final public static int l_sternoclavicular(Code)



l_subtalar
final public static int l_subtalar(Code)



l_thumb1
final public static int l_thumb1(Code)



l_thumb2
final public static int l_thumb2(Code)



l_thumb3
final public static int l_thumb3(Code)



l_wrist
final public static int l_wrist(Code)



limitOrientation
protected AxisAngle4d limitOrientation(Code)



r_acromioclavicular
final public static int r_acromioclavicular(Code)



r_ankle
final public static int r_ankle(Code)



r_elbow
final public static int r_elbow(Code)



r_eyeball_joint
final public static int r_eyeball_joint(Code)



r_eyebrow_joint
final public static int r_eyebrow_joint(Code)



r_eyelid_joint
final public static int r_eyelid_joint(Code)



r_hip
final public static int r_hip(Code)



r_index0
final public static int r_index0(Code)



r_index1
final public static int r_index1(Code)



r_index2
final public static int r_index2(Code)



r_index3
final public static int r_index3(Code)



r_knee
final public static int r_knee(Code)



r_metatarsal
final public static int r_metatarsal(Code)



r_middle0
final public static int r_middle0(Code)



r_middle1
final public static int r_middle1(Code)



r_middle2
final public static int r_middle2(Code)



r_middle3
final public static int r_middle3(Code)



r_midtarsal
final public static int r_midtarsal(Code)



r_pinky0
final public static int r_pinky0(Code)



r_pinky1
final public static int r_pinky1(Code)



r_pinky2
final public static int r_pinky2(Code)



r_pinky3
final public static int r_pinky3(Code)



r_ring0
final public static int r_ring0(Code)



r_ring1
final public static int r_ring1(Code)



r_ring2
final public static int r_ring2(Code)



r_ring3
final public static int r_ring3(Code)



r_shoulder
final public static int r_shoulder(Code)



r_sternoclavicular
final public static int r_sternoclavicular(Code)



r_subtalar
final public static int r_subtalar(Code)



r_thumb1
final public static int r_thumb1(Code)



r_thumb2
final public static int r_thumb2(Code)



r_thumb3
final public static int r_thumb3(Code)



r_wrist
final public static int r_wrist(Code)



sacroiliac
final public static int sacroiliac(Code)



segment
protected Segment segment(Code)



skullbase
final public static int skullbase(Code)



stiffness
protected Double[] stiffness(Code)



temporomandibular
final public static int temporomandibular(Code)



transform3D
protected Transform3D transform3D(Code)



uLimit
protected Double[] uLimit(Code)



unconstrained
final public static double unconstrained(Code)



vc1
final public static int vc1(Code)



vc2
final public static int vc2(Code)



vc3
final public static int vc3(Code)



vc4
final public static int vc4(Code)



vc5
final public static int vc5(Code)



vc6
final public static int vc6(Code)



vc7
final public static int vc7(Code)



vl1
final public static int vl1(Code)



vl2
final public static int vl2(Code)



vl3
final public static int vl3(Code)



vl4
final public static int vl4(Code)



vl5
final public static int vl5(Code)



vt1
final public static int vt1(Code)



vt10
final public static int vt10(Code)



vt11
final public static int vt11(Code)



vt12
final public static int vt12(Code)



vt2
final public static int vt2(Code)



vt3
final public static int vt3(Code)



vt4
final public static int vt4(Code)



vt5
final public static int vt5(Code)



vt6
final public static int vt6(Code)



vt7
final public static int vt7(Code)



vt8
final public static int vt8(Code)



vt9
final public static int vt9(Code)




Constructor Detail
Joint
public Joint(String jointName)(Code)
Constructs a new Joint
Parameters:
  jointName - the name of the Joint that describes in a human readable manner the Joint




Method Detail
addChild
public void addChild(Joint joint)(Code)
Adds a child to this Joint.
Parameters:
  joint - the Joint to be added to the hierarchy as a child of this Joint
exception:
  IllegalArgumentException - if this joint is an official Joint and the Joint to be added is a non standard Joint or if both Joints are official but joint is not an official child of this Joint.
See Also:   com.db.hanim.Joint.addJoint(Joint)



addJoint
public void addJoint(Joint joint)(Code)
Adds joint to the children list of this Joint. Identical to com.db.hanim.Joint#addChild(Joint)
Parameters:
  joint - the Joint to be added from the children list of this Joint.
exception:
  IllegalArgumentException - if this joint is an official Joint and the Joint to be added is a non standard Joint or if both Joints are official but joint is not an official child of this Joint.



getCenter
public void getCenter(Point3d point3d)(Code)
Gets the Point3d that defines the overall center offset postion of the Joint
Parameters:
  point3D - the Point3D to put the center into for this Joint
See Also:   com.db.hanim.Joint.setCenter(Point3d)



getChildren
public HashSet getChildren()(Code)
Retrieves all children of this Joint the hashtable of all direct children of this Joint



getCorrespondingSegment
public Segment getCorrespondingSegment()(Code)
Builds up a new Segment using the official Segment that corresponds to that Joint. Does not assign the Segment to this Joint. the Segment that corresponds to that Joint.



getCorrespondingSegmentIdentifier
public int getCorrespondingSegmentIdentifier()(Code)
Gets the static identifier of the Segment that corresponds to this Joint. If no Segmemt is found matching the argument (the Joint isnot an official Joint) then the identifier Segment.NonStandard is returned the static identifier for the Segment that corresponds.



getCorrespondingSegmentName
public String getCorrespondingSegmentName()(Code)
Gets the official Segment name of the Segment that corresponds to this Joint. If no Segmemt is found matching the argument (the Joint is not an official Joint) then an empty String is returned the name for the Segment that corresponds.



getDefaultCenter
public void getDefaultCenter(Point3d point3d)(Code)
Gets the Point3d that defines the overall center offset default value proposed by H-Anim for this Joint.
Parameters:
  point3D - the Point3D to put the center into for this Joint
See Also:   com.db.hanim.Joint.useDefaultCenter



getJointIdentifierName
public static String getJointIdentifierName(int value)(Code)
Gets the official Joint name for the static identifier passed as argument. If no Joint is found matching the argument then a new empty String is returned.
Parameters:
  the - static identifier for the Joint named jointName String the name of the Joint to get the identifier from
See Also:   com.db.hanim.Joint.getJointIdentifierNumber(String)



getJointIdentifierNumber
public static int getJointIdentifierNumber(String jointName)(Code)
Gets the static identifier for the String name passed as argument. If no Joint is found matching the argument then the identifier Joint.NonStandard is returned
Parameters:
  String - the name of the Joint to get the identifier from the static identifier for the Joint named jointName
See Also:   com.db.hanim.Joint.getJointIdentifierName(int)



getLLimit
public Double[] getLLimit()(Code)
Gets the array of Double used as lower limit the array of Double that is the lower limit for this Joint



getLimitOrientation
public AxisAngle4d getLimitOrientation()(Code)
Gets the AxisAngle4d used as LimitOrientation the AxisAngle4d defining the LimitOrientation for this Joint



getName
public String getName()(Code)
Gets the Joint name that describes in a human readable manner the Joint the String name of this Joint



getSegment
public Segment getSegment()(Code)
Retrieves the Segment corresponding to this Joint the Segment that goes with this Joint



getStiffness
public Double[] getStiffness()(Code)
Sets the array of Double used as stiffness the array of Double that is the stiffness for this Joint



getTransform
public void getTransform(Transform3D transform3D)(Code)
Gets the Transform3D used for this Joint.
Parameters:
  transform3D - the Transform3D of this Joint



getULimit
public Double[] getULimit()(Code)
Gets the array of Double used as upper limit the array of Double that is the upper limit for this Joint



removeChild
public void removeChild(Joint joint)(Code)
Removes a child from this Joint.
Parameters:
  joint - the Joint to be removed from the children list of this Joint
See Also:   com.db.hanim.Joint.removeJoint(String)



removeJoint
public void removeJoint(Joint joint)(Code)
Removes the Joint from the children list of this Joint. Identical to com.db.hanim.Joint#removeChild()
Parameters:
  joint - the Joint to be removed from the children list of this Joint.



setCenter
public void setCenter(Point3d point3d)(Code)
Sets the offset center for the Joint. According to VRML97 spec, Given a 3-dimensional point P and Transform node, P is transformed into point P' in its parent's coordinate system by a series of intermediate transformations. In matrix transformation notation, where C (center), SR (scaleOrientation), T (translation), R (rotation), and S (scale) are the equivalent transformation matrices, then P' = T × C × R × SR × S × -SR × -C × P unfortunately, Java3D doesn't defines all these fields and works "only" with 4x4 matrix a 4x4 matrix allows to perform translations, rotations, and scaling and shear effects. but no offset centering that we have to simulate
Parameters:
  point3d - the Point3d to put the offset center into for this Joint
See Also:   com.db.hanim.Joint.setTransform(Transform3D)



setLLimit
public void setLLimit(Double[] lLimit)(Code)
Sets the array of Double used as lower limit
Parameters:
  the - 3 element array of Double that is the lower limit for this Joint



setLimitOrientation
public void setLimitOrientation(AxisAngle4d limitOrientation)(Code)
Sets the AxisAngle4d used as LimitOrientation
Parameters:
  AxisAngle4d - the AxisAngle4d used as used as LimitOrientation for this Joint



setName
public void setName(String jointName)(Code)
Sets the Joint name that describes in a human readable manner the Joint
Parameters:
  jointName - the name of this Joint



setSegment
public void setSegment(Segment segment)(Code)
Sets the corresponding Segment of this Joint.
Parameters:
  segment - the Segment to be associated with this Joint
exception:
  IllegalArgumentException - if joint is an official Joint and segment is not the corresponding Segment.



setStiffness
public void setStiffness(Double[] stiffness)(Code)
Sets the array of Double used as stiffness the 3 element array of Double that is the stiffness for this Joint



setTransform
public void setTransform(Transform3D jointTransform)(Code)
Sets the Transform3D used for this Joint.
Parameters:
  transform3D - the Transform3D of this Joint



setULimit
public void setULimit(Double[] uLimit)(Code)
Sets the array of Double used as upper limit the 3 element array of Double that is the upper limit for this Joint



useCorrespondingSegment
public void useCorrespondingSegment()(Code)
Builds up a new Segment using the official Segment that corresponds to that Joint. Use getSegment() to get the resulting Segment is it can be built.



useDefaultCenter
public void useDefaultCenter()(Code)
Sets the default center used for this Joint to the default value proposed by H-Anim.



useDefaultCenterAsTranslation
public void useDefaultCenterAsTranslation()(Code)
Sets the translation used for this Joint to the default value OF THE CENTER proposed by H-Anim. This is to smooth up transition to Java3D. Note that only the translation component of the Transform3D that is set.



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.