Table of Contents

Class ThreeDofCameraDevice

Espace de noms
easyar

ThreeDofCameraDevice implémente un appareil camera three dof et produit InputFrame dont le CameraTransformType est ThreeDofRotOnly (incluant image, camera parameters, timestamp, matrice de transformation de pose et tracking status). Après création, start/stop peut être appelé pour démarrer et arrêter la collecte des données video stream. Lorsque l'appareil n'est plus nécessaire, close peut être appelé pour le fermer. Il ne doit plus être utilisé après close. ThreeDofCameraDevice produit InputFrame via inputFrameSource, et inputFrameSource doit être connecté à InputFrameSink pour être utilisé. bufferCapacity représente la capacité du buffer de InputFrame. Si plus de InputFrame que ce nombre sont produits par l'appareil et ne sont pas libérés, l'appareil ne produira plus de nouveaux InputFrame jusqu'à ce que les InputFrame précédents soient libérés. Cela peut provoquer des problèmes comme le gel de l'image.

ThreeDofCameraDevice

Constructeurs

ThreeDofCameraDevice

Méthode de création par défaut.

void easyar_ThreeDofCameraDevice__ctor(easyar_ThreeDofCameraDevice * * Return)
ThreeDofCameraDevice()
public ThreeDofCameraDevice()
constructor()
+ (easyar_ThreeDofCameraDevice *) create
public convenience init()
public ThreeDofCameraDevice()

Méthodes

isAvailable

Vérifie s'il est disponible. Renvoie true uniquement sur Android ou iOS lorsque le gyroscope est disponible.

bool easyar_ThreeDofCameraDevice_isAvailable(void)
static bool isAvailable()
public static boolean isAvailable()
companion object fun isAvailable(): Boolean
+ (bool)isAvailable
public static func isAvailable() -> Bool
public static bool isAvailable()

Retours

Type Description
Boolean

bufferCapacity

Capacité du buffer de InputFrame. La valeur par défaut est 8.

int easyar_ThreeDofCameraDevice_bufferCapacity(const easyar_ThreeDofCameraDevice * This)
int bufferCapacity()
public int bufferCapacity()
fun bufferCapacity(): Int
- (int)bufferCapacity
public func bufferCapacity() -> Int32
public virtual int bufferCapacity()

Retours

Type Description
Int32

setBufferCapacity

Définit la capacité du buffer de InputFrame.

void easyar_ThreeDofCameraDevice_setBufferCapacity(easyar_ThreeDofCameraDevice * This, int capacity)
void setBufferCapacity(int capacity)
public void setBufferCapacity(int capacity)
fun setBufferCapacity(capacity: Int): Unit
- (void)setBufferCapacity:(int)capacity
public func setBufferCapacity(_ capacity: Int32) -> Void
public virtual void setBufferCapacity(int capacity)

Paramètres

Nom Type Description
capacity Int32

Retours

Type Description
Void

inputFrameSource

Port de sortie InputFrame.

void easyar_ThreeDofCameraDevice_inputFrameSource(easyar_ThreeDofCameraDevice * This, easyar_InputFrameSource * * Return)
std::shared_ptr<InputFrameSource> inputFrameSource()
public @Nonnull InputFrameSource inputFrameSource()
fun inputFrameSource(): InputFrameSource
- (easyar_InputFrameSource *)inputFrameSource
public func inputFrameSource() -> InputFrameSource
public virtual InputFrameSource inputFrameSource()

Retours

Type Description
InputFrameSource

setFocusMode

Définit le focus mode sur focusMode. Appeler avant start.

void easyar_ThreeDofCameraDevice_setFocusMode(easyar_ThreeDofCameraDevice * This, easyar_ThreeDofCameraDeviceFocusMode focusMode)
void setFocusMode(ThreeDofCameraDeviceFocusMode focusMode)
public void setFocusMode(int focusMode)
fun setFocusMode(focusMode: Int): Unit
- (void)setFocusMode:(easyar_ThreeDofCameraDeviceFocusMode)focusMode
public func setFocusMode(_ focusMode: ThreeDofCameraDeviceFocusMode) -> Void
public virtual void setFocusMode(ThreeDofCameraDeviceFocusMode focusMode)

Paramètres

Nom Type Description
focusMode ThreeDofCameraDeviceFocusMode

Retours

Type Description
Void

type

Type de camera. Appeler après un open réussi.

easyar_CameraDeviceType easyar_ThreeDofCameraDevice_type(const easyar_ThreeDofCameraDevice * This)
CameraDeviceType type()
public int type()
fun type(): Int
- (easyar_CameraDeviceType)type
public func type() -> CameraDeviceType
public virtual CameraDeviceType type()

Retours

Type Description
CameraDeviceType

cameraOrientation

Angle de rotation horaire requis pour afficher l'image camera dans l'orientation naturelle de l'appareil. Appeler après un open réussi.

