edu.ohiou.cs456_badabing.sceneapi.basic
Class ModelNode

java.lang.Object
  extended by edu.ohiou.cs456_badabing.sceneapi.basic.ANode
      extended by edu.ohiou.cs456_badabing.sceneapi.basic.ModelNode

public class ModelNode
extends ANode

Wrapper class for ModelFile that can be put anywhere in the scene tree.

Description: wrapper class for ModelFile that can be put anywhere in the scene tree.

Copyright: Lev A Neiman 2008

Company: Ohio University EECS


Field Summary
 ModelFile data
          handle on the ModelFile object which contains model data.
 java.util.Vector<MaterialGroupNode> mtl_nodes
           
 
Fields inherited from class edu.ohiou.cs456_badabing.sceneapi.basic.ANode
children, display_list, name, no_disp_list, parent, ppop, rotation, rotation_angle, scale, show, translation
 
Constructor Summary
ModelNode(ModelFile data)
          default constructor.
 
Method Summary
private  void populateMtls()
           
 void render(GLAutoDrawable gld)
          Overridden method from ANode.
 
Methods inherited from class edu.ohiou.cs456_badabing.sceneapi.basic.ANode
addChild, countNodes, drawCube, getName, getNormal, hideTree, pushPop, renderTree, rotation, scale, setName, setParent, setPushPop, showTree, translation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public ModelFile data
handle on the ModelFile object which contains model data.


mtl_nodes

public java.util.Vector<MaterialGroupNode> mtl_nodes
Constructor Detail

ModelNode

public ModelNode(ModelFile data)
default constructor.

Parameters:
data - ModelFile
Method Detail

populateMtls

private void populateMtls()

render

public void render(GLAutoDrawable gld)
Overridden method from ANode. calls super's version and then renders model.

Overrides:
render in class ANode
Parameters:
gld - GLAutoDrawable