ImageTargetParameters Class

Description

ImageTargetParameters表示创建 ImageTarget 所需要的参数。

Constructor

C

void easyar_ImageTargetParameters__ctor(easyar_ImageTargetParameters * * Return)

C++17

ImageTargetParameters()

C++03

ImageTargetParameters()

Java

public ImageTargetParameters()

Kotlin

constructor()

Objective-C

+ (easyar_ImageTargetParameters *) create

Swift

public convenience init()

C#

public ImageTargetParameters()

image

获取图像。

C

void easyar_ImageTargetParameters_image(easyar_ImageTargetParameters * This, easyar_Image * * Return)

C++17

std::shared_ptr<Image> image()

C++03

void image(Image * * Return)

Java

public @Nonnull Image image()

Kotlin

fun image(): Image

Objective-C

- (easyar_Image *)image

Swift

public func image() -> Image

C#

public virtual Image image()

setImage

设置图像。

C

void easyar_ImageTargetParameters_setImage(easyar_ImageTargetParameters * This, easyar_Image * image)

C++17

void setImage(std::shared_ptr<Image> image)

C++03

void setImage(Image * image)

Java

public void setImage(@Nonnull Image image)

Kotlin

fun setImage(image: Image): Unit

Objective-C

- (void)setImage:(easyar_Image *)image

Swift

public func setImage(_ image: Image) -> Void

C#

public virtual void setImage(Image image)

name

获取target名字。名字用来区分target。

C

void easyar_ImageTargetParameters_name(easyar_ImageTargetParameters * This, easyar_String * * Return)

C++17

std::string name()

C++03

void name(String * * Return)

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_ImageTargetParameters_setName(easyar_ImageTargetParameters * This, easyar_String * name)

C++17

void setName(std::string name)

C++03

void setName(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。target uid在云识别算法中使用。在没有接入云识别的时候,你可以在json配置中设置这个uid,在自己的代码中作为另一种区分target的方法。

C

void easyar_ImageTargetParameters_uid(easyar_ImageTargetParameters * This, easyar_String * * Return)

C++17

std::string uid()

C++03

void uid(String * * Return)

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_ImageTargetParameters_setUid(easyar_ImageTargetParameters * This, easyar_String * uid)

C++17

void setUid(std::string uid)

C++03

void setUid(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_ImageTargetParameters_meta(easyar_ImageTargetParameters * This, easyar_String * * Return)

C++17

std::string meta()

C++03

void meta(String * * Return)

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_ImageTargetParameters_setMeta(easyar_ImageTargetParameters * This, easyar_String * meta)

C++17

void setMeta(std::string meta)

C++03

void setMeta(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米的比值,默认值为1。

C

float easyar_ImageTargetParameters_scale(easyar_ImageTargetParameters * This)

C++17

float scale()

C++03

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米的比值,默认值为1。

还需要在渲染引擎中单独设置此模型缩放。

C

void easyar_ImageTargetParameters_setScale(easyar_ImageTargetParameters * This, float scale)

C++17

void setScale(float scale)

C++03

void setScale(float scale)

Java

public void setScale(float scale)

Kotlin

fun setScale(scale: Float): Unit

Objective-C

- (void)setScale:(float)scale

Swift

public func setScale(_ scale: Float) -> Void

C#

public virtual void setScale(float scale)