import eu.svjatoslav.sixth.e3d.geometry.Point3D;
import eu.svjatoslav.sixth.e3d.geometry.Rectangle;
-import eu.svjatoslav.sixth.e3d.geometry.Transform;
+import eu.svjatoslav.sixth.e3d.math.Transform;
import eu.svjatoslav.sixth.e3d.gui.Avatar;
import eu.svjatoslav.sixth.e3d.gui.ViewContext;
import eu.svjatoslav.sixth.e3d.gui.ViewFrame;
import java.awt.event.KeyEvent;
-class Main extends WorldNavigationTracker {
+public class Main extends WorldNavigationTracker {
private static final Matrix MATRIX = new Matrix(
new Point3D() // position matrix in the center of the scene
// create application frame visible to the user
final ViewFrame viewFrame = new ViewFrame();
- final ShapeCollection shapeCollection = viewFrame.getView()
+ final ShapeCollection shapeCollection = viewFrame.getViewPanel()
.getContext().getRootShapeCollection();
// add matrix
// add wireframe grid (optional)
shapeCollection.addShape(createGrid());
- final ViewContext context = viewFrame.getView().getContext();
+ final ViewContext context = viewFrame.getViewPanel().getContext();
setAvatarOrientation(context.getAvatar());
context.getKeyboardFocusTracker().setFocusOwner(this);
// Done! World is built. So ensure screen is updated too.
- context.getView().repaintDuringNextViewUpdate();
+ context.getViewPanel().repaintDuringNextViewUpdate();
}
/**