Class Engine3D
java.lang.Object
org.eclipse.birt.chart.computation.Engine3D
- All Implemented Interfaces:
IConstants
Engine3D
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
Indicates the both points are out of range in clipping.static final byte
Indicates the ending point is out of range in clipping.static final byte
Indicates the both points are in range in clipping.static final byte
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, ARRAY, AUTO, AVERAGE, AXIS, BACKWARD, BASE, BASE_AXIS, BELOW, BIG_NUMBER_PRIMITIVE_ARRAY, BOOLEAN, BOTTOM, CENTER, COLLECTION, DATE_TIME, DESIGN_TIME, EMPTY_STRING, EQUAL, FORWARD, HORIZONTAL, INSIDE, LABELS, LEFT, LEGEND_ENTRY, LEGEND_GROUP_NAME, 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, NUMBER_PRIMITIVE_ARRAY, NUMERICAL, ONE_SPACE, ORTHOGONAL, ORTHOGONAL_AXIS, OTHER, OUTSIDE, PERCENT, POSITION_MASK, POSITION_MOVE_ABOVE, POSITION_MOVE_BELOW, POSITION_MOVE_LEFT, POSITION_MOVE_RIGHT, 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
ConstructorsConstructorDescriptionEngine3D
(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
Modifier and TypeMethodDescriptionbyte
checkClipping
(Vector start, Vector end) Clipping the lines according to viewing volumn.static Object3D
getObjectFromEvent
(Object event) static Object3D
getObjectFromEvent
(Object event, boolean bParent) static Object3D
getParentObject
(Object event) getSharedEdge
(I3DRenderEvent event1, I3DRenderEvent event2, double xOffset, double yOffset) processEvent
(List renderingEvents, double xOffset, double yOffset) Transforms 3D polygons and sort their rendering order, and antialias.processEvent
(List renderingEvents, double xOffset, double yOffset, boolean antialiasing) Transforms 3D polygons and sort their rendering order, and antialias.processEvent
(PrimitiveRenderEvent event, double xOffset, double yOffset) processEvent_noclip
(PrimitiveRenderEvent event, double xOffset, double yOffset) void
reset()
Resets the engine to default state.void
Translates the view frame.
-
Field Details
-
OUT_OF_RANGE_NONE
public static final byte OUT_OF_RANGE_NONEIndicates the both points are in range in clipping.- See Also:
-
OUT_OF_RANGE_END
public static final byte OUT_OF_RANGE_ENDIndicates the ending point is out of range in clipping.- See Also:
-
OUT_OF_RANGE_START
public static final byte OUT_OF_RANGE_STARTIndicates the starting point is out of range in clipping.- See Also:
-
OUT_OF_RANGE_BOTH
public static final byte OUT_OF_RANGE_BOTHIndicates the both points are out of range in clipping.- See Also:
-
-
Constructor Details
-
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 Details
-
reset
public void reset()Resets the engine to default state. -
translate
Translates the view frame.- Parameters:
v
-
-
checkClipping
Clipping the lines according to viewing volumn.- Parameters:
start
-end
-- Returns:
-
processEvent
public PrimitiveRenderEvent processEvent(PrimitiveRenderEvent event, double xOffset, double yOffset) - Parameters:
renderingEvents
-- Returns:
-
processEvent_noclip
public PrimitiveRenderEvent processEvent_noclip(PrimitiveRenderEvent event, double xOffset, double yOffset) - Parameters:
renderingEvents
-- Returns:
-
processEvent
Transforms 3D polygons and sort their rendering order, and antialias.- Parameters:
renderingEvents
-xOffset
-yOffset
-- Returns:
-
processEvent
public List processEvent(List renderingEvents, double xOffset, double yOffset, boolean antialiasing) Transforms 3D polygons and sort their rendering order, and antialias.- Parameters:
renderingEvents
-xOffset
-yOffset
-antialiasing
-- Returns:
-
getViewReferencePoint
-
getObjectFromEvent
-
getParentObject
- Parameters:
event
-- Returns:
-
getObjectFromEvent
-