/* \r
* PROJECT: NyARToolkit\r
* --------------------------------------------------------------------------------\r
- * The NyARToolkit is Java version ARToolkit class library.\r
- * Copyright (C)2008 R.Iizuka\r
+ * This work is based on the original ARToolKit developed by\r
+ * Hirokazu Kato\r
+ * Mark Billinghurst\r
+ * HITLab, University of Washington, Seattle\r
+ * http://www.hitl.washington.edu/artoolkit/\r
+ *\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
+ * modify it under the terms of the GNU Lesser General Public License\r
+ * as published by the Free Software Foundation; either version 3\r
* of the License, or (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
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
+ * GNU Lesser General Public License for more details\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
+ * You should have received a copy of the GNU Lesser General Public\r
+ * License 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.raster.rgb;\r
\r
-import jp.nyatla.nyartoolkit.core.raster.TNyRasterType;\r
+import jp.nyatla.nyartoolkit.NyARException;\r
+import jp.nyatla.nyartoolkit.core.rasterreader.INyARBufferReader;\r
import jp.nyatla.nyartoolkit.core.rasterreader.INyARRgbPixelReader;\r
+import jp.nyatla.nyartoolkit.core.rasterreader.NyARBufferReader;\r
+import jp.nyatla.nyartoolkit.core.types.NyARIntSize;\r
\r
/*\r
* 真っ黒の矩形を定義する。\r
return;\r
}\r
\r
- public void getPixelSet(int[] i_x, int i_y[], int i_num, int[] o_rgb)\r
+ public void getPixelSet(int[] i_x, int[] i_y, int i_num, int[] o_rgb)\r
{\r
for (int i = i_num - 1; i >= 0; i--) {\r
o_rgb[i * 3 + 0] = 0;// R\r
o_rgb[i * 3 + 2] = 0;// B\r
}\r
}\r
+ public void setPixel(int i_x, int i_y, int[] i_rgb) throws NyARException\r
+ {\r
+ NyARException.notImplement(); \r
+ }\r
+ public void setPixels(int[] i_x, int[] i_y, int i_num, int[] i_intrgb) throws NyARException\r
+ {\r
+ NyARException.notImplement(); \r
+ }\r
+ \r
}\r
\r
private INyARRgbPixelReader _reader;\r
-\r
+ private INyARBufferReader _buffer_reader;\r
+ \r
public NyARRgbRaster_Blank(int i_width, int i_height)\r
{\r
- this._size.w = i_width;\r
- this._size.h = i_height;\r
+ super(new NyARIntSize(i_width,i_height));\r
this._reader = new PixelReader();\r
+ this._buffer_reader=new NyARBufferReader(null,INyARBufferReader.BUFFERFORMAT_NULL_ALLZERO);\r
+ return;\r
}\r
-\r
- public int getBufferType()\r
- {\r
- return TNyRasterType.BUFFERFORMAT_NULL_ALLZERO;\r
- }\r
-\r
- public byte[] getBufferObject()\r
- {\r
- return null;\r
- }\r
-\r
public INyARRgbPixelReader getRgbPixelReader()\r
{\r
return this._reader;\r
}\r
+ public INyARBufferReader getBufferReader()\r
+ {\r
+ return this._buffer_reader;\r
+ }\r
}\r