X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=sixth-3d-demos.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fexamples%2FSphereDemo.java;h=bbbbbf649833523dced7ac669ef17b59de8ebb29;hp=7fd62bce5d2d78921823edc1cde242323f80c491;hb=efd2a72758ee107b48cf4795e05ffb9219fd1d8b;hpb=8699433dbd9238c4d926d78bd2e50f892fc51324 diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/SphereDemo.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/SphereDemo.java index 7fd62bc..bbbbbf6 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/SphereDemo.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/SphereDemo.java @@ -1,7 +1,6 @@ /* - * Sixth - System for data storage, computation, exploration and interaction. - * Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * Sixth 3D engine demos. Copyright ©2012-2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * * This program is free software; you can redistribute it and/or * modify it under the terms of version 3 of the GNU Lesser General Public License * or later as published by the Free Software Foundation. @@ -10,8 +9,8 @@ package eu.svjatoslav.sixth.e3d.examples; import eu.svjatoslav.sixth.e3d.geometry.Point3D; -import eu.svjatoslav.sixth.e3d.gui.ViewContext; import eu.svjatoslav.sixth.e3d.gui.ViewFrame; +import eu.svjatoslav.sixth.e3d.gui.ViewPanel; import eu.svjatoslav.sixth.e3d.renderer.raster.Color; import eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection; import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.line.LineAppearance; @@ -57,9 +56,9 @@ public class SphereDemo { public static void main(final String[] args) { final ViewFrame viewFrame = new ViewFrame(); - final ViewContext context = viewFrame.getView().getContext(); + final ViewPanel viewPanel = viewFrame.getViewPanel(); - final ShapeCollection geometryCollection = context + final ShapeCollection geometryCollection = viewPanel .getRootShapeCollection(); final LineAppearance appearance = new LineAppearance(4, new Color(255, @@ -73,7 +72,7 @@ public class SphereDemo { makeWobblySurface(geometryCollection, 200); makeWobblySurface(geometryCollection, -200); - context.getAvatar().setLocation(new Point3D(0, 0, -340)); + viewPanel.getAvatar().setLocation(new Point3D(0, 0, -340)); } }