001/** 002 * Copyright (c) 2011, The University of Southampton and the individual contributors. 003 * All rights reserved. 004 * 005 * Redistribution and use in source and binary forms, with or without modification, 006 * are permitted provided that the following conditions are met: 007 * 008 * * Redistributions of source code must retain the above copyright notice, 009 * this list of conditions and the following disclaimer. 010 * 011 * * Redistributions in binary form must reproduce the above copyright notice, 012 * this list of conditions and the following disclaimer in the documentation 013 * and/or other materials provided with the distribution. 014 * 015 * * Neither the name of the University of Southampton nor the names of its 016 * contributors may be used to endorse or promote products derived from this 017 * software without specific prior written permission. 018 * 019 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 020 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 021 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 022 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 023 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 024 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 025 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 026 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 027 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 028 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 029 */ 030package org.openimaj.hardware.kinect.freenect; 031 032import org.bridj.CRuntime; 033import org.bridj.Pointer; 034import org.bridj.StructObject; 035import org.bridj.ann.Field; 036import org.bridj.ann.Library; 037import org.bridj.ann.Runtime; 038/** 039 * <i>native declaration : /usr/include/stdint.h</i><br> 040 * This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br> 041 * a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br> 042 * For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> or <a href="http://bridj.googlecode.com/">BridJ</a> . 043 */ 044@Library("freenect-combined") 045@SuppressWarnings("all") 046public class freenect_registration extends StructObject { 047 public freenect_registration() { 048 super(); 049 } 050 /// C type : freenect_reg_info 051 @Field(0) 052 public freenect_reg_info reg_info() { 053 return this.io.getNativeObjectField(this, 0); 054 } 055 /// C type : freenect_reg_info 056 @Field(0) 057 public freenect_registration reg_info(freenect_reg_info reg_info) { 058 this.io.setNativeObjectField(this, 0, reg_info); 059 return this; 060 } 061 /// C type : freenect_reg_pad_info 062 @Field(1) 063 public freenect_reg_pad_info reg_pad_info() { 064 return this.io.getNativeObjectField(this, 1); 065 } 066 /// C type : freenect_reg_pad_info 067 @Field(1) 068 public freenect_registration reg_pad_info(freenect_reg_pad_info reg_pad_info) { 069 this.io.setNativeObjectField(this, 1, reg_pad_info); 070 return this; 071 } 072 /// C type : freenect_zero_plane_info 073 @Field(2) 074 public freenect_zero_plane_info zero_plane_info() { 075 return this.io.getNativeObjectField(this, 2); 076 } 077 /// C type : freenect_zero_plane_info 078 @Field(2) 079 public freenect_registration zero_plane_info(freenect_zero_plane_info zero_plane_info) { 080 this.io.setNativeObjectField(this, 2, zero_plane_info); 081 return this; 082 } 083 @Field(3) 084 public double const_shift() { 085 return this.io.getDoubleField(this, 3); 086 } 087 @Field(3) 088 public freenect_registration const_shift(double const_shift) { 089 this.io.setDoubleField(this, 3, const_shift); 090 return this; 091 } 092 /// C type : uint16_t* 093 @Field(4) 094 public Pointer<Short > raw_to_mm_shift() { 095 return this.io.getPointerField(this, 4); 096 } 097 /// C type : uint16_t* 098 @Field(4) 099 public freenect_registration raw_to_mm_shift(Pointer<Short > raw_to_mm_shift) { 100 this.io.setPointerField(this, 4, raw_to_mm_shift); 101 return this; 102 } 103 /// C type : int32_t* 104 @Field(5) 105 public Pointer<Integer > depth_to_rgb_shift() { 106 return this.io.getPointerField(this, 5); 107 } 108 /// C type : int32_t* 109 @Field(5) 110 public freenect_registration depth_to_rgb_shift(Pointer<Integer > depth_to_rgb_shift) { 111 this.io.setPointerField(this, 5, depth_to_rgb_shift); 112 return this; 113 } 114 /** 115 * A table of 640*480 pairs of x,y values.<br> 116 * C type : int32_t[2]* 117 */ 118 @Field(6) 119 public Pointer<Pointer<Integer > > registration_table() { 120 return this.io.getPointerField(this, 6); 121 } 122 /** 123 * A table of 640*480 pairs of x,y values.<br> 124 * C type : int32_t[2]* 125 */ 126 @Field(6) 127 public freenect_registration registration_table(Pointer<Pointer<Integer > > registration_table) { 128 this.io.setPointerField(this, 6, registration_table); 129 return this; 130 } 131}