Class Led3D

java.lang.Object
  extended by Led3D

public class Led3D
extends java.lang.Object

This class is responsible for displaying the 3D View of our Cube.


Constructor Summary
Led3D(javax.media.j3d.Canvas3D canv)
           
 
Method Summary
 void printTranslationData()
          Prints the translation matrix that is changed by moving/rotating the 3D Cube with your mouse.
 void setData(short[] data)
          Sets the data that is displayed by the LEDs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Led3D

public Led3D(javax.media.j3d.Canvas3D canv)
Parameters:
canv - The Canvas3D we render our cube in
Method Detail

printTranslationData

public void printTranslationData()
Prints the translation matrix that is changed by moving/rotating the 3D Cube with your mouse.


setData

public void setData(short[] data)
Sets the data that is displayed by the LEDs

Parameters:
data - 64 byte array with the data (8 bits/LEDs per byte)