|
j3d.org Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.j3d.loaders.ac3d.Ac3dObject
public class Ac3dObject
AC3DObject provides a modeling of the properties that
constitute an object in the AC3D file format specification.
TODO:
| Constructor Summary | |
|---|---|
Ac3dObject()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addChild(Ac3dObject child)
Add a child to this object. |
void |
addSurface(Ac3dSurface surface)
Adds a Ac3dSurface at the given index. |
void |
addVertex(int index,
float[] vertex)
Mutator to add one vertex at the specified index. |
Ac3dObject |
getChild(int index)
Get the child at the given index. |
float |
getCreaseAngle()
Get the crease angle that the object uses for rendering surfaces and calculating normals. |
java.lang.String |
getData()
Get the character data associated with this object. |
float[] |
getLocation()
Get the current location displacement vector. |
java.lang.String |
getName()
Get the name associated with this object. |
int |
getNumKids()
Get the number of children objects that this object aggregates. |
int |
getNumSurfaces()
Query for the number of surfaces that this object contains. |
int |
getNumvert()
Get the number of verticies for the object. |
float[] |
getRotation()
Get the rotation matrix for the object. |
Ac3dSurface |
getSurface(int index)
Get the Ac3dSurface> at the given index. |
java.lang.String |
getTexture()
Get the texture file name associated with this material. |
float[] |
getTextureRepeat()
Get the current texture repeat values. |
java.lang.String |
getType()
Get the type of object that this instance represents. |
java.lang.String |
getURL()
Get the URL associated with this object. |
void |
getVertex(int index,
float[] vtx)
Get an individual vertex at a given index. |
float[] |
getVertices()
Get the entire array of vertices. |
void |
setCreaseAngle(float angle)
Set the crease angle that the object should use when shading. |
void |
setData(java.lang.String str)
Set the random character data that was associated with this object. |
void |
setLocation(float[] loc)
Change the location displacement vector. |
void |
setName(java.lang.String name)
Set the name property. |
void |
setNumvert(int num)
Set the number of verticies for the object. |
void |
setRotation(float[] rot)
Mutator to set the rotation matrix for the object. |
void |
setTexture(java.lang.String texture)
Set the name of the texture file to use |
void |
setTextureRepeat(float[] rep)
Change the texture repeat values. |
void |
setType(java.lang.String type)
Set the type of object that this instance represents. |
void |
setURL(java.lang.String str)
Set the informational URL that could be associated with this object. |
java.lang.String |
toString()
Generate a string representation of the internal state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Ac3dObject()
| Method Detail |
|---|
public void setName(java.lang.String name)
name - The value to set the internal name to.public java.lang.String getName()
public void setType(java.lang.String type)
type - The type to set this object to.public java.lang.String getType()
public void setCreaseAngle(float angle)
angle - The crease angle to usepublic float getCreaseAngle()
public int getNumKids()
public void addChild(Ac3dObject child)
child - The new child object instance to addpublic Ac3dObject getChild(int index)
index - The index of the child to getpublic void setNumvert(int num)
num - The number of verticies to set for the object.public int getNumvert()
public void setLocation(float[] loc)
loc - The location displacement vector to set to.public float[] getLocation()
public void setRotation(float[] rot)
rot - The rotation matrix to set our internal state to.public float[] getRotation()
public int getNumSurfaces()
public void addSurface(Ac3dSurface surface)
surface - The surface to add.public Ac3dSurface getSurface(int index)
public void addVertex(int index,
float[] vertex)
index - The index at which to add the vertex.vertex - Tuple of floats specifying the coordinate.public float[] getVertices()
public void getVertex(int index,
float[] vtx)
index - The index of the vertex to be fetchedvtx - An array of length 3 to copy the vertex value topublic void setTexture(java.lang.String texture)
texture - The value to set the internal texture name to.public java.lang.String getTexture()
public void setTextureRepeat(float[] rep)
rep - The repeat factorspublic float[] getTextureRepeat()
public void setData(java.lang.String str)
str - The string to usepublic java.lang.String getData()
public void setURL(java.lang.String str)
str - The string to use for the URLpublic java.lang.String getURL()
public java.lang.String toString()
toString in class java.lang.Object
|
j3d.org Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||