md3.md3view
Class MD3ModelUpdateMeshMenuVisitor

java.lang.Object
  |
  +--md3.md3model.MD3ModelVisitor
        |
        +--md3.md3view.MD3ModelUpdateMeshMenuVisitor

public class MD3ModelUpdateMeshMenuVisitor
extends MD3ModelVisitor

An MD3Model visitor that walks through an MD3Model structure and updates a meshes menu with the meshes found in the visited models.

Author:
Erwin Vervaet (erwin@cs.kuleuven.ac.be)

Constructor Summary
MD3ModelUpdateMeshMenuVisitor(java.awt.Menu meshesMenu)
          Create a new visitor to update the given meshes menu.
MD3ModelUpdateMeshMenuVisitor(java.awt.Menu meshesMenu, java.lang.String name)
          Create a new visitor to update the given meshes menu.
 
Method Summary
 void visit(MD3Model model)
          Visit a MD3Model object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD3ModelUpdateMeshMenuVisitor

public MD3ModelUpdateMeshMenuVisitor(java.awt.Menu meshesMenu)

Create a new visitor to update the given meshes menu.

The meshes menu will have menu items that pop up file dialogs to obtain the name of the texture to apply.

Parameters:
meshesMenu - Menu to update.

MD3ModelUpdateMeshMenuVisitor

public MD3ModelUpdateMeshMenuVisitor(java.awt.Menu meshesMenu,
                                     java.lang.String name)

Create a new visitor to update the given meshes menu.

The meshes menu will have menu items that apply the texture with the given name to a certain mesh.

Parameters:
meshesMenu - Menu to update.
name - Name of texture to apply.
Method Detail

visit

public void visit(MD3Model model)
Description copied from class: MD3ModelVisitor

Visit a MD3Model object.

Overrides:
visit in class MD3ModelVisitor
Tags copied from class: MD3ModelVisitor
Parameters:
model - The object to visit.