|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsubscript.vis.VisObject
public abstract class VisObject
The abstract base class of all objects which can be drawn on a VisCanvas. Every object has a transformation matrix which alters the object's display. Most methods that modify the object's transformation return the same object, allowing multiple transformations to be easily concatenated.
Constructor Summary | |
---|---|
VisObject()
|
Method Summary | |
---|---|
abstract Box3D |
getExtents(Matrix S)
Get the bounding box in global coordinates, i.e., using the object's transform T and the passed-in matrix S. |
Matrix |
getPosition()
Returns the object's transformation matrix. |
abstract void |
render(VisRenderer r,
VisWorld world,
VisView v)
Called by VisCanvas when it is time to render the object. |
VisObject |
rotateX(double t)
Concatenate the object's current transform with a rotation around the X axis. |
VisObject |
rotateY(double t)
Concatenate the object's current transform with a rotation around the Y axis. |
VisObject |
rotateZ(double t)
Concatenate the object's current transform with a rotation around the Z axis. |
VisObject |
setPosition(GPoint2D p)
Set the object's transform to a translation specified by a 2D point. |
VisObject |
setPosition(Matrix T)
Set the object's transform using either a 3x1 or 4x4 matrix. |
VisObject |
setPosition(Transform3D T)
Set the object's transform. |
VisObject |
setPositionT(Matrix T)
Set the object's transform using either a 3x1 or 4x4 matrix. |
VisObject |
setPositionXYT(double x,
double y,
double t)
Set the object's transform to the 2D rigid-body transformation parameterized by x, y, t. |
VisObject |
setPositionXYT(Matrix G)
Set the object's transform to the 2D rigid-body transformation parameterized by a 3x1 matrix (dx, dy, dt). |
VisObject |
setPositionXYZ(double x,
double y,
double z)
Set the object's transform to a translation. |
VisObject |
transform(Matrix T)
Concatenate the object's current transform with another transform. |
VisObject |
transform(Quaternion q,
GPoint3D p)
??? |
VisObject |
translate(double dx,
double dy,
double dz)
Concatenate the object's current transform with a translation. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VisObject()
Method Detail |
---|
public abstract void render(VisRenderer r, VisWorld world, VisView v)
public VisObject translate(double dx, double dy, double dz)
public VisObject rotateX(double t)
public VisObject rotateZ(double t)
public VisObject rotateY(double t)
public VisObject transform(Quaternion q, GPoint3D p)
public VisObject transform(Matrix T)
public VisObject setPositionXYZ(double x, double y, double z)
public VisObject setPositionXYT(Matrix G)
public VisObject setPositionXYT(double x, double y, double t)
public VisObject setPosition(GPoint2D p)
public VisObject setPosition(Transform3D T)
public VisObject setPosition(Matrix T)
public VisObject setPositionT(Matrix T)
public Matrix getPosition()
public abstract Box3D getExtents(Matrix S)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |