lt.monarch.chart.chart3D.engine.core
Class Engine3D

java.lang.Object
  extended by lt.monarch.chart.chart3D.engine.core.Engine3D

public final class Engine3D
extends java.lang.Object

This class is a port between 3d engine and the chart system.


Constructor Summary
Constructor and Description
Engine3D()
          Constructs an Engine3D instance.
 
Method Summary
Modifier and Type Method and Description
 int findObjectUnder(Point2D point)
          Gets id from a selection buffer
 boolean isSelectionBufferEnabeld()
          Returns if selection buffer is enabled
 void renderScene(java.awt.Graphics2D g, java.util.List<Entity3D> entities, java.awt.Rectangle clipBounds, java.util.List<Plane> clipPlanes, int antiAliasLevel, double scaleLevel, boolean smoothLine, boolean smoothFonts)
          Renders a scene.
 void setSelectionBufferEnabled(boolean enable)
          Sets if selection buffer is enabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Engine3D

public Engine3D()
Constructs an Engine3D instance.

Method Detail

renderScene

public void renderScene(java.awt.Graphics2D g,
                        java.util.List<Entity3D> entities,
                        java.awt.Rectangle clipBounds,
                        java.util.List<Plane> clipPlanes,
                        int antiAliasLevel,
                        double scaleLevel,
                        boolean smoothLine,
                        boolean smoothFonts)
Renders a scene.

Parameters:
g - a Graphics2D context to render into
entities - the scene entities
clipBounds -
clipPlanes -
antiAliasLevel -
scaleLevel -
smoothLine -
smoothFonts -

findObjectUnder

public int findObjectUnder(Point2D point)
Gets id from a selection buffer

Parameters:
point - selection point
Returns:
id in selection buffer

setSelectionBufferEnabled

public void setSelectionBufferEnabled(boolean enable)
Sets if selection buffer is enabled

Parameters:
enabled - is selection buffer enabled

isSelectionBufferEnabeld

public boolean isSelectionBufferEnabeld()
Returns if selection buffer is enabled

Returns:
is selection buffer enabled