Aviatrix3D
2.1.0

org.j3d.renderer.aviatrix3d.loader
Interface AVRuntimeComponent


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();
         }
     }
 }
 

Version:
$Revision: 1.1 $
Author:
Justin Couch

Method Summary
 void executeModelBehavior()
          Execute the behaviour of the runtime component now.
 

Method Detail

executeModelBehavior

void executeModelBehavior()
Execute the behaviour of the runtime component now.


Aviatrix3D
2.1.0

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2009 j3d.org