C# Class NyARUnityUtils.NyARUnityMarkerSystem

Inheritance: jp.nyatla.nyartoolkit.cs.markersystem.NyARMarkerSystem
Exibir arquivo Open project: hecomi/StereoAR-for-Unity Class Usage Examples

Public Methods

Method Description
NyARUnityMarkerSystem ( INyARMarkerSystemConfig i_config ) : System
addARMarker ( Texture2D i_img, int i_patt_resolution, int i_patt_edge_percentage, double i_marker_size ) : int

{@link #addARMarker(INyARRgbRaster, int, int, double)}のラッパーです。Bitmapからマーカパターンを作ります。 引数については、{@link #addARMarker(INyARRgbRaster, int, int, double)}を参照してください。

getMarkerMatrix ( int i_id, Matrix4x4 &i_buf ) : void

Gets the Unity form marker matrix.

getMarkerPlaneImage ( int i_id, jp.nyatla.nyartoolkit.cs.markersystem.NyARSensor i_sensor, int i_l, int i_t, int i_w, int i_h, Texture2D i_img ) : void
getMarkerPlaneImage ( int i_id, jp.nyatla.nyartoolkit.cs.markersystem.NyARSensor i_sensor, int i_x1, int i_y1, int i_x2, int i_y2, int i_x3, int i_y3, int i_x4, int i_y4, Texture2D i_img ) : void

この関数は、{@link #getMarkerPlaneImage(int, NyARSensor, int, int, int, int, int, int, int, int, INyARRgbRaster)} のラッパーです。取得画像を{@link #BufferedImage}形式で返します。

getMarkerPlanePos ( int id, int i_x, int i_y, Vector3 &i_out ) : void
getMarkerTransform ( int i_id, Vector3 &o_pos, Quaternion &o_rotation ) : void

Gets the unity marker transform rotation and position.

getUnityMarkerMatrix ( int i_id ) : Matrix4x4
getUnityProjectionMatrix ( ) : Matrix4x4
setARBackgroundTransform ( Transform i_transform ) : void

この関数は,背景画像の姿勢行列をtransformメンバに設定します.

setARCameraProjection ( Camera i_camera ) : void

この関数は,cameraオブジェクトにProjectionMatrixを指定します.

setMarkerTransform ( int i_id, GameObject i_go ) : void
setMarkerTransform ( int i_id, Transform i_t ) : void

Sets marker matrix to unity transform

setProjectionMatrixClipping ( double i_near, double i_far ) : void

Protected Methods

Method Description
initInstance ( INyARMarkerSystemConfig i_config ) : void

Method Details

NyARUnityMarkerSystem() public method

public NyARUnityMarkerSystem ( INyARMarkerSystemConfig i_config ) : System
i_config INyARMarkerSystemConfig
return System

addARMarker() public method

{@link #addARMarker(INyARRgbRaster, int, int, double)}のラッパーです。Bitmapからマーカパターンを作ります。 引数については、{@link #addARMarker(INyARRgbRaster, int, int, double)}を参照してください。
public addARMarker ( Texture2D i_img, int i_patt_resolution, int i_patt_edge_percentage, double i_marker_size ) : int
i_img UnityEngine.Texture2D
i_patt_resolution int 生成するマーカの解像度を指定します。
i_patt_edge_percentage int 画像のエッジ領域を%で指定します。
i_marker_size double マーカの物理サイズを指定します。
return int

getMarkerMatrix() public method

Gets the Unity form marker matrix.
public getMarkerMatrix ( int i_id, Matrix4x4 &i_buf ) : void
i_id int /// I_id. ///
i_buf UnityEngine.Matrix4x4 /// I_buf. ///
return void

getMarkerPlaneImage() public method

public getMarkerPlaneImage ( int i_id, jp.nyatla.nyartoolkit.cs.markersystem.NyARSensor i_sensor, int i_l, int i_t, int i_w, int i_h, Texture2D i_img ) : void
i_id int
i_sensor jp.nyatla.nyartoolkit.cs.markersystem.NyARSensor
i_l int
i_t int
i_w int
i_h int
i_img UnityEngine.Texture2D
return void

getMarkerPlaneImage() public method

この関数は、{@link #getMarkerPlaneImage(int, NyARSensor, int, int, int, int, int, int, int, int, INyARRgbRaster)} のラッパーです。取得画像を{@link #BufferedImage}形式で返します。
public getMarkerPlaneImage ( int i_id, jp.nyatla.nyartoolkit.cs.markersystem.NyARSensor i_sensor, int i_x1, int i_y1, int i_x2, int i_y2, int i_x3, int i_y3, int i_x4, int i_y4, Texture2D i_img ) : void
i_id int
i_sensor jp.nyatla.nyartoolkit.cs.markersystem.NyARSensor
i_x1 int
i_y1 int
i_x2 int
i_y2 int
i_x3 int
i_y3 int
i_x4 int
i_y4 int
i_img UnityEngine.Texture2D
return void

getMarkerPlanePos() public method

public getMarkerPlanePos ( int id, int i_x, int i_y, Vector3 &i_out ) : void
id int
i_x int
i_y int
i_out Vector3
return void

getMarkerTransform() public method

Gets the unity marker transform rotation and position.
public getMarkerTransform ( int i_id, Vector3 &o_pos, Quaternion &o_rotation ) : void
i_id int /// I_id. ///
o_pos Vector3 /// O_pos. ///
o_rotation UnityEngine.Quaternion /// O_rotation. ///
return void

getUnityMarkerMatrix() public method

public getUnityMarkerMatrix ( int i_id ) : Matrix4x4
i_id int
return UnityEngine.Matrix4x4

getUnityProjectionMatrix() public method

public getUnityProjectionMatrix ( ) : Matrix4x4
return UnityEngine.Matrix4x4

initInstance() protected method

protected initInstance ( INyARMarkerSystemConfig i_config ) : void
i_config INyARMarkerSystemConfig
return void

setARBackgroundTransform() public method

この関数は,背景画像の姿勢行列をtransformメンバに設定します.
public setARBackgroundTransform ( Transform i_transform ) : void
i_transform UnityEngine.Transform
return void

setARCameraProjection() public method

この関数は,cameraオブジェクトにProjectionMatrixを指定します.
public setARCameraProjection ( Camera i_camera ) : void
i_camera UnityEngine.Camera
return void

setMarkerTransform() public method

public setMarkerTransform ( int i_id, GameObject i_go ) : void
i_id int
i_go UnityEngine.GameObject
return void

setMarkerTransform() public method

Sets marker matrix to unity transform
public setMarkerTransform ( int i_id, Transform i_t ) : void
i_id int /// I_id. ///
i_t UnityEngine.Transform /// I_t. ///
return void

setProjectionMatrixClipping() public method

public setProjectionMatrixClipping ( double i_near, double i_far ) : void
i_near double
i_far double
return void