|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AVRuntimeComponent
A piece of code that will execute runtime component parts of the loaded model format.
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(); } } }
Method Summary | |
---|---|
void |
executeModelBehavior()
Execute the behaviour of the runtime component now. |
Method Detail |
---|
void executeModelBehavior()
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |