|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectartofillusion.object.Object3D
artofillusion.object.ReferenceImage
public class ReferenceImage
A ReferenceImage is an object that displays an image for use during modelling. When drawn in a ViewerCanvas, it is a rectangle with the image mapped to it, but when rendered by a Renderer, it is invisible.
| Field Summary |
|---|
| Fields inherited from class artofillusion.object.Object3D |
|---|
APPROXIMATELY, CANT_CONVERT, EXACTLY |
| Constructor Summary | |
|---|---|
ReferenceImage()
Create a ReferenceImage whose width and height are both 1.0, and with no image set. |
|
ReferenceImage(java.io.DataInputStream in,
Scene theScene)
Reconstruct a ReferenceImage that was saved to a file. |
|
ReferenceImage(java.awt.Image image)
|
|
| Method Summary | |
|---|---|
void |
applyPoseKeyframe(Keyframe k)
Modify this object based on a pose keyframe. |
boolean |
canSetTexture()
This method tells whether textures can be assigned to the object. |
void |
copyObject(Object3D obj)
Copy all the properties of another object, to make this one identical to it. |
Object3D |
duplicate()
Create a new object which is an exact duplicate of this one. |
BoundingBox |
getBounds()
Get a BoundingBox which just encloses the object. |
java.awt.Image |
getImage()
Get the Image displayed by this object. |
Keyframe |
getPoseKeyframe()
Return a Keyframe which describes the current pose of this object. |
WireframeMesh |
getWireframeMesh()
Every object should override this method to return a WireframeMesh. |
void |
renderObject(ObjectInfo obj,
ViewerCanvas canvas,
Vec3 viewDir)
This method is overridden to render the reference image into the ViewerCanvas. |
void |
setImage(java.awt.Image image)
Set the Image displayed by this object. |
void |
setSize(double xsize,
double ysize,
double zsize)
Resize the object. |
void |
writeToFile(java.io.DataOutputStream out,
Scene theScene)
The following method writes the object's data to an output stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReferenceImage()
public ReferenceImage(java.awt.Image image)
public ReferenceImage(java.io.DataInputStream in,
Scene theScene)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.awt.Image getImage()
public void setImage(java.awt.Image image)
public boolean canSetTexture()
Object3D
canSetTexture in class Object3Dpublic Object3D duplicate()
Object3D
duplicate in class Object3Dpublic void copyObject(Object3D obj)
Object3D
copyObject in class Object3Dpublic BoundingBox getBounds()
Object3D
getBounds in class Object3D
public void setSize(double xsize,
double ysize,
double zsize)
Object3D
setSize in class Object3Dpublic WireframeMesh getWireframeMesh()
Object3D
getWireframeMesh in class Object3Dpublic Keyframe getPoseKeyframe()
Object3D
getPoseKeyframe in class Object3Dpublic void applyPoseKeyframe(Keyframe k)
Object3D
applyPoseKeyframe in class Object3D
public void renderObject(ObjectInfo obj,
ViewerCanvas canvas,
Vec3 viewDir)
renderObject in class Object3Dobj - the ObjectInfo for this objectcanvas - the canvas in which to render this objectviewDir - the direction from which this object is being viewed
public void writeToFile(java.io.DataOutputStream out,
Scene theScene)
throws java.io.IOException
Object3D
writeToFile in class Object3Djava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||