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

KBCubicSplineSegment
public class KBCubicSplineSegment (Code)
The KBCubicSplineSegment class creates the representation of a Kochanek-Bartel's (also known as the TCB or Tension-Continuity-Bias Spline. This class takes 4 key frames as its input (using KBKeyFrame). 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 KBCubicSegmentClass 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, scale, heading pitch and bank it returns through the getInterpolated* methods.
since:
   Java3D 1.2


Field Summary
 floatb0b1b2b3
    
 Point3fc0c1c2c3
    
 floatdda
    
 floatddb
    
 floatdsa
    
 floatdsb
    
 Point3fe0e1e2e3
    
 floath0h1h2h3
    
 KBKeyFrame[]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
    
 floatp0p1p2p3
    

Constructor Summary
 KBCubicSplineSegment()
    
 KBCubicSplineSegment(KBKeyFrame kf0, KBKeyFrame kf1, KBKeyFrame kf2, KBKeyFrame 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  floatgetInterpolatedBank(float u)
     Computes the interpolated bank along the curve at a given point between key frames and returns the interpolated value as a float 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.
public  floatgetInterpolatedHeading(float u)
     Computes the interpolated heading along the curve at a given point between key frames and returns the interpolated value as a float 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.
public  floatgetInterpolatedPitch(float u)
     Computes the interpolated pitch along the curve at a given point between key frames and returns the interpolated value as a float 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.
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  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
b0b1b2b3
float b0b1b2b3(Code)



c0c1c2c3
Point3f c0c1c2c3(Code)



dda
float dda(Code)



ddb
float ddb(Code)



dsa
float dsa(Code)



dsb
float dsb(Code)



e0e1e2e3
Point3f e0e1e2e3(Code)



h0h1h2h3
float h0h1h2h3(Code)



keyFrame
KBKeyFrame[] 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)



p0p1p2p3
float p0p1p2p3(Code)




Constructor Detail
KBCubicSplineSegment
KBCubicSplineSegment()(Code)



KBCubicSplineSegment
KBCubicSplineSegment(KBKeyFrame kf0, KBKeyFrame kf1, KBKeyFrame kf2, KBKeyFrame 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.



getInterpolatedBank
public float getInterpolatedBank(float u)(Code)
Computes the interpolated bank along the curve at a given point between key frames and returns the interpolated value as a float 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. returns the interpolated bank value



getInterpolatedHeading
public float getInterpolatedHeading(float u)(Code)
Computes the interpolated heading along the curve at a given point between key frames and returns the interpolated value as a float 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. returns the interpolated heading value



getInterpolatedPitch
public float getInterpolatedPitch(float u)(Code)
Computes the interpolated pitch along the curve at a given point between key frames and returns the interpolated value as a float 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. returns the interpolated pitch value



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.



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.