|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.object.Object3D
artofillusion.object.ObjectWrapper
public abstract class ObjectWrapper
An ObjectWrapper is an Object3D that acts as a wrapper around another Object3D. The "wrapped object" is the one which actually defines the geometry for this object.
Field Summary |
---|
Fields inherited from class artofillusion.object.Object3D |
---|
APPROXIMATELY, CANT_CONVERT, EXACTLY |
Constructor Summary | |
---|---|
ObjectWrapper()
|
|
ObjectWrapper(java.io.DataInputStream in,
Scene theScene)
|
Method Summary | |
---|---|
void |
applyPoseKeyframe(Keyframe k)
Modify this object based on a pose keyframe. |
int |
canConvertToTriangleMesh()
Tells whether the object can be converted to a TriangleMesh. |
void |
configurePoseTrack(PoseTrack track)
This will be called whenever a new pose track is created for this object. |
TriangleMesh |
convertToTriangleMesh(double tol)
Return a TriangleMesh which reproduces the shape of this object. |
void |
editGesture(EditingWindow parent,
ObjectInfo info,
java.lang.Runnable cb,
ObjectInfo realObject)
Edit an object which represents a gesture for an Actor object. |
void |
editKeyframe(EditingWindow parent,
Keyframe k,
ObjectInfo info)
Allow the user to edit a keyframe returned by getPoseKeyframe(). |
double[] |
getAverageParameterValues()
Get the average value of each texture parameter. |
BoundingBox |
getBounds()
Get a BoundingBox which just encloses the object. |
Material |
getMaterial()
Get this object's Material. |
MaterialMapping |
getMaterialMapping()
Get this object's MaterialMapping. |
TextureParameter[] |
getParameters()
Get the list of texture parameters for this object. |
ParameterValue |
getParameterValue(TextureParameter param)
Get the object defining the value of a particular texture parameter. |
ParameterValue[] |
getParameterValues()
Get the list of objects defining the values of texture parameters. |
Keyframe |
getPoseKeyframe()
Return a Keyframe which describes the current pose of this object. |
RenderingMesh |
getRenderingMesh(double tol,
boolean interactive,
ObjectInfo info)
Objects which can be rendered as part of a scene should override this method to return a RenderingMesh which describes the appearance of the object. |
Skeleton |
getSkeleton()
Get the skeleton for this object, or null if it does not have one. |
Texture |
getTexture()
Get this object's Texture. |
TextureMapping |
getTextureMapping()
Get this object's TextureMapping. |
WireframeMesh |
getWireframeMesh()
Every object should override this method to return a WireframeMesh. |
Object3D |
getWrappedObject()
Get the inner Object3D which is wrapped by this one. |
boolean |
isClosed()
Tells whether the object is closed. |
void |
renderObject(ObjectInfo obj,
ViewerCanvas canvas,
Vec3 viewDir)
Render this object into a ViewerCanvas. |
void |
sceneChanged(ObjectInfo info,
Scene scene)
This will be called whenever this object is moved, or the time changes. |
void |
setParameters(TextureParameter[] param)
Set the list of texture parameters for this object. |
void |
setParameterValue(TextureParameter param,
ParameterValue val)
Set the object defining the value of a particular texture parameter. |
void |
setParameterValues(ParameterValue[] val)
Set the list of objects defining the values of texture parameters. |
Methods inherited from class artofillusion.object.Object3D |
---|
canConvertToActor, canSetMaterial, canSetTexture, copyObject, copyTextureAndMaterial, duplicate, edit, getPosableObject, getProperties, getPropertyValue, isEditable, readParameterValue, setMaterial, setPropertyValue, setSize, setTexture, writeToFile |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectWrapper()
public ObjectWrapper(java.io.DataInputStream in, Scene theScene) throws java.io.IOException, java.io.InvalidObjectException
java.io.IOException
java.io.InvalidObjectException
Method Detail |
---|
public Object3D getWrappedObject()
public BoundingBox getBounds()
getBounds
in class Object3D
public boolean isClosed()
isClosed
in class Object3D
public int canConvertToTriangleMesh()
canConvertToTriangleMesh
in class Object3D
public TriangleMesh convertToTriangleMesh(double tol)
convertToTriangleMesh
in class Object3D
public void sceneChanged(ObjectInfo info, Scene scene)
sceneChanged
in class Object3D
public void editGesture(EditingWindow parent, ObjectInfo info, java.lang.Runnable cb, ObjectInfo realObject)
editGesture
in class Object3D
public Texture getTexture()
getTexture
in class Object3D
public TextureMapping getTextureMapping()
getTextureMapping
in class Object3D
public Material getMaterial()
getMaterial
in class Object3D
public MaterialMapping getMaterialMapping()
getMaterialMapping
in class Object3D
public TextureParameter[] getParameters()
getParameters
in class Object3D
public void setParameters(TextureParameter[] param)
setParameters
in class Object3D
public ParameterValue[] getParameterValues()
getParameterValues
in class Object3D
public double[] getAverageParameterValues()
getAverageParameterValues
in class Object3D
public void setParameterValues(ParameterValue[] val)
setParameterValues
in class Object3D
public ParameterValue getParameterValue(TextureParameter param)
getParameterValue
in class Object3D
public void setParameterValue(TextureParameter param, ParameterValue val)
setParameterValue
in class Object3D
public Skeleton getSkeleton()
getSkeleton
in class Object3D
public RenderingMesh getRenderingMesh(double tol, boolean interactive, ObjectInfo info)
getRenderingMesh
in class Object3D
public WireframeMesh getWireframeMesh()
getWireframeMesh
in class Object3D
public void renderObject(ObjectInfo obj, ViewerCanvas canvas, Vec3 viewDir)
Object3D
renderObject
in class Object3D
obj
- the ObjectInfo for this objectcanvas
- the canvas in which to render this objectviewDir
- the direction from which this object is being viewedpublic Keyframe getPoseKeyframe()
getPoseKeyframe
in class Object3D
public void applyPoseKeyframe(Keyframe k)
applyPoseKeyframe
in class Object3D
public void configurePoseTrack(PoseTrack track)
configurePoseTrack
in class Object3D
public void editKeyframe(EditingWindow parent, Keyframe k, ObjectInfo info)
editKeyframe
in class Object3D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |