org.eclipse.birt.chart.computation
Class Engine3D

java.lang.Object
  extended byorg.eclipse.birt.chart.computation.Engine3D
All Implemented Interfaces:
IConstants

public final class Engine3D
extends java.lang.Object
implements IConstants

Engine3D


Field Summary
static byte OUT_OF_RANGE_BOTH
          Indicates the both points are out of range in clipping.
static byte OUT_OF_RANGE_END
          Indicates the ending point is out of range in clipping.
static byte OUT_OF_RANGE_NONE
          Indicates the both points are in range in clipping.
static byte OUT_OF_RANGE_START
          Indicates the starting point is out of range in clipping.
 
Fields inherited from interface org.eclipse.birt.chart.computation.IConstants
ABOVE, ANCILLARY_AXIS, ANCILLARY_BASE, AUTO, AVERAGE, AXIS, BACKWARD, BASE, BASE_AXIS, BELOW, BOTTOM, CENTER, COLLECTION, DATE_TIME, DESIGN_TIME, EMPTY_STRING, EQUAL, FORWARD, HORIZONTAL, INSIDE, LABELS, LEFT, LEGEND_ENTRY, LEGEND_MINSLICE_ENTRY, LEGEND_SEPERATOR, LESS, LINE_EXPAND_DOUBLE_SIZE, LINE_EXPAND_SIZE, LINEAR, LOG_10, LOGARITHMIC, MAJOR, MAX, MIN, MINOR, MORE, NON_PRIMITIVE_ARRAY, NULL_STRING, NUMERICAL, ONE_SPACE, ORTHOGONAL, ORTHOGONAL_AXIS, OTHER, OUTSIDE, PERCENT, PRIMITIVE_ARRAY, RIGHT, RUN_TIME, SOME_NULL, TEXT, THREE_D, TICK_ABOVE, TICK_ACROSS, TICK_BELOW, TICK_LEFT, TICK_NONE, TICK_RIGHT, TICK_SIDE1, TICK_SIDE2, TICK_SIZE, TOP, TWO_5_D, TWO_D, UNDEFINED, UNDEFINED_STRING, USER_INTERFACE, VALUE, VERTICAL
 
Constructor Summary
Engine3D(Rotation3D rotation, Vector lightDirection, double viewerWidth, double viewerHeight)
           
Engine3D(Rotation3D rotation, Vector lightDirection, double viewerWidth, double viewerHeight, double viewingDistance, double modelingDistance, double hitherDistance, double yonDistance, double perspectiveDistance)
           
 
Method Summary
 byte checkClipping(Vector start, Vector end)
          Clipping the lines according to viewing volumn.
 WrappedInstruction getSharedEdge(I3DRenderEvent event1, I3DRenderEvent event2, double xOffset, double yOffset)
           
 java.util.List processEvent(java.util.List renderingEvents, double xOffset, double yOffset)
           
 PrimitiveRenderEvent processEvent(PrimitiveRenderEvent event, double xOffset, double yOffset)
           
 void reset()
          Resets the engine to default state.
 void translate(Vector v)
          Translates the view frame.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUT_OF_RANGE_NONE

public static final byte OUT_OF_RANGE_NONE
Indicates the both points are in range in clipping.

See Also:
Constant Field Values

OUT_OF_RANGE_END

public static final byte OUT_OF_RANGE_END
Indicates the ending point is out of range in clipping.

See Also:
Constant Field Values

OUT_OF_RANGE_START

public static final byte OUT_OF_RANGE_START
Indicates the starting point is out of range in clipping.

See Also:
Constant Field Values

OUT_OF_RANGE_BOTH

public static final byte OUT_OF_RANGE_BOTH
Indicates the both points are out of range in clipping.

See Also:
Constant Field Values
Constructor Detail

Engine3D

public Engine3D(Rotation3D rotation,
                Vector lightDirection,
                double viewerWidth,
                double viewerHeight,
                double viewingDistance,
                double modelingDistance,
                double hitherDistance,
                double yonDistance,
                double perspectiveDistance)
Parameters:
rotation -
lightDirection -
viewerWidth -
viewerHeight -
viewingDistance -
hitherDistance -
yonDistance -

Engine3D

public Engine3D(Rotation3D rotation,
                Vector lightDirection,
                double viewerWidth,
                double viewerHeight)
Parameters:
rotation -
lightDirection -
viewerWidth -
viewerHeight -
Method Detail

reset

public void reset()
Resets the engine to default state.


translate

public void translate(Vector v)
Translates the view frame.

Parameters:
v -

checkClipping

public byte checkClipping(Vector start,
                          Vector end)
Clipping the lines according to viewing volumn.

Parameters:
start -
end -
Returns:

processEvent

public PrimitiveRenderEvent processEvent(PrimitiveRenderEvent event,
                                         double xOffset,
                                         double yOffset)
Returns:

processEvent

public java.util.List processEvent(java.util.List renderingEvents,
                                   double xOffset,
                                   double yOffset)
Parameters:
renderingEvents -
Returns:

getSharedEdge

public WrappedInstruction getSharedEdge(I3DRenderEvent event1,
                                        I3DRenderEvent event2,
                                        double xOffset,
                                        double yOffset)


Copyright © 2005-2007 Actuate Corp. All rights reserved.