![]() |
KudanAR - iOS
|
#import <ARMeshNode.h>
Inheritance diagram for ARMeshNode:
Collaboration diagram for ARMeshNode:Class Methods | |
| (instancetype) | + testMeshNodeWithRed:green:blue: |
| (instancetype) | + testMeshNodeWithTexture: |
| (instancetype) | + meshNodeWithTexture:width:height: |
| (instancetype) | + meshNodeWithRed:green:blue:width:height: |
Class Methods inherited from ARNode | |
| (instancetype) | + nodeWithName: |
Properties | |
| ARMesh * | mesh |
| ARMaterial * | material |
| BOOL | cull |
Properties inherited from ARNode | |
| 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 | |
Instance Methods inherited from ARNode | |
| (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: |
Protected Member Functions inherited from ARNode | |
| (typedef) | - NS_ENUM |
An ARMeshNode is a subclass of ARNode that represents a drawable mesh. The geometry to be used, as well as its shading, is specified via this node.
| + (instancetype) meshNodeWithRed: | (float) | red | |
| green: | (float) | green | |
| blue: | (float) | blue | |
| width: | (float) | width | |
| height: | (float) | height | |
Creates a mesh with a RGB colour material and dimensions of Width x Height.
| red | Colour value between 0..1. |
| green | Colour value between 0..1. |
| blue | Colour value between 0..1. |
| width | Mesh width. |
| height | Mesh height. |
| + (instancetype) meshNodeWithTexture: | (ARTexture *) | texture | |
| width: | (float) | width | |
| height: | (float) | height | |
Creates a mesh with a textured material and dimensions of Width x Height.
| texture | The texture used to colour the mesh |
| width | Mesh width. |
| height | Mesh height. |
| + (instancetype) testMeshNodeWithRed: | (float) | red | |
| green: | (float) | green | |
| blue: | (float) | blue | |
Creates a square test mesh with a RGB colour material and dimensions of 10x10.
| red | Colour value between 0..1. |
| green | Colour value between 0..1. |
| blue | Colour value between 0..1. |
| + (instancetype) testMeshNodeWithTexture: | (ARTexture *) | texture |
Creates a square test mesh with dimensions of 100x100.
| texture | The texture used to colour the mesh. |
|
readwritenonatomicassign |
Sets facet culling. The type of facet culling is set in ARMaterial. Default is NO.
|
readwritenonatomicassign |
The material to use for shading the mesh attached to this node. nil materials will not be drawn. Materials can be shared between ARMeshNode objects.
Example of how to set a material:
|
readwritenonatomicassign |
The mesh geometry to use. Meshes can be shared between ARMeshNode objects.