Java Doc for CubicSplineSegment.java in  » 6.0-JDK-Modules » java-3d » com » sun » j3d » utils » behaviors » interpolators » 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.sun.j3d.utils.behaviors.interpolators 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.j3d.utils.behaviors.interpolators.CubicSplineSegment

CubicSplineSegment
public class CubicSplineSegment (Code)
The CubicSplineSegment class creates the representation of a TCB (Kochanek-Bartels Spline). This class takes 4 key frames as its input (using TCBKeyFrame). If interpolating between the ith and (i+1)th key frame then the four key frames that need to be specified are the (i-1)th, ith, (i+1)th and (i+2)th keyframes in order. The CubicSegmentClass then pre-computes the hermite interpolation basis coefficients if the (i+1)th frame has the linear flag set to zero. These are used to calculate the interpolated position, scale and quaternions when they requested by the user using the getInterpolated* methods. If the the (i+1)th frame's linear flag is set to 1 then the class uses linear interpolation to calculate the interpolated position, sccale and quaternions it returns through the getInterpolated* methods.
since:
   Java3D 1.1


Field Summary
 Point3fc0c1c2c3
    
 floatdda
    
 floatddb
    
 floatdsa
    
 floatdsb
    
 Point3fe0e1e2e3
    
 TCBKeyFrame[]keyFrame
    
 floatlength
    
 intlinear
    
final static  doublemodCoeff
    
final static  doublemodRoot
    
 floatone_minus_b_in
    
 floatone_minus_b_out
    
 floatone_minus_c_in
    
 floatone_minus_c_out
    
 floatone_minus_t_in
    
 floatone_minus_t_out
    
 floatone_plus_b_in
    
 floatone_plus_b_out
    
 floatone_plus_c_in
    
 floatone_plus_c_out
    

Constructor Summary
 CubicSplineSegment()
    
 CubicSplineSegment(TCBKeyFrame kf0, TCBKeyFrame kf1, TCBKeyFrame kf2, TCBKeyFrame kf3)
     Creates a cubic spline segment between two key frames using the key frames provided.

Method Summary
public  floatcomputeLength(float u)
     Computes the length of the curve at a given point between key frames.
Parameters:
  u - specifies the point between keyframes where 0 <= u <= 1.
public  voidgetInterpolatedPosition(float u, Point3f newPos)
     Computes the interpolated position along the curve at a given point between key frames and returns a Point3f with the interpolated x, y, and z scale components.
public  voidgetInterpolatedPositionVector(float u, Vector3f newPos)
     Computes the interpolated position along the curve at a given point between key frames and returns a Vector3f with the interpolated x, y, and z scale components.
public  voidgetInterpolatedQuaternion(float u, Quat4f newQuat)
     Computes the interpolated quaternion along the curve at a given point between key frames.
public  voidgetInterpolatedScale(float u, Point3f newScale)
     Computes the interpolated scale along the curve at a given point between key frames and returns a Point3f with the interpolated x, y, and z scale components.
public  floatgetInterpolatedValue(float u)
     Computes the ratio of the length of the spline from the ith key frame to the position specified by u to the length of the entire spline segment from the ith key frame to the (i+1) th key frame.

Field Detail
c0c1c2c3
Point3f c0c1c2c3(Code)



dda
float dda(Code)



ddb
float ddb(Code)



dsa
float dsa(Code)



dsb
float dsb(Code)



e0e1e2e3
Point3f e0e1e2e3(Code)



keyFrame
TCBKeyFrame[] keyFrame(Code)



length
float length(Code)



linear
int linear(Code)



modCoeff
final static double modCoeff(Code)



modRoot
final static double modRoot(Code)



one_minus_b_in
float one_minus_b_in(Code)



one_minus_b_out
float one_minus_b_out(Code)



one_minus_c_in
float one_minus_c_in(Code)



one_minus_c_out
float one_minus_c_out(Code)



one_minus_t_in
float one_minus_t_in(Code)



one_minus_t_out
float one_minus_t_out(Code)



one_plus_b_in
float one_plus_b_in(Code)



one_plus_b_out
float one_plus_b_out(Code)



one_plus_c_in
float one_plus_c_in(Code)



one_plus_c_out
float one_plus_c_out(Code)




Constructor Detail
CubicSplineSegment
CubicSplineSegment()(Code)
Default constructor



CubicSplineSegment
CubicSplineSegment(TCBKeyFrame kf0, TCBKeyFrame kf1, TCBKeyFrame kf2, TCBKeyFrame kf3)(Code)
Creates a cubic spline segment between two key frames using the key frames provided. If creating a spline between the ith frame and the (i+1)th frame then send down the (i - 1)th, ith , (i+1)th and the (i+2)th key frames.
Parameters:
  kf0 - (i - 1)th Key Frame
Parameters:
  kf1 - ith Key Frame
Parameters:
  kf2 - (i + 1)th Key Frame
Parameters:
  kf3 - (i + 2)th Key Frame




Method Detail
computeLength
public float computeLength(float u)(Code)
Computes the length of the curve at a given point between key frames.
Parameters:
  u - specifies the point between keyframes where 0 <= u <= 1.



getInterpolatedPosition
public void getInterpolatedPosition(float u, Point3f newPos)(Code)
Computes the interpolated position along the curve at a given point between key frames and returns a Point3f with the interpolated x, y, and z scale components. This routine uses linear interpolation if the (i+1)th key frame's linear value is equal to 1.
Parameters:
  u - specifies the point between keyframes where 0 <= u <= 1.
Parameters:
  newPos - returns the interpolated x,y,z position in a Point3f



getInterpolatedPositionVector
public void getInterpolatedPositionVector(float u, Vector3f newPos)(Code)
Computes the interpolated position along the curve at a given point between key frames and returns a Vector3f with the interpolated x, y, and z scale components. This routine uses linear interpolation if the (i+1)th key frame's linear value is equal to 1.
Parameters:
  u - specifies the point between keyframes where 0 <= u <= 1.
Parameters:
  newPos - returns the interpolated x,y,z position in a Vector3f.



getInterpolatedQuaternion
public void getInterpolatedQuaternion(float u, Quat4f newQuat)(Code)
Computes the interpolated quaternion along the curve at a given point between key frames. This routine uses linear interpolation if the (i+1)th key frame's linear value is equal to 1.
Parameters:
  u - specifies the point between keyframes where 0 <= u <= 1.
Parameters:
  newQuat - returns the value of the interpolated quaternion



getInterpolatedScale
public void getInterpolatedScale(float u, Point3f newScale)(Code)
Computes the interpolated scale along the curve at a given point between key frames and returns a Point3f with the interpolated x, y, and z scale components. This routine uses linear interpolation if the (i+1)th key frame's linear value is equal to 1.
Parameters:
  u - specifies the point between keyframes where 0 <= u <= 1.
Parameters:
  newScale - returns the interpolated x,y,z scale value in a Point3f



getInterpolatedValue
public float getInterpolatedValue(float u)(Code)
Computes the ratio of the length of the spline from the ith key frame to the position specified by u to the length of the entire spline segment from the ith key frame to the (i+1) th key frame. When the (i+1)th key frame's linear value is equal to 1, this is meaninful otherwise it should return u.
Parameters:
  u - specifies the point between keyframes where 0 <= u <= 1. the interpolated ratio



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.