BNBComponent
Objective-C
@interface BNBComponent : NSObject
/**@return component type. Can be face_tracker, transformation, mesh_instance or face_morphing. */
- (BNBComponentType)getComponentType;
/**cast component to face tracker subclass instance. Will throw if derived class is not instance of face_tracker. */
- (nullable BNBFaceTracker *)asFaceTracker;
/**cast component to mesh_instance subclass instance. Will throw if derived class is not instance of mesh_instance. */
- (nullable BNBMeshInstance *)asMeshInstance;
/**cast component to face_morphing subclass instance. Will throw if derived class is not instance of face_morphing. */
- (nullable BNBFaceMorphing *)asFaceMorphing;
/**cast component to transformation_3d subclass instance. Will throw if derived class is not instance of transformation_3d. */
- (nullable BNBTransformation3d *)asTransformation;
/**cast component to hand_tracker subclass instance. Will throw if derived class is not instance of hand_tracker. */
- (nullable BNBHandTracker *)asHandTracker;
/**cast component to body_tracker subclass instance. Will throw if derived class is not instance of body_tracker. */
- (nullable BNBBodyTracker *)asBodyTracker;
@end
Swift
class BNBComponent : NSObject
Undocumented
-
Declaration
Objective-C
- (BNBComponentType)getComponentType;
Swift
func getType() -> BNBComponentType
Return Value
component type. Can be face_tracker, transformation, mesh_instance or face_morphing.
-
cast component to face tracker subclass instance. Will throw if derived class is not instance of face_tracker.
Declaration
Objective-C
- (nullable BNBFaceTracker *)asFaceTracker;
Swift
func asFaceTracker() -> BNBFaceTracker?
-
cast component to mesh_instance subclass instance. Will throw if derived class is not instance of mesh_instance.
Declaration
Objective-C
- (nullable BNBMeshInstance *)asMeshInstance;
Swift
func asMeshInstance() -> BNBMeshInstance?
-
cast component to face_morphing subclass instance. Will throw if derived class is not instance of face_morphing.
Declaration
Objective-C
- (nullable BNBFaceMorphing *)asFaceMorphing;
Swift
func asFaceMorphing() -> BNBFaceMorphing?
-
cast component to transformation_3d subclass instance. Will throw if derived class is not instance of transformation_3d.
Declaration
Objective-C
- (nullable BNBTransformation3d *)asTransformation;
Swift
func asTransformation() -> BNBTransformation3d?
-
cast component to hand_tracker subclass instance. Will throw if derived class is not instance of hand_tracker.
Declaration
Objective-C
- (nullable BNBHandTracker *)asHandTracker;
Swift
func asHandTracker() -> BNBHandTracker?
-
cast component to body_tracker subclass instance. Will throw if derived class is not instance of body_tracker.
Declaration
Objective-C
- (nullable BNBBodyTracker *)asBodyTracker;
Swift
func asBodyTracker() -> BNBBodyTracker?