![]() |
KudanAR - iOS
1.6.0
|
#import <ARMultiTrackableNode.h>
Inherits ARNode.
Instance Methods | |
(void) | - addTrackable: |
(void) | - removeTrackable: |
![]() | |
(void) | - addChild: |
(void) | - addChildren: |
(void) | - removeChild: |
(void) | - removeAllChildren |
(void) | - remove |
(ARNode *) | - findChildWithName: |
(void) | - markWorldTransformAsDirty |
(void) | - translateByX:y:z: |
(void) | - translateByX:y:z:transformSpace: |
(void) | - translateByVector: |
(void) | - translateByVector:transformSpace: |
(void) | - scaleByUniform: |
(void) | - scaleByX:y:z: |
(void) | - scaleByVector: |
(void) | - rotateByDegrees:axisX:y:z: |
(void) | - rotateByRadians:axisX:y:z: |
(void) | - rotateByQuaternion: |
(ARVector3 *) | - positionToWorld: |
(ARVector3 *) | - positionToEye: |
(ARQuaternion *) | - orientationToWorld: |
(ARQuaternion *) | - orientationToEye: |
(CGPoint) | - viewPortFromNodePosition: |
(void) | - render |
(void) | - preRender |
(void) | - postRender |
(void) | - addTouchTarget:withAction: |
(void) | - didReceiveTouch |
(ARVector3 *) | - nodeFromViewPort: |
Properties | |
NSArray * | trackables |
![]() | |
NSString * | name |
ARNode * | parent |
NSArray< ARNode * > * | children |
NSArray * | descendants |
ARVector3 * | position |
ARVector3 * | scale |
ARQuaternion * | orientation |
ARMatrix4 * | localTransform |
ARMatrix4 * | worldTransform |
ARMatrix4 * | fullTransform |
ARQuaternion * | fullOrientation |
ARQuaternion * | worldOrientation |
ARVector3 * | worldScale |
ARVector3 * | worldPosition |
ARVector3 * | fullPosition |
ARNode * | world |
NSUInteger | childCount |
BOOL | visible |
Additional Inherited Members | |
![]() | |
(instancetype) | + nodeWithName: |
![]() | |
enum | TransformSpace { ARNodeTransformSpaceLocal, ARNodeTransformSpaceParent, ARNodeTransformSpaceWorld } |
An ARMultiTrackableNode is a type of ARNode that dynamically changes which world it is a child of. This allows a single node to be displayed across different worlds at different times.
It is useful when one piece of content needs to be displayed across numerous trackables, as that content can be reused, and does not need to be created more than once.
An ARMultiTrackableNode cannot be used to display content on multiple trackables at the same time. When a trackable is detected, this node changes its world. That means that detecting two trackables will simply make it change its world to the one that was detected last.
- (void) addTrackable: | (ARImageTrackable *) | trackable |
Adds a trackable to the array of trackables that this node will attach itself to when detected. This method adds one trackable at a time.
Example of use:
trackable | The trackable to add. |
- (void) removeTrackable: | (ARImageTrackable *) | trackable |
Removes a trackable from the array of trackables and no longer reparents itself to it once detected. This method removes one trackable at a time.
Example of use:
trackable | The trackable to remove. |
|
readwritenonatomicassign |
The array of all trackables this node follows.