ObjectTargetParameters Class¶
Description¶
ObjectTargetParameters表示创建 ObjectTarget 所需要的参数。
Constructor¶
- C
void easyar_ObjectTargetParameters__ctor(easyar_ObjectTargetParameters * * Return)
- C++
ObjectTargetParameters()
- Java
public ObjectTargetParameters()
- Kotlin
constructor()
- Objective-C
+ (easyar_ObjectTargetParameters *) create
- Swift
public convenience init()
- C#
public ObjectTargetParameters()
bufferDictionary¶
获取 Buffer 字典。
- C
void easyar_ObjectTargetParameters_bufferDictionary(easyar_ObjectTargetParameters * This, easyar_BufferDictionary * * Return)
- C++
std::shared_ptr<BufferDictionary> bufferDictionary()
- Java
public @Nonnull BufferDictionary bufferDictionary()
- Kotlin
fun bufferDictionary(): BufferDictionary
- Objective-C
- (easyar_BufferDictionary *)bufferDictionary
- Swift
public func bufferDictionary() -> BufferDictionary
- C#
public virtual BufferDictionary bufferDictionary()
setBufferDictionary¶
设置 Buffer 字典。需要将obj, mtl和jpg/png文件加载到这个字典中,并使得mtl和jpg/png能通过相对或绝对路径查找到。
- C
void easyar_ObjectTargetParameters_setBufferDictionary(easyar_ObjectTargetParameters * This, easyar_BufferDictionary * bufferDictionary)
- C++
void setBufferDictionary(std::shared_ptr<BufferDictionary> bufferDictionary)
- Java
public void setBufferDictionary(@Nonnull BufferDictionary bufferDictionary)
- Kotlin
fun setBufferDictionary(bufferDictionary: BufferDictionary): Unit
- Objective-C
- (void)setBufferDictionary:(easyar_BufferDictionary *)bufferDictionary
- Swift
public func setBufferDictionary(_ bufferDictionary: BufferDictionary) -> Void
- C#
public virtual void setBufferDictionary(BufferDictionary bufferDictionary)
objPath¶
获取obj文件路径。
- C
void easyar_ObjectTargetParameters_objPath(easyar_ObjectTargetParameters * This, easyar_String * * Return)
- C++
std::string objPath()
- Java
public java.lang.@Nonnull String objPath()
- Kotlin
fun objPath(): String
- Objective-C
- (NSString *)objPath
- Swift
public func objPath() -> String
- C#
public virtual string objPath()
setObjPath¶
设置obj文件路径。
- C
void easyar_ObjectTargetParameters_setObjPath(easyar_ObjectTargetParameters * This, easyar_String * objPath)
- C++
void setObjPath(std::string objPath)
- Java
public void setObjPath(java.lang.@Nonnull String objPath)
- Kotlin
fun setObjPath(objPath: String): Unit
- Objective-C
- (void)setObjPath:(NSString *)objPath
- Swift
public func setObjPath(_ objPath: String) -> Void
- C#
public virtual void setObjPath(string objPath)
name¶
获取target名字。名字用来区分target。
- C
void easyar_ObjectTargetParameters_name(easyar_ObjectTargetParameters * This, easyar_String * * Return)
- C++
std::string name()
- Java
public java.lang.@Nonnull String name()
- Kotlin
fun name(): String
- Objective-C
- (NSString *)name
- Swift
public func name() -> String
- C#
public virtual string name()
setName¶
设置target名字。
- C
void easyar_ObjectTargetParameters_setName(easyar_ObjectTargetParameters * This, easyar_String * name)
- C++
void setName(std::string name)
- Java
public void setName(java.lang.@Nonnull String name)
- Kotlin
fun setName(name: String): Unit
- Objective-C
- (void)setName:(NSString *)name
- Swift
public func setName(_ name: String) -> Void
- C#
public virtual void setName(string name)
uid¶
获取target uid。可以在json配置中设置这个uid,在自己的代码中作为一种区分target的方法。
- C
void easyar_ObjectTargetParameters_uid(easyar_ObjectTargetParameters * This, easyar_String * * Return)
- C++
std::string uid()
- Java
public java.lang.@Nonnull String uid()
- Kotlin
fun uid(): String
- Objective-C
- (NSString *)uid
- Swift
public func uid() -> String
- C#
public virtual string uid()
setUid¶
设置target uid。
- C
void easyar_ObjectTargetParameters_setUid(easyar_ObjectTargetParameters * This, easyar_String * uid)
- C++
void setUid(std::string uid)
- Java
public void setUid(java.lang.@Nonnull String uid)
- Kotlin
fun setUid(uid: String): Unit
- Objective-C
- (void)setUid:(NSString *)uid
- Swift
public func setUid(_ uid: String) -> Void
- C#
public virtual void setUid(string uid)
meta¶
获取meta data。
- C
void easyar_ObjectTargetParameters_meta(easyar_ObjectTargetParameters * This, easyar_String * * Return)
- C++
std::string meta()
- Java
public java.lang.@Nonnull String meta()
- Kotlin
fun meta(): String
- Objective-C
- (NSString *)meta
- Swift
public func meta() -> String
- C#
public virtual string meta()
setMeta¶
设置meta data。
- C
void easyar_ObjectTargetParameters_setMeta(easyar_ObjectTargetParameters * This, easyar_String * meta)
- C++
void setMeta(std::string meta)
- Java
public void setMeta(java.lang.@Nonnull String meta)
- Kotlin
fun setMeta(meta: String): Unit
- Objective-C
- (void)setMeta:(NSString *)meta
- Swift
public func setMeta(_ meta: String) -> Void
- C#
public virtual void setMeta(string meta)
scale¶
模型的缩放比例。其值为模型在空间中的物理大小与在模型坐标系中的大小的比值,默认值为1。(假设模型坐标系中的标尺单位为米。)
- C
float easyar_ObjectTargetParameters_scale(easyar_ObjectTargetParameters * This)
- C++
float scale()
- Java
public float scale()
- Kotlin
fun scale(): Float
- Objective-C
- (float)scale
- Swift
public func scale() -> Float
- C#
public virtual float scale()
setScale¶
设置模型的缩放比例。其值为模型在空间中的物理大小与在模型坐标系中的大小的比值,默认值为1(假设模型坐标系中的标尺单位为米)。
还需要在渲染引擎中单独设置此模型缩放。
- C
void easyar_ObjectTargetParameters_setScale(easyar_ObjectTargetParameters * This, float size)
- C++
void setScale(float size)
- Java
public void setScale(float size)
- Kotlin
fun setScale(size: Float): Unit
- Objective-C
- (void)setScale:(float)size
- Swift
public func setScale(_ size: Float) -> Void
- C#
public virtual void setScale(float size)