OSDN Git Service

[backup]NyARToolkitCS/2.4.2
[nyartoolkit-and/nyartoolkit-and.git] / trunk / src / jp / nyatla / nyartoolkit / core / types / stack / NyARIntPointStack.java
index f59a04c..a1f1305 100644 (file)
@@ -7,47 +7,41 @@
  *   HITLab, University of Washington, Seattle\r
  * http://www.hitl.washington.edu/artoolkit/\r
  *\r
- * The NyARToolkit is Java version ARToolkit class library.\r
- * Copyright (C)2008 R.Iizuka\r
+ * The NyARToolkit is Java edition ARToolKit class library.\r
+ * Copyright (C)2008-2009 Ryo Iizuka\r
  *\r
- * This program is free software; you can redistribute it and/or\r
- * modify it under the terms of the GNU General Public License\r
- * as published by the Free Software Foundation; either version 2\r
- * of the License, or (at your option) any later version.\r
+ * This program is free software: you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation, either version 3 of the License, or\r
+ * (at your option) any later version.\r
  * \r
  * This program is distributed in the hope that it will be useful,\r
  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
  * GNU General Public License for more details.\r
- * \r
+ *\r
  * You should have received a copy of the GNU General Public License\r
- * along with this framework; if not, write to the Free Software\r
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
  * \r
  * For further information please contact.\r
  *     http://nyatla.jp/nyatoolkit/\r
- *     <airmail(at)ebony.plala.or.jp>\r
+ *     <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp>\r
  * \r
  */\r
 package jp.nyatla.nyartoolkit.core.types.stack;\r
 \r
 \r
 import jp.nyatla.nyartoolkit.core.types.*;\r
-import jp.nyatla.utils.NyObjectStack;\r
 \r
-public class NyARIntPointStack extends NyObjectStack\r
+public class NyARIntPointStack extends NyObjectStack<NyARIntPoint2d>\r
 {\r
        public NyARIntPointStack(int i_length)\r
        {\r
-               super(new NyARIntPoint2d[i_length]);\r
-\r
+               super(i_length,NyARIntPoint2d.class);\r
+               return;\r
        }\r
-\r
-       protected void onReservRequest(int i_start, int i_end, Object[] i_buffer)\r
+       protected NyARIntPoint2d createElement()\r
        {\r
-               for (int i = i_start; i < i_end; i++) {\r
-                       i_buffer[i] = new NyARIntPoint2d();\r
-               }\r
-       }\r
-\r
+               return new NyARIntPoint2d();\r
+       }       \r
 }\r