final ViewFrame viewFrame = new ViewFrame();
- final ShapeCollection geometryCollection = viewFrame.getView()
+ final ShapeCollection geometryCollection = viewFrame.getViewPanel()
.getContext().getRootShapeCollection();
Point3D location = new Point3D(-600, -300, 0);
location = new Point3D(600, 300, 0);
geometryCollection.addShape(getFormula3Graph(location));
- viewFrame.getView().getContext().getAvatar()
+ viewFrame.getViewPanel().getContext().getAvatar()
.setLocation(new Point3D(0, 0, -500));
}
private void init() {
final ViewFrame viewFrame = new ViewFrame();
- context = viewFrame.getView().getContext();
+ context = viewFrame.getViewPanel().getContext();
context.getAvatar().setLocation(new Point3D(0, -30, -300));
shapeCollection.addShape(message);
context.getKeyboardFocusTracker().setFocusOwner(this);
- context.getView().repaintDuringNextViewUpdate();
+ context.getViewPanel().repaintDuringNextViewUpdate();
}
@Override
// initialize and start Raytracer in a separate thread
final RayTracer rayTracer = new RayTracer(camera.getTexture(),
- octreeVolume, lights, camera, context.getView());
+ octreeVolume, lights, camera, context.getViewPanel());
final Thread thread = new Thread(rayTracer);
thread.start();
}
final ViewFrame viewFrame = new ViewFrame();
- final ShapeCollection geometryCollection = viewFrame.getView()
+ final ShapeCollection geometryCollection = viewFrame.getViewPanel()
.getContext().getRootShapeCollection();
Transform transform = new Transform(new Point3D(0, -1000, 1000), 0, 0);
private void run() throws IOException {
final ViewFrame viewFrame = new ViewFrame();
- final ShapeCollection geometryCollection = viewFrame.getView()
+ final ShapeCollection geometryCollection = viewFrame.getViewPanel()
.getContext().getRootShapeCollection();
Random random = new Random();
geometryCollection.addShape(textCanvas);
}
- viewFrame.getView().addViewUpdateListener(this);
+ viewFrame.getViewPanel().addViewUpdateListener(this);
}
}
final ViewFrame viewFrame = new ViewFrame();
- final ShapeCollection shapeCollection = viewFrame.getView()
+ final ShapeCollection shapeCollection = viewFrame.getViewPanel()
.getContext().getRootShapeCollection();
// add grid
public static void main(final String[] args) {
final ViewFrame viewFrame = new ViewFrame();
- final ViewContext context = viewFrame.getView().getContext();
+ final ViewContext context = viewFrame.getViewPanel().getContext();
final ShapeCollection geometryCollection = context
.getRootShapeCollection();
public static void main(final String[] args) {
final ViewFrame viewFrame = new ViewFrame();
- final ViewContext viewContext = viewFrame.getView().getContext();
+ final ViewContext viewContext = viewFrame.getViewPanel().getContext();
- final ShapeCollection shapeCollection = viewFrame.getView()
+ final ShapeCollection shapeCollection = viewFrame.getViewPanel()
.getContext().getRootShapeCollection();
shapeCollection.addShape(createGrid());
// 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();
}
/**