Simple single-color 8x8x8 LED Cube with AVRs
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Led3D.html 9.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0_29) on Mon Dec 05 16:34:31 CET 2011 -->
  6. <TITLE>
  7. Led3D
  8. </TITLE>
  9. <META NAME="date" CONTENT="2011-12-05">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
  11. <SCRIPT type="text/javascript">
  12. function windowTitle()
  13. {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="Led3D";
  16. }
  17. }
  18. </SCRIPT>
  19. <NOSCRIPT>
  20. </NOSCRIPT>
  21. </HEAD>
  22. <BODY BGCOLOR="white" onload="windowTitle();">
  23. <HR>
  24. <!-- ========= START OF TOP NAVBAR ======= -->
  25. <A NAME="navbar_top"><!-- --></A>
  26. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  27. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  28. <TR>
  29. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  30. <A NAME="navbar_top_firstrow"><!-- --></A>
  31. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  32. <TR ALIGN="center" VALIGN="top">
  33. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  34. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  35. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  36. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  37. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  38. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  39. </TR>
  40. </TABLE>
  41. </TD>
  42. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  43. </EM>
  44. </TD>
  45. </TR>
  46. <TR>
  47. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  48. &nbsp;<A HREF="layerEditFrame.html" title="class in &lt;Unnamed&gt;"><B>PREV CLASS</B></A>&nbsp;
  49. &nbsp;NEXT CLASS</FONT></TD>
  50. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  51. <A HREF="index.html?Led3D.html" target="_top"><B>FRAMES</B></A> &nbsp;
  52. &nbsp;<A HREF="Led3D.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  53. &nbsp;<SCRIPT type="text/javascript">
  54. <!--
  55. if(window==top) {
  56. document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
  57. }
  58. //-->
  59. </SCRIPT>
  60. <NOSCRIPT>
  61. <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
  62. </NOSCRIPT>
  63. </FONT></TD>
  64. </TR>
  65. <TR>
  66. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  67. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  68. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  69. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  70. </TR>
  71. </TABLE>
  72. <A NAME="skip-navbar_top"></A>
  73. <!-- ========= END OF TOP NAVBAR ========= -->
  74. <HR>
  75. <!-- ======== START OF CLASS DATA ======== -->
  76. <H2>
  77. Class Led3D</H2>
  78. <PRE>
  79. java.lang.Object
  80. <IMG SRC="./resources/inherit.gif" ALT="extended by "><B>Led3D</B>
  81. </PRE>
  82. <HR>
  83. <DL>
  84. <DT><PRE>public class <B>Led3D</B><DT>extends java.lang.Object</DL>
  85. </PRE>
  86. <P>
  87. This class is responsible for displaying the 3D View of our Cube.
  88. <P>
  89. <P>
  90. <HR>
  91. <P>
  92. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  93. <A NAME="constructor_summary"><!-- --></A>
  94. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  95. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  96. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  97. <B>Constructor Summary</B></FONT></TH>
  98. </TR>
  99. <TR BGCOLOR="white" CLASS="TableRowColor">
  100. <TD><CODE><B><A HREF="Led3D.html#Led3D(javax.media.j3d.Canvas3D)">Led3D</A></B>(javax.media.j3d.Canvas3D&nbsp;canv)</CODE>
  101. <BR>
  102. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  103. </TR>
  104. </TABLE>
  105. &nbsp;
  106. <!-- ========== METHOD SUMMARY =========== -->
  107. <A NAME="method_summary"><!-- --></A>
  108. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  109. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  110. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  111. <B>Method Summary</B></FONT></TH>
  112. </TR>
  113. <TR BGCOLOR="white" CLASS="TableRowColor">
  114. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  115. <CODE>&nbsp;void</CODE></FONT></TD>
  116. <TD><CODE><B><A HREF="Led3D.html#printTranslationData()">printTranslationData</A></B>()</CODE>
  117. <BR>
  118. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints the translation matrix that is changed by moving/rotating the 3D Cube with your mouse.</TD>
  119. </TR>
  120. <TR BGCOLOR="white" CLASS="TableRowColor">
  121. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  122. <CODE>&nbsp;void</CODE></FONT></TD>
  123. <TD><CODE><B><A HREF="Led3D.html#setData(short[])">setData</A></B>(short[]&nbsp;data)</CODE>
  124. <BR>
  125. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the data that is displayed by the LEDs</TD>
  126. </TR>
  127. </TABLE>
  128. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  129. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  130. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  131. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  132. </TR>
  133. <TR BGCOLOR="white" CLASS="TableRowColor">
  134. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  135. </TR>
  136. </TABLE>
  137. &nbsp;
  138. <P>
  139. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  140. <A NAME="constructor_detail"><!-- --></A>
  141. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  142. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  143. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  144. <B>Constructor Detail</B></FONT></TH>
  145. </TR>
  146. </TABLE>
  147. <A NAME="Led3D(javax.media.j3d.Canvas3D)"><!-- --></A><H3>
  148. Led3D</H3>
  149. <PRE>
  150. public <B>Led3D</B>(javax.media.j3d.Canvas3D&nbsp;canv)</PRE>
  151. <DL>
  152. <DL>
  153. <DT><B>Parameters:</B><DD><CODE>canv</CODE> - The Canvas3D we render our cube in</DL>
  154. </DL>
  155. <!-- ============ METHOD DETAIL ========== -->
  156. <A NAME="method_detail"><!-- --></A>
  157. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  158. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  159. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  160. <B>Method Detail</B></FONT></TH>
  161. </TR>
  162. </TABLE>
  163. <A NAME="printTranslationData()"><!-- --></A><H3>
  164. printTranslationData</H3>
  165. <PRE>
  166. public void <B>printTranslationData</B>()</PRE>
  167. <DL>
  168. <DD>Prints the translation matrix that is changed by moving/rotating the 3D Cube with your mouse.
  169. <P>
  170. <DD><DL>
  171. </DL>
  172. </DD>
  173. </DL>
  174. <HR>
  175. <A NAME="setData(short[])"><!-- --></A><H3>
  176. setData</H3>
  177. <PRE>
  178. public void <B>setData</B>(short[]&nbsp;data)</PRE>
  179. <DL>
  180. <DD>Sets the data that is displayed by the LEDs
  181. <P>
  182. <DD><DL>
  183. <DT><B>Parameters:</B><DD><CODE>data</CODE> - 64 byte array with the data (8 bits/LEDs per byte)</DL>
  184. </DD>
  185. </DL>
  186. <!-- ========= END OF CLASS DATA ========= -->
  187. <HR>
  188. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  189. <A NAME="navbar_bottom"><!-- --></A>
  190. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  191. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  192. <TR>
  193. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  194. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  195. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  196. <TR ALIGN="center" VALIGN="top">
  197. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  198. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  199. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  200. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  201. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  202. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  203. </TR>
  204. </TABLE>
  205. </TD>
  206. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  207. </EM>
  208. </TD>
  209. </TR>
  210. <TR>
  211. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  212. &nbsp;<A HREF="layerEditFrame.html" title="class in &lt;Unnamed&gt;"><B>PREV CLASS</B></A>&nbsp;
  213. &nbsp;NEXT CLASS</FONT></TD>
  214. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  215. <A HREF="index.html?Led3D.html" target="_top"><B>FRAMES</B></A> &nbsp;
  216. &nbsp;<A HREF="Led3D.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  217. &nbsp;<SCRIPT type="text/javascript">
  218. <!--
  219. if(window==top) {
  220. document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
  221. }
  222. //-->
  223. </SCRIPT>
  224. <NOSCRIPT>
  225. <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
  226. </NOSCRIPT>
  227. </FONT></TD>
  228. </TR>
  229. <TR>
  230. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  231. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  232. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  233. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  234. </TR>
  235. </TABLE>
  236. <A NAME="skip-navbar_bottom"></A>
  237. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  238. <HR>
  239. </BODY>
  240. </HTML>