int easyar_ThreeDofCameraDevice_cameraOrientation(const easyar_ThreeDofCameraDevice * This)
int cameraOrientation()
public int cameraOrientation()
fun cameraOrientation(): Int
- (int)cameraOrientation
public func cameraOrientation() -> Int32
public virtual int cameraOrientation()

Retours

Type Description
Int32

size

Obtient la taille image actuelle. Appeler après un open réussi.

easyar_Vec2I easyar_ThreeDofCameraDevice_size(const easyar_ThreeDofCameraDevice * This)
Vec2I size()
public @Nonnull Vec2I size()
fun size(): Vec2I
- (easyar_Vec2I *)size
public func size() -> Vec2I
public virtual Vec2I size()

Retours

Type Description
Vec2I

supportedSizeCount

Obtient le nombre de toutes les tailles image prises en charge par l'appareil actuel. Appeler après un open réussi.

int easyar_ThreeDofCameraDevice_supportedSizeCount(const easyar_ThreeDofCameraDevice * This)
int supportedSizeCount()
public int supportedSizeCount()
fun supportedSizeCount(): Int
- (int)supportedSizeCount
public func supportedSizeCount() -> Int32
public virtual int supportedSizeCount()

Retours

Type Description
Int32

supportedSize

Obtient la taille image à l'index parmi toutes les tailles image prises en charge par l'appareil actuel. Renvoie {0, 0} si index est hors plage. Appeler après un open réussi.

easyar_Vec2I easyar_ThreeDofCameraDevice_supportedSize(const easyar_ThreeDofCameraDevice * This, int index)
Vec2I supportedSize(int index)
public @Nonnull Vec2I supportedSize(int index)
fun supportedSize(index: Int): Vec2I
- (easyar_Vec2I *)supportedSize:(int)index
public func supportedSize(_ index: Int32) -> Vec2I
public virtual Vec2I supportedSize(int index)

Paramètres

Nom Type Description
index Int32

Retours

Type Description
Vec2I

setSize

Définit la taille image actuelle. La valeur disponible la plus proche de la valeur définie sera utilisée. size peut être utilisé pour obtenir la taille réelle. Appeler après un open réussi. frameRateRange peut changer après la définition de size.

bool easyar_ThreeDofCameraDevice_setSize(easyar_ThreeDofCameraDevice * This, easyar_Vec2I size)
bool setSize(Vec2I size)
public boolean setSize(@Nonnull Vec2I size)
fun setSize(size: Vec2I): Boolean
- (bool)setSize:(easyar_Vec2I *)size
public func setSize(_ size: Vec2I) -> Bool
public virtual bool setSize(Vec2I size)

Paramètres

Nom Type Description
size Vec2I

Retours

Type Description
Boolean

open

Ouvre la camera arrière de l'appareil. Renvoie false si open échoue.

bool easyar_ThreeDofCameraDevice_open(easyar_ThreeDofCameraDevice * This)
bool open()
public boolean open()
fun open(): Boolean
- (bool)open
public func `open`() -> Bool
public virtual bool open()

Retours

Type Description
Boolean

start

Démarre la collecte des données video stream.

bool easyar_ThreeDofCameraDevice_start(easyar_ThreeDofCameraDevice * This)
bool start()
public boolean start()
fun start(): Boolean
- (bool)start
public func start() -> Bool
public virtual bool start()

Retours

Type Description
Boolean

stop

Arrête la collecte des données video stream.

void easyar_ThreeDofCameraDevice_stop(easyar_ThreeDofCameraDevice * This)
void stop()
public void stop()
fun stop(): Unit
- (void)stop
public func stop() -> Void
public virtual void stop()

Retours

Type Description
Void

close

Ferme. Ne doit plus être utilisé après close.

void easyar_ThreeDofCameraDevice_close(easyar_ThreeDofCameraDevice * This)
void close()
public void close()
fun close(): Unit
- (void)close
public func close() -> Void
public virtual void close()

Retours

Type Description
Void

frameRateRangeLower

Obtient la limite inférieure de la plage frame rate actuelle. Appeler après un open réussi.

double easyar_ThreeDofCameraDevice_frameRateRangeLower(const easyar_ThreeDofCameraDevice * This)
double frameRateRangeLower()
public double frameRateRangeLower()
fun frameRateRangeLower(): Double
- (double)frameRateRangeLower
public func frameRateRangeLower() -> Double
public virtual double frameRateRangeLower()

Retours

Type Description
Double

frameRateRangeUpper

Obtient la limite supérieure de la plage frame rate actuelle. Appeler après un open réussi.

double easyar_ThreeDofCameraDevice_frameRateRangeUpper(const easyar_ThreeDofCameraDevice * This)
double frameRateRangeUpper()
public double frameRateRangeUpper()
fun frameRateRangeUpper(): Double
- (double)frameRateRangeUpper
public func frameRateRangeUpper() -> Double
public virtual double frameRateRangeUpper()

Retours

Type Description
Double