artofillusion.script
Class ScriptedObjectController

java.lang.Object
  extended by artofillusion.script.ScriptedObjectController

public class ScriptedObjectController
extends java.lang.Object

This class mediates interactions between an ObjectScript and the rest of the program.


Method Summary
 void addObject(Object3D obj, CoordinateSystem coords)
          Add an object to the scripted object.
 void addObject(ObjectInfo info)
          Add an object to the scripted object.
 CoordinateSystem getCoordinates()
          Get the coordinate system which defines the scripted object's position in the scene.
 double getParameter(java.lang.String name)
          Get the value of a parameter.
 Scene getScene()
          Get the scene this object is part of.
 double getTime()
          Get the current time.
 boolean isPreview()
          Determine whether the script is currently being executed to create an interactive preview.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCoordinates

public final CoordinateSystem getCoordinates()
Get the coordinate system which defines the scripted object's position in the scene.


getTime

public final double getTime()
Get the current time.


getScene

public final Scene getScene()
Get the scene this object is part of.


isPreview

public final boolean isPreview()
Determine whether the script is currently being executed to create an interactive preview.


getParameter

public final double getParameter(java.lang.String name)
                          throws java.lang.IllegalArgumentException
Get the value of a parameter.

Throws:
java.lang.IllegalArgumentException

addObject

public final void addObject(ObjectInfo info)
Add an object to the scripted object.


addObject

public final void addObject(Object3D obj,
                            CoordinateSystem coords)
Add an object to the scripted object.



Copyright © 1999-2011 by Peter Eastman.