TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.chart.internal
Class View3D

java.lang.Object
  extended by org.eclipse.tptp.platform.report.chart.internal.View3D

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 class View3D
extends java.lang.Object

View3D is made to handle projection from 3D space to a 2D screen. It have the ability to transform 3D point before projection using ICoordTransformation. (for example, that can be used to for a 3D drawing on a plan)


Nested Class Summary
protected static class View3D.NoTransformation
          Deprecated. simplissiest coordinate transformation ... none
 
Field Summary
protected  double a1
          Deprecated. internal use after update(), coeficient of matrix projection
protected  double a2
          Deprecated. internal use after update(), coeficient of matrix projection
protected  double a3
          Deprecated. internal use after update(), coeficient of matrix projection
protected  double a4
          Deprecated. internal use after update(), coeficient of matrix projection
protected  double a5
          Deprecated. internal use after update(), coeficient of matrix projection
protected  double a6
          Deprecated. internal use after update(), coeficient of matrix projection
protected  double a7
          Deprecated. internal use after update(), coeficient of matrix projection
protected  double a8
          Deprecated. internal use after update(), coeficient of matrix projection
protected  Box3D bb_
          Deprecated. bounding box used to scale plan
protected static ICoordTransformation ct_idem_
          Deprecated.  
protected  double D_
          Deprecated. parameters of the 3D view, angle,angle,distance,distance
protected  double Dx_
          Deprecated. internal use, scale for the screen
protected  double Dy_
          Deprecated. internal use, scale for the screen
protected  double phi_
          Deprecated. parameters of the 3D view, angle,angle,distance,distance
protected  double R_
          Deprecated. parameters of the 3D view, angle,angle,distance,distance
protected  double screen_dx_
          Deprecated. internal use, translation for the screen
protected  double screen_dy_
          Deprecated. internal use, translation for the screen
protected  double theta_
          Deprecated. parameters of the 3D view, angle,angle,distance,distance
protected  ICoordTransformation tX_
          Deprecated.  
protected  ICoordTransformation tY_
          Deprecated.  
protected  ICoordTransformation tZ_
          Deprecated.  
 
Constructor Summary
View3D(double _phi, double _theta, double _R, double _D, Box3D _bounding_box)
          Deprecated. Create a View 3D.
 
Method Summary
 double getD()
          Deprecated.  
 double getPhi()
          Deprecated.  
 double getR()
          Deprecated.  
 Rect getScaledTo()
          Deprecated.  
 double getTheta()
          Deprecated.  
 Vector3D getViewVector(Vector3D v)
          Deprecated.  
 Point2D projection(double _x, double _y, double _z, Point2D _p)
          Deprecated. Compute project of point (_x,_y,_z), store result in point _p,
 void projection(double _x, double _y, double _z, Point3D _p)
          Deprecated. Compute project of point (_x,_y,_z), store result in point _p,
 void projection(Point3D _p, Point3D _j)
          Deprecated. Compute projection of point _p and store result in _j, @return _j
 void resetCoordTransformation()
          Deprecated. reset any coordinate transformation
 void scaleTo(int _scr_x, int _scr_y, int _scr_width, int _scr_height)
          Deprecated. Update view to fit given rectangle
protected  double screenDx()
          Deprecated.  
protected  double screenDy()
          Deprecated.  
 void setD(float _d)
          Deprecated. Change D parameter view
 void setXCoordTransformation(ICoordTransformation _ct)
          Deprecated. set coordinate transformation for X axis
 void setYCoordTransformation(ICoordTransformation _ct)
          Deprecated. set coordinate transformation for X axis
 void setZCoordTransformation(ICoordTransformation _ct)
          Deprecated. set coordinate transformation for X axis
protected  void update()
          Deprecated. update internal coeficient of the view
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

phi_

protected double phi_
Deprecated. 
parameters of the 3D view, angle,angle,distance,distance


theta_

protected double theta_
Deprecated. 
parameters of the 3D view, angle,angle,distance,distance


R_

protected double R_
Deprecated. 
parameters of the 3D view, angle,angle,distance,distance


