# TestGltfModelNode

Artifact: [androidx.xr.scenecore:scenecore-testing](https://developer.android.com/jetpack/androidx/releases/xr-scenecore) [View Source](https://cs.android.com/search?q=file:androidx/xr/scenecore/testing/GltfModelEntityTester.kt+class:androidx.xr.scenecore.testing.TestGltfModelNode) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

*** ** * ** ***


```
public final class TestGltfModelNode
```

<br />

*** ** * ** ***

A test-only data class that mirrors the properties of a `https://developer.android.com/reference/androidx/xr/scenecore/GltfModelNode`.

This is used to define the characteristics of a node to be added to a `https://developer.android.com/reference/androidx/xr/scenecore/testing/GltfModelEntityTester` for testing purposes.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/xr/scenecore/testing/TestGltfModelNode.Builder` Builder for `https://developer.android.com/reference/androidx/xr/scenecore/testing/TestGltfModelNode`. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/TestGltfModelNode#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/TestGltfModelNode#getLocalPose()()` The local pose (position and rotation) of the node relative to its immediate parent. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector3` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/TestGltfModelNode#getLocalScale()()` The local scale of the node relative to its immediate parent. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/TestGltfModelNode#getModelPose()()` The pose (position and rotation) of the node relative to the model's root node. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector3` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/TestGltfModelNode#getModelScale()()` The scale of the node relative to the model's root node. |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/TestGltfModelNode#getName()()` The name of the node. |
| `int` | `https://developer.android.com/reference/androidx/xr/scenecore/testing/TestGltfModelNode#hashCode()()` |

## Public methods

### equals

```
public boolean equals(Object other)
```

### getLocalPose

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

```
public final @NonNull Pose getLocalPose()
```

The local pose (position and rotation) of the node relative to its immediate parent.

### getLocalScale

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

```
public final @NonNull Vector3 getLocalScale()
```

The local scale of the node relative to its immediate parent.

### getModelPose

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

```
public final @NonNull Pose getModelPose()
```

The pose (position and rotation) of the node relative to the model's root node.

### getModelScale

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

```
public final @NonNull Vector3 getModelScale()
```

The scale of the node relative to the model's root node.

### getName

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

```
public final String getName()
```

The name of the node.

### hashCode

```
public int hashCode()
```