Constructs Ball3DApp and initializes the drawing.
()
| 33 | * |
| 34 | */ |
| 35 | public Ball3DApp() { |
| 36 | frame.setPreferredMinMax(-5.0, 5.0, -5.0, 5.0, 0.0, 10.0); |
| 37 | ball.setXYZ(0, 0, 9); |
| 38 | ball.setSizeXYZ(1, 1, 1); // ball displayed in 3D as a planar ellipse of size (dx,dy,dz) |
| 39 | frame.addElement(ball); |
| 40 | Element box = new ElementBox(); |
| 41 | box.setXYZ(0, 0, 0); |
| 42 | box.setSizeXYZ(4, 4, 1); |
| 43 | box.getStyle().setFillColor(Color.RED); |
| 44 | // divide sides of box into smaller rectangles |
| 45 | box.getStyle().setResolution(new Resolution(5, 5, 2)); |
| 46 | frame.addElement(box); |
| 47 | frame.setMessage("time = "+ControlUtils.f2(time)); |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * |
nothing calls this directly
no test coverage detected