D_

protected double D_
Deprecated. 
parameters of the 3D view, angle,angle,distance,distance


a1

protected double a1
Deprecated. 
internal use after update(), coeficient of matrix projection


a2

protected double a2
Deprecated. 
internal use after update(), coeficient of matrix projection


a3

protected double a3
Deprecated. 
internal use after update(), coeficient of matrix projection


a4

protected double a4
Deprecated. 
internal use after update(), coeficient of matrix projection


a5

protected double a5
Deprecated. 
internal use after update(), coeficient of matrix projection


a6

protected double a6
Deprecated. 
internal use after update(), coeficient of matrix projection


a7

protected double a7
Deprecated. 
internal use after update(), coeficient of matrix projection


a8

protected double a8
Deprecated. 
internal use after update(), coeficient of matrix projection


bb_

protected Box3D bb_
Deprecated. 
bounding box used to scale plan


screen_dx_

protected double screen_dx_
Deprecated. 
internal use, translation for the screen


screen_dy_

protected double screen_dy_
Deprecated. 
internal use, translation for the screen


Dx_

protected double Dx_
Deprecated. 
internal use, scale for the screen


Dy_

protected double Dy_
Deprecated. 
internal use, scale for the screen


ct_idem_

protected static ICoordTransformation ct_idem_
Deprecated. 

tX_

protected ICoordTransformation tX_
Deprecated. 

tY_

protected ICoordTransformation tY_
Deprecated. 

tZ_

protected ICoordTransformation tZ_
Deprecated. 
Constructor Detail

View3D

public View3D(double _phi,
              double _theta,
              double _R,
              double _D,
              Box3D _bounding_box)
Deprecated. 
Create a View 3D.

Parameters:
_phi - angle of the view (radian).
_theta - angle of the view (radian).
_R - distance of the view from (0,0,0) point.
_D - distance of the projection plan from the view.
_bounding_box - 3D bounding box used to scale the view.
Method Detail

update

protected void update()
Deprecated. 
update internal coeficient of the view


getD

public double getD()
Deprecated. 

getR

public double getR()
Deprecated. 

getPhi

public double getPhi()
Deprecated. 

getTheta

public double getTheta()
Deprecated. 

getViewVector

public Vector3D getViewVector(Vector3D v)
Deprecated. 
Returns:
view vector (point of view), this vector is not normalized

setD

public void setD(float _d)
Deprecated. 
Change D parameter view


projection

public Point2D projection(double _x,
                          double _y,
                          double _z,
                          Point2D _p)
Deprecated. 
Compute project of point (_x,_y,_z), store result in point _p,

Returns:
_p (cannot be null).

projection

public void projection(double _x,
                       double _y,
                       double _z,
                       Point3D _p)
Deprecated. 
Compute project of point (_x,_y,_z), store result in point _p,


projection

public final void projection(Point3D _p,
                             Point3D _j)
Deprecated. 
Compute projection of point _p and store result in _j, @return _j


getScaledTo

public Rect getScaledTo()
Deprecated. 
Returns:
last parameter given to scaleTo() method, this is screen rectangle where the 3D view is fitted

scaleTo

public void scaleTo(int _scr_x,
                    int _scr_y,
                    int _scr_width,
                    int _scr_height)
Deprecated. 
Update view to fit given rectangle


screenDx

protected double screenDx()
Deprecated. 
Returns:
X translation coeficient on screen

screenDy

protected double screenDy()
Deprecated. 
Returns:
Y translation coeficient on screen

resetCoordTransformation

public void resetCoordTransformation()
Deprecated. 
reset any coordinate transformation


setXCoordTransformation

public void setXCoordTransformation(ICoordTransformation _ct)
Deprecated. 
set coordinate transformation for X axis


setYCoordTransformation

public void setYCoordTransformation(ICoordTransformation _ct)
Deprecated. 
set coordinate transformation for X axis


setZCoordTransformation

public void setZCoordTransformation(ICoordTransformation _ct)
Deprecated. 
set coordinate transformation for X axis


TPTP 4.5.0 Platform Project
Internal API Specification