Changed license to Creative Commons Zero (CC0).
[sixth-3d-demos.git] / src / main / java / eu / svjatoslav / sixth / e3d / examples / SphereDemo.java
index 7fd62bc..95be617 100755 (executable)
@@ -1,17 +1,14 @@
 /*
- * Sixth - System for data storage, computation, exploration and interaction.
- * Copyright ©2012-2016, 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.
- */
+ * Sixth 3D engine demos. Author: Svjatoslav Agejenko. 
+ * This project is released under Creative Commons Zero (CC0) license.
+ *
+*/
 
 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 +54,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 +70,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));
 
     }
 }