Table of Contents

Class ThreeDofCameraDevice

Espace de noms
easyar

ThreeDofCameraDevice implémente un appareil photo à trois degrés de liberté (3 dof), produisant un InputFrame dont le CameraTransformType est ThreeDofRotOnly (contenant l'image, les paramètres de l'appareil photo, le timestamp, la matrice de transformation de position et d'orientation, et l'état de suivi). Après sa création, on peut appeler start/stop pour démarrer et arrêter la capture du flux vidéo. Lorsqu'il n'est plus nécessaire, on peut appeler close pour le fermer. Il ne faut plus l'utiliser après close. ThreeDofCameraDevice sort le InputFrame via inputFrameSource. Cette inputFrameSource doit être connectée à un InputFrameSink pour être utilisée. La bufferCapacity indique la capacité du tampon des InputFrame. Si plus de InputFrame que ce nombre sont produits par l'appareil et n'ont pas été libérés, l'appareil cessera de produire de nouveaux InputFrame jusqu'à ce que les précédents soient libérés. Cela peut entraîner des problèmes comme un blocage 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 si disponible. Retourne true uniquement sur Android ou iOS si un 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

InputFrame capacité de la mémoire tampon, valeur par défaut 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éfinir la capacité du tampon 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

InputFrame port de sortie

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

Configurer le mode de mise au point 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 caméra. Appelé 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

L'angle de rotation dans le sens horaire nécessaire pour afficher l'image de la caméra dans l'orientation naturelle de l'appareil. Appelé 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

Obtenir la taille actuelle de l'image. 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

Obtenir le nombre de toutes les tailles d'image prises en charge par l'appareil actuel. Appeler après une ouverture réussie.

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

Obtenir la taille d'image index-ième parmi toutes les tailles d'image prises en charge par l'appareil actuel. Retourne {0, 0} si l'index est hors limites. À 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éfinir la taille actuelle de l'image. La valeur optionnelle la plus proche de la valeur définie sera utilisée. Utilisez size pour obtenir la taille réelle. À appeler après un open réussi. Après avoir défini size, frameRateRange peut changer.

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

Ouvrez la caméra arrière de l'appareil. Si l'ouverture échoue, la fonction renvoie false.

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

Commencer la collecte des données de flux vidéo

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êtez la collecte des données de flux vidéo.

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

close after

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

Obtenir la limite inférieure de la plage de fréquence d'images 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

Obtenir la limite supérieure de la plage de fréquence d'images 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