|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.illinois.ncsa.versus.adapter.impl.MeshAdapter
public class MeshAdapter
Adapter for NCSA 3DUtilities Mesh class.
Field Summary | |
---|---|
private static org.apache.commons.logging.Log |
log
|
private edu.ncsa.model.Mesh |
mesh
|
Constructor Summary | |
---|---|
MeshAdapter()
|
|
MeshAdapter(edu.ncsa.model.Mesh mesh)
Adapter for NCSA 3DUtilities Mesh. |
Method Summary | |
---|---|
int[] |
getFace(int index)
Get one face at a time. |
java.util.Vector<int[]> |
getFaces()
Get faces. |
edu.ncsa.model.Mesh |
getMesh()
Get the mesh. |
java.lang.String |
getName()
Pretty name of adapter. |
double[] |
getVertex(int index)
Get one vertex at a time. |
java.util.Vector<double[]> |
getVertices()
Get vertices. |
void |
load(java.io.File file)
Load a file from disk in the data structure specific to the adapter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private edu.ncsa.model.Mesh mesh
private static org.apache.commons.logging.Log log
Constructor Detail |
---|
public MeshAdapter()
public MeshAdapter(edu.ncsa.model.Mesh mesh)
image
- Method Detail |
---|
public java.lang.String getName()
Adapter
getName
in interface Adapter
public java.util.Vector<double[]> getVertices()
HasVertices
getVertices
in interface HasVertices
public double[] getVertex(int index)
HasVertices
getVertex
in interface HasVertices
index
- the index of the vertex
public java.util.Vector<int[]> getFaces()
HasFaces
getFaces
in interface HasFaces
public int[] getFace(int index)
HasFaces
getFace
in interface HasFaces
index
- the index of the face
public edu.ncsa.model.Mesh getMesh()
HasMesh
getMesh
in interface HasMesh
public void load(java.io.File file) throws java.io.IOException
FileLoader
load
in interface FileLoader
file
- file to load
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |