|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VObject
VObjects represent "virtual objects", used within virtual environments. VObjects can have an id, an sid, and a name. An id is meant to uniquely identify some VObject. An sid (scoped id) is assumed to be unique only amongst children of the same parent VObject. A name is a "friendly" name, not required to be unique.
| Nested Class Summary | |
|---|---|
static interface |
VObject.Predicate
VObject.Predicates are Objects that implement a boolean test on VObjects, in the form of their "valid" method. |
| Method Summary | |
|---|---|
void |
getAngularVelocity(float[] wa)
Returns the angular velocity vector in the form of a float array of length three. |
void |
getAngularVelocity(float[] wa,
int offset)
Like getAngularVelocity(wa), but starting at the specified offset. |
String |
getId()
Returns an interned String that specifies the id. |
String |
getName()
Returns an interned String that specifies the name. |
void |
getRotation(float[] ra)
Returns the rotation quaternion in a float array of length four. |
void |
getRotation(float[] ra,
int offset)
Like getRotation(ra), but starting at the specified offset. |
void |
getScale(float[] sa)
Returns the scale vector in a float array of length three. |
void |
getScale(float[] sa,
int offset)
Like getScale(sa), but starting at the specified offset. |
String |
getSid()
Returns an interned String that specifies the sid. |
void |
getTranslation(float[] ta)
Returns the translation vector in the form of a float array of length three |
void |
getTranslation(float[] ta,
int offset)
Like getTranslation(ta), but starting at the specified offset |
void |
getVelocity(float[] va)
Returns the velocity vector in the form of a float array of length three. |
void |
getVelocity(float[] va,
int offset)
Like getVelocity(va), but starting at the specified offset. |
void |
setAngularVelocity(float[] wa)
Sets the angular velocity vector from a float array of length three. |
void |
setAngularVelocity(float[] wa,
int offset)
Like setAngularVelocity(wa), but starting at the specified offset. |
void |
setAngularVelocity(float wx,
float wy,
float wz)
Sets the angular velocity vector from three floats. |
void |
setAxisAngle(float ax,
float ay,
float az,
float angle)
Sets the rotation quaternion derived from a rotation axis (ax, ay, az) and a rotation angle angle, specified in radians. |
void |
setId(String id)
Sets the id for this VObject. |
void |
setName(String name)
Sets the name for this VObject. |
void |
setRotation(float[] ra)
Sets the rotation quaternion from a float array of length four. |
void |
setRotation(float[] ra,
int offset)
Like setRotation(ra), but starting at the specified offset. |
void |
setRotation(float qs,
float qx,
float qy,
float qz)
Sets the rotation quaternion from four floats. |
void |
setScale(float[] sa)
Sets the scale vector from a float array of lebgth three. |
void |
setScale(float[] sa,
int saIndex)
Like setScale(sa), but starting at the specified offset |
void |
setSid(String sid)
Sets the sid for this VObject. |
void |
setTranslation(float[] ta)
Sets the translation vector from a float array of length three. |
void |
setTranslation(float[] ta,
int offset)
Like setTranslation(ta), but starting at the specified offset. |
void |
setTranslation(float tx,
float ty,
float tz)
Sets the current translation vector from three floats. |
void |
setVelocity(float[] va)
Sets the velocity vector from a float array of length three. |
void |
setVelocity(float[] va,
int offset)
Like setVelocity(va), but starting at the specified offset. |
void |
setVelocity(float vx,
float vy,
float vz)
Sets the velocity vector from three floats. |
| Method Detail |
|---|
void setId(String id)
void setSid(String sid)
void setName(String name)
String getId()
String getSid()
String getName()
void getTranslation(float[] ta)
void getTranslation(float[] ta,
int offset)
void setTranslation(float[] ta)
void setTranslation(float[] ta,
int offset)
void setTranslation(float tx,
float ty,
float tz)
void setRotation(float[] ra)
void setRotation(float[] ra,
int offset)
void getRotation(float[] ra)
void getRotation(float[] ra,
int offset)
void setRotation(float qs,
float qx,
float qy,
float qz)
void setAxisAngle(float ax,
float ay,
float az,
float angle)
void setScale(float[] sa)
void setScale(float[] sa,
int saIndex)
void getScale(float[] sa)
void getScale(float[] sa,
int offset)
void getVelocity(float[] va)
void getVelocity(float[] va,
int offset)
void setVelocity(float[] va)
void setVelocity(float[] va,
int offset)
void setVelocity(float vx,
float vy,
float vz)
void getAngularVelocity(float[] wa)
void getAngularVelocity(float[] wa,
int offset)
void setAngularVelocity(float[] wa)
void setAngularVelocity(float[] wa,
int offset)
void setAngularVelocity(float wx,
float wy,
float wz)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||