Banuba SDK
BNBComponent.h
Go to the documentation of this file.
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file was generated by Djinni from scene.djinni
3 
4 #import "BNBComponentType.h"
5 #import <Foundation/Foundation.h>
6 @class BNBBodyTracker;
7 @class BNBFaceMorphing;
8 @class BNBFaceTracker;
9 @class BNBHandTracker;
10 @class BNBMeshInstance;
11 @class BNBTransformation3d;
12 
13 
14 /**Base component class. */
15 
16 #ifndef DJINNI_EXPORT
17  #define DJINNI_EXPORT __attribute__((__visibility__("default")))
18 #endif
19 
21 @interface BNBComponent : NSObject
22 
23 /**@return component type. Can be face_tracker, transformation, mesh_instance or face_morphing. */
24 - (BNBComponentType)getComponentType;
25 
26 /**cast component to face tracker subclass instance. Will throw if derived class is not instance of face_tracker. */
27 - (nullable BNBFaceTracker *)asFaceTracker;
28 
29 /**cast component to mesh_instance subclass instance. Will throw if derived class is not instance of mesh_instance. */
30 - (nullable BNBMeshInstance *)asMeshInstance;
31 
32 /**cast component to face_morphing subclass instance. Will throw if derived class is not instance of face_morphing. */
33 - (nullable BNBFaceMorphing *)asFaceMorphing;
34 
35 /**cast component to transformation_3d subclass instance. Will throw if derived class is not instance of transformation_3d. */
37 
38 /**cast component to hand_tracker subclass instance. Will throw if derived class is not instance of hand_tracker. */
39 - (nullable BNBHandTracker *)asHandTracker;
40 
41 /**cast component to body_tracker subclass instance. Will throw if derived class is not instance of body_tracker. */
42 - (nullable BNBBodyTracker *)asBodyTracker;
43 
44 @end
-[BNBComponent getComponentType]
BNBComponentType getComponentType()
-[BNBComponent asMeshInstance]
nullable BNBMeshInstance * asMeshInstance()
cast component to mesh_instance subclass instance.
-[BNBComponent asHandTracker]
nullable BNBHandTracker * asHandTracker()
cast component to hand_tracker subclass instance.
BNBComponent
Definition: BNBComponent.h:21
-[BNBComponent asFaceMorphing]
nullable BNBFaceMorphing * asFaceMorphing()
cast component to face_morphing subclass instance.
BNBFaceMorphing
Definition: BNBFaceMorphing.h:19
-[BNBComponent asTransformation]
nullable BNBTransformation3d * asTransformation()
cast component to transformation_3d subclass instance.
BNBMeshInstance
Definition: BNBMeshInstance.h:20
DJINNI_EXPORT
#define DJINNI_EXPORT
Base component class.
Definition: BNBComponent.h:17
-[BNBComponent asFaceTracker]
nullable BNBFaceTracker * asFaceTracker()
cast component to face tracker subclass instance.
BNBFaceTracker
Face tracker component.
Definition: BNBFaceTracker.h:23
-[BNBComponent asBodyTracker]
nullable BNBBodyTracker * asBodyTracker()
cast component to body_tracker subclass instance.
BNBHandTracker
Definition: BNBHandTracker.h:17
BNBBodyTracker
Definition: BNBBodyTracker.h:16
BNBTransformation3d
Definition: BNBTransformation3d.h:16
BNBComponentType.h