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, may be null.
|
Chunk |
getChunk()
Chunk container, may be null.
|
static long |
getCPtr(Model obj) |
int |
getFaceCount()
Face count.
|
int |
getKey()
Model identifier.
|
java.lang.String |
getLabel()
Model label.
|
Model.Mesh |
getMesh()
Model mesh, may be null.
|
MetaData |
getMeta()
Model meta data.
|
java.lang.String |
getPath()
Path to model file.
|
Model.Texture[] |
getTextures()
List of textures in the model.
|
int |
getVertexCount()
Vertex count;
|
boolean |
hasUV()
Returns true if model has UV coordinates.
|
boolean |
hasVertexColors()
Returns true if model has vertex colors.
|
boolean |
hasVertexConfidence()
Returns true if model has confidence values.
|
Vector3d |
pickPoint(Vector3d origin,
Vector3d target)
Returns ray intersection with the model surface.
|
Image |
renderPreview(long width,
long height,
Matrix4x4d transform,
Progress progress)
Generate model preview image.
|
void |
setLabel(java.lang.String label)
Model label.
|
void |
setMesh(Model.Mesh mesh)
Model mesh, may be null.
|
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()
public int getFaceCount()
public int getVertexCount()
public boolean hasUV()
public boolean hasVertexColors()
public boolean hasVertexConfidence()
public Vector3d pickPoint(Vector3d origin, Vector3d target)
origin - Ray origin.target - Point on the ray.public Image renderPreview(long width, long height, Matrix4x4d transform, Progress progress)
width - Preview image width.height - Preview image height.transform - 4x4 viewpoint transformation matrix.