Class ObjectTargetParameters
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
ObjectTargetParameters represents the parameters required to create the `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 ratio of the model. Its value is the ratio of the physical size of the model in space to the size in the model coordinate system, with a default value of 1. (Assuming the scale unit in the model coordinate system is meters.)
public virtual float scale()
Returns
setBufferDictionary(BufferDictionary)
Set the `Buffer` dictionary. You need to load obj, mtl, and jpg/png files into this dictionary, and make it possible to find mtl and jpg/png through 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 ratio of the model. Its value is the ratio of the physical size of the model in space to the size in the model coordinate system, with a default value of 1 (assuming the scale unit in the model coordinate system is meters). Also, 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. You can set this uid in the json configuration and use it as a way to distinguish targets in your own code.
public virtual string uid()