org.eclipse.birt.chart.computation
Class Object3D

java.lang.Object
  extended byorg.eclipse.birt.chart.computation.Object3D

public class Object3D
extends java.lang.Object

Object3D


Constructor Summary
Object3D(int points)
           
Object3D(Location3D la)
           
Object3D(Location3D[] loa)
           
Object3D(Object3D original)
           
 
Method Summary
 void clip(Engine3D engine)
           
 Vector getCenter()
          Returns center of gravity of polygon
 Location3D[] getLocation3D()
           
 Vector getNormal()
          returns the normal vector (pointing outside the enclosed volume for oriented polygons.)
 Location[] getPoints2D(double xOffset, double yOffset)
           
 Vector[] getVectors()
           
 Vector[] getViewerVectors()
           
 double getXMax()
           
 double getXMin()
           
 double getYMax()
           
 double getYMin()
           
 double getZMax()
           
 double getZMin()
           
 void perspective(double distance)
          Perspective transformation of the vectors.
 void prepareZSort()
           
 void reset()
          Resets all values to defaults.
 boolean testSwap(Object3D near)
           
 boolean testZOverlap(Object3D near)
           
 void transform(Matrix m)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Object3D

public Object3D(int points)
Parameters:
points -

Object3D

public Object3D(Location3D la)
Parameters:
la -

Object3D

public Object3D(Location3D[] loa)
Parameters:
loa -

Object3D

public Object3D(Object3D original)
Parameters:
original -
Method Detail

getLocation3D

public Location3D[] getLocation3D()
Returns:

getNormal

public Vector getNormal()
returns the normal vector (pointing outside the enclosed volume for oriented polygons.)

Returns:

getCenter

public Vector getCenter()
Returns center of gravity of polygon

Returns:

reset

public void reset()
Resets all values to defaults.


getXMax

public double getXMax()
Returns:

getXMin

public double getXMin()
Returns:

getYMax

public double getYMax()
Returns:

getYMin

public double getYMin()
Returns:

getZMax

public double getZMax()
Returns:

getZMin

public double getZMin()
Returns:

transform

public void transform(Matrix m)
Parameters:
m -

clip

public void clip(Engine3D engine)
Parameters:
engine -

prepareZSort

public void prepareZSort()

perspective

public void perspective(double distance)
Perspective transformation of the vectors.

Parameters:
distance -

getVectors

public Vector[] getVectors()
Returns:

getViewerVectors

public Vector[] getViewerVectors()
Returns:

getPoints2D

public Location[] getPoints2D(double xOffset,
                              double yOffset)
Parameters:
xOffset -
yOffset -
Returns:

testSwap

public boolean testSwap(Object3D near)
Parameters:
near -
Returns:

testZOverlap

public boolean testZOverlap(Object3D near)
Parameters:
near -
Returns:


Copyright © 2005 Actuate Corp. All rights reserved.