TPTP 4.6.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.igc.alg.internal
Class SplineAlg

java.lang.Object
  extended by org.eclipse.tptp.platform.report.igc.alg.internal.SplineAlg
All Implemented Interfaces:
IAlg
Direct Known Subclasses:
Spline3Alg, Spline4Alg, SplineNAlg

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public abstract class SplineAlg
extends java.lang.Object
implements IAlg

SplineAlg is an abstract class for common code and definition for spline algorithm. spline curve.

See Also:
and Spline4Alg

Field Summary
protected  int curr_index_
          Deprecated.  
protected static byte F_HULL
          Deprecated.  
protected static byte F_POINTS_VALID
          Deprecated.  
protected static byte F_TGT_SEGMENT_CHANGED
          Deprecated.  
protected  byte flags_
          Deprecated.  
protected  LineAlg la_
          Deprecated.  
protected static int MAX_LEVEL
          Deprecated.  
protected  int num_points_
          Deprecated.  
protected  int[] points_
          Deprecated.  
protected  byte state_
          Deprecated.  
protected  double tgx_
          Deprecated.  
protected  double tgy_
          Deprecated.  
 
Constructor Summary
SplineAlg()
          Deprecated.  
 
Method Summary
 void backTangent(IVector vector)
          Deprecated. fill in vector the back tangent at last generated point( must call nextPoint() before and check nextPoint() return true).
 void frontTangent(IVector vector)
          Deprecated. fill in vector the front tangent at last generated point( must call nextPoint() before and check nextPoint() return true).
 int getX()
          Deprecated.  
 int getY()
          Deprecated.  
 boolean nextPoint(IPoint point)
          Deprecated.  
protected abstract  void prepareDPoints()
          Deprecated. must create and set dpoints_ array with segments to generate
 void restart()
          Deprecated. Force current spline to restart point generation.
 void setHullPath(boolean b)
          Deprecated. Change path generation, if true generate the hull path (segment between controls points), otherwise generate spline path (default if false).
protected  void tangent(IVector vector)
          Deprecated. Approximate tangent value using tangent value of current segment, this is computed "on demand"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

F_TGT_SEGMENT_CHANGED

protected static final byte F_TGT_SEGMENT_CHANGED
Deprecated. 
See Also:
Constant Field Values

F_POINTS_VALID

protected static final byte F_POINTS_VALID
Deprecated. 
See Also:
Constant Field Values

F_HULL

protected static final byte F_HULL
Deprecated. 
See Also:
Constant Field Values

state_

protected byte state_
Deprecated. 

flags_

protected byte flags_
Deprecated. 

points_

protected int[] points_
Deprecated. 

curr_index_

protected int curr_index_
Deprecated. 

num_points_

protected int num_points_
Deprecated. 

MAX_LEVEL

protected static final int MAX_LEVEL
Deprecated. 
See Also:
Constant Field Values

la_

protected LineAlg la_
Deprecated. 

tgx_

protected double tgx_
Deprecated. 

tgy_

protected double tgy_
Deprecated. 
Constructor Detail

SplineAlg

public SplineAlg()
Deprecated. 
Method Detail

setHullPath

public void setHullPath(boolean b)
Deprecated. 
Change path generation, if true generate the hull path (segment between controls points), otherwise generate spline path (default if false).


getX

public int getX()
Deprecated. 
Returns:
current X coordinate of point, available only is nextPoint() return true

getY

public int getY()
Deprecated. 
Returns:
current Y coordinate of point, available only is nextPoint() return true

restart

public void restart()
Deprecated. 
Force current spline to restart point generation.


prepareDPoints

protected abstract void prepareDPoints()
Deprecated. 
must create and set dpoints_ array with segments to generate


nextPoint

public boolean nextPoint(IPoint point)
Deprecated. 
Specified by:
nextPoint in interface IAlg
Returns:
true if point have been filled by next point generated by this algorithm. false means no more points.

tangent

protected void tangent(IVector vector)
Deprecated. 
Approximate tangent value using tangent value of current segment, this is computed "on demand"


backTangent

public void backTangent(IVector vector)
Deprecated. 
Description copied from interface: IAlg
fill in vector the back tangent at last generated point( must call nextPoint() before and check nextPoint() return true).

Specified by:
backTangent in interface IAlg

frontTangent

public void frontTangent(IVector vector)
Deprecated. 
Description copied from interface: IAlg
fill in vector the front tangent at last generated point( must call nextPoint() before and check nextPoint() return true).

Specified by:
frontTangent in interface IAlg

TPTP 4.6.0 Platform Project
Internal API Specification