|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.object.Object3D
artofillusion.object.ObjectWrapper
artofillusion.object.ExternalObject
public class ExternalObject
ExternalObject is an Object3D that is stored in a separate file.
Field Summary |
---|
Fields inherited from class artofillusion.object.Object3D |
---|
APPROXIMATELY, CANT_CONVERT, EXACTLY |
Constructor Summary | |
---|---|
ExternalObject(java.io.DataInputStream in,
Scene theScene)
Recreate an ExternalObject by reading in the serialized representation written by writeToFile(). |
|
ExternalObject(java.io.File file,
java.lang.String name)
Create an ExternalObject from a file. |
Method Summary | |
---|---|
boolean |
canConvertToActor()
Determine whether the user should be allowed to convert this object to an Actor. |
boolean |
canSetMaterial()
This method tells whether materials can be assigned to the object. |
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. |
void |
edit(EditingWindow parent,
ObjectInfo info,
java.lang.Runnable cb)
Display a window in which the user can edit this object. |
int |
getExternalObjectId()
Get the id of the object in the external scene. |
java.lang.String |
getExternalObjectName()
Get the name of the object in the external scene. |
java.io.File |
getExternalSceneFile()
Get the path to the external scene file. |
boolean |
getIncludeChildren()
Get whether to include children of the external object. |
java.lang.String |
getLoadingError()
Get an error message which describes why the object could not be loaded, or null if it was loaded successfully. |
boolean |
isEditable()
If the object can be edited by the user, isEditable() should be overridden to return true. |
void |
reloadObject()
Reload the external object from its file. |
void |
setExternalObjectId(int id)
Set the id of the object in the external scene. |
void |
setExternalObjectName(java.lang.String name)
Set the name of the object in the external scene. |
void |
setExternalSceneFile(java.io.File file)
Set the path to the external scene file. |
void |
setIncludeChildren(boolean include)
Set whether to include children of the external object. |
void |
setSize(double xsize,
double ysize,
double zsize)
ExternalObjects cannot be resized, since they are entirely defined by a separate file. |
void |
writeToFile(java.io.DataOutputStream out,
Scene theScene)
The following method writes the object's data to an output stream. |
Methods inherited from class artofillusion.object.Object3D |
---|
copyTextureAndMaterial, getPosableObject, getProperties, getPropertyValue, readParameterValue, setMaterial, setPropertyValue, setTexture |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExternalObject(java.io.File file, java.lang.String name)
file
- the scene file containing the objectname
- the name of the object to loadpublic ExternalObject(java.io.DataInputStream in, Scene theScene) throws java.io.IOException, java.io.InvalidObjectException
java.io.IOException
java.io.InvalidObjectException
Method Detail |
---|
public java.lang.String getExternalObjectName()
public void setExternalObjectName(java.lang.String name)
public int getExternalObjectId()
public void setExternalObjectId(int id)
public boolean getIncludeChildren()
public void setIncludeChildren(boolean include)
public java.io.File getExternalSceneFile()
public void setExternalSceneFile(java.io.File file)
public java.lang.String getLoadingError()
public void reloadObject()
public Object3D duplicate()
duplicate
in class Object3D
public void copyObject(Object3D obj)
copyObject
in class Object3D
public void setSize(double xsize, double ysize, double zsize)
setSize
in class Object3D
public boolean isEditable()
isEditable
in class Object3D
public void edit(EditingWindow parent, ObjectInfo info, java.lang.Runnable cb)
Object3D
edit
in class Object3D
parent
- the window from which this command is being invokedinfo
- the ObjectInfo corresponding to this objectcb
- a callback which will be executed when editing is complete. If the user
cancels the operation, it will not be called.public boolean canSetTexture()
canSetTexture
in class Object3D
public boolean canSetMaterial()
canSetMaterial
in class Object3D
public boolean canConvertToActor()
canConvertToActor
in class Object3D
public void writeToFile(java.io.DataOutputStream out, Scene theScene) throws java.io.IOException
writeToFile
in class Object3D
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |