public interface AVRuntimeComponent
A given file may contain one or more runtime components to execute the desired behaviour. It is expected that the implementation of this interface will maintain any specific state that is needed to properly execute the behaviours needed, such as clocking it based on some global clock, or every X number of frames. This will be called once per frame per instance. For example, this is an expected usage of this method and model:
class MyAppBehaviour implements ApplicationUpdateObserver
{
private AVModel model;
...
public void updateSceneGraph()
{
List runtimes = model.getRuntimeComponents();
Iterator itr = runtimes.iterator();
while(itr.hasNext())
{
AVRuntimeComponent rt = (AVRuntimeComponent)itr.next();
rt.executeModelBehavior();
}
}
}
| Modifier and Type | Method and Description |
|---|---|
void |
executeModelBehavior()
Execute the behaviour of the runtime component now.
|
Copyright © 2001 - 2015 j3d.org