Class ObjectTargetParameters
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
ObjectTargetParameters represents the parameters required to create `ObjectTarget`_.
public class ObjectTargetParameters : RefBase, IDisposable
- Inheritance
-
ObjectTargetParameters
- Implements
- Inherited Members
Constructors
ObjectTargetParameters()
public ObjectTargetParameters()
Methods
Clone()
public ObjectTargetParameters Clone()
bufferDictionary()
Gets the `Buffer`_ dictionary.
public virtual BufferDictionary bufferDictionary()
meta()
Gets meta data.
public virtual string meta()
name()
Gets the target name. The name is used to distinguish targets.
public virtual string name()
objPath()
Gets the obj file path.
public virtual string objPath()
scale()
Model scale. Its value is the ratio of the physical size of the model in space to its size in the model coordinate system. The default value is 1. It assumes the scale unit in the model coordinate system is meters.
public virtual float scale()
setBufferDictionary(BufferDictionary)
Sets the `Buffer`_ dictionary. obj, mtl, and jpg/png files need to be loaded into this dictionary, and mtl and jpg/png must be findable by relative or absolute paths.
public virtual void setBufferDictionary(BufferDictionary bufferDictionary)
Parameters
bufferDictionary
setMeta(string)
Sets meta data.
public virtual void setMeta(string meta)
Parameters
meta
setName(string)
Sets the target name.
public virtual void setName(string name)
Parameters
name
setObjPath(string)
Sets the obj file path.
public virtual void setObjPath(string objPath)
Parameters
objPath
setScale(float)
Sets the model scale. Its value is the ratio of the physical size of the model in space to its size in the model coordinate system. The default value is 1, assuming the scale unit in the model coordinate system is meters. This model scale also needs to be set separately in the rendering engine.
public virtual void setScale(float size)
Parameters
size
setUid(string)
Sets the target uid.
public virtual void setUid(string uid)
Parameters
uid
uid()
Gets the target uid. This uid can be set in the json configuration and used in your own code as a way to distinguish targets.
public virtual string uid()