Table of Contents

Class ObjectTargetParameters

Namespace
easyar
Assembly
EasyAR.Sense.dll

ObjectTargetParameters represents the parameters needed to create an `ObjectTarget`_.

public class ObjectTargetParameters : RefBase, IDisposable
Inheritance
ObjectTargetParameters
Implements
Inherited Members

Constructors

ObjectTargetParameters()

public ObjectTargetParameters()

Methods

Clone()

public ObjectTargetParameters Clone()

Returns

CloneObject()

protected override object CloneObject()

Returns

bufferDictionary()

Get the `Buffer`_ dictionary.

public virtual BufferDictionary bufferDictionary()

Returns

meta()

Get meta data.

public virtual string meta()

Returns

name()

Get the target name. The name is used to distinguish targets.

public virtual string name()

Returns

objPath()

Get the obj file path.

public virtual string objPath()

Returns

scale()

The scale factor of the model. Its value is the ratio of the physical size of the model in space to its size in the model coordinate system, with a default value of 1. (Assuming the unit of the model coordinate system is meters.)

public virtual float scale()

Returns

setBufferDictionary(BufferDictionary)

Set the `Buffer`_ dictionary. Need to load obj, mtl, and jpg/png files into this dictionary, and ensure that mtl and jpg/png can be found via relative or absolute paths.

public virtual void setBufferDictionary(BufferDictionary bufferDictionary)

Parameters

bufferDictionary

setMeta(string)

Set meta data.

public virtual void setMeta(string meta)

Parameters

meta

setName(string)

Set the target name.

public virtual void setName(string name)

Parameters

name

setObjPath(string)

Set the obj file path.

public virtual void setObjPath(string objPath)

Parameters

objPath

setScale(float)

Set the scale factor of the model. Its value is the ratio of the physical size of the model in space to its size in the model coordinate system, with a default value of 1 (assuming the unit of the model coordinate system is meters). Additionally, this model scale needs to be set separately in the rendering engine.

public virtual void setScale(float size)

Parameters

size

setUid(string)

Set the target uid.

public virtual void setUid(string uid)

Parameters

uid

uid()

Get the target uid. This uid can be set in the json configuration, serving as a way to distinguish targets in your own code.

public virtual string uid()

Returns