Package limn.render3d.gltf
Record Class GltfModel.NodeDef
java.lang.Object
java.lang.Record
limn.render3d.gltf.GltfModel.NodeDef
- Enclosing class:
GltfModel
public static record GltfModel.NodeDef(Transform3D transform, int mesh, int[] children, String name)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNodeDef(Transform3D transform, int mesh, int[] children, String name) Creates an instance of aNodeDefrecord class. -
Method Summary
Modifier and TypeMethodDescriptionint[]children()Returns the value of thechildrenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmesh()Returns the value of themeshrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformrecord component.
-
Constructor Details
-
NodeDef
Creates an instance of aNodeDefrecord class.- Parameters:
transform- the value for thetransformrecord componentmesh- the value for themeshrecord componentchildren- the value for thechildrenrecord componentname- the value for thenamerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
transform
Returns the value of thetransformrecord component.- Returns:
- the value of the
transformrecord component
-
mesh
public int mesh()Returns the value of themeshrecord component.- Returns:
- the value of the
meshrecord component
-
children
public int[] children()Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-