public class Model
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Model.Face |
static class |
Model.Mesh |
static class |
Model.TexFace |
static class |
Model.Texture |
static class |
Model.TextureType |
static class |
Model.TexVertex |
static class |
Model.Vertex |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
swigCMemOwn |
| Constructor and Description |
|---|
Model() |
Model(long cPtr,
boolean cMemoryOwn) |
Model(Model model) |
| Modifier and Type | Method and Description |
|---|---|
static long[] |
cArrayUnwrap(Model[] arrayWrapper) |
static Model[] |
cArrayWrap(long[] cArray,
boolean cMemoryOwn) |
void |
delete() |
protected void |
finalize() |
Model.Texture |
getActiveTexture(Model.TextureType type)
Active texture of a given type.
|
Chunk |
getChunk()
Chunk container.
|
static long |
getCPtr(Model obj) |
int |
getKey()
Model identifier.
|
java.lang.String |
getLabel()
Model label.
|
Model.Mesh |
getMesh()
Model mesh.
|
MetaData |
getMeta()
Model meta data.
|
java.lang.String |
getPath()
Path to model file.
|
Model.Texture[] |
getTextures()
List of textures in the model.
|
Vector3d |
pickPoint(Vector3d origin,
Vector3d target)
Returns ray intersection with the model surface.
|
void |
setLabel(java.lang.String label)
Model label.
|
void |
setMesh(Model.Mesh mesh)
Model mesh.
|
void |
setMeta(MetaData meta)
Model meta data.
|
public Model(long cPtr,
boolean cMemoryOwn)
public Model()
public Model(Model model)
public static long getCPtr(Model obj)
protected void finalize()
finalize in class java.lang.Objectpublic void delete()
public static long[] cArrayUnwrap(Model[] arrayWrapper)
public static Model[] cArrayWrap(long[] cArray, boolean cMemoryOwn)
public int getKey()
public Chunk getChunk()
public void setLabel(java.lang.String label)
public java.lang.String getLabel()
public Model.Texture[] getTextures()
public Model.Texture getActiveTexture(Model.TextureType type)
public void setMesh(Model.Mesh mesh)
public Model.Mesh getMesh()
public java.lang.String getPath()
public void setMeta(MetaData meta)
public MetaData getMeta()