md3.md3view
Class MD3GLModelExportObjVisitor

java.lang.Object
  |
  +--md3.md3model.MD3ModelVisitor
        |
        +--md3.md3view.MD3GLModelVisitor
              |
              +--md3.md3view.MD3GLModelExportObjVisitor

public class MD3GLModelExportObjVisitor
extends MD3GLModelVisitor

An MD3GLModel visitor that walks through an MD3GLModel structure and writes the data of the current frame of the encountered models to a specified output stream in Alias Wavefront's Object File (.obj) format (version 3.0).

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

Constructor Summary
MD3GLModelExportObjVisitor()
          Create a new Wavefront object export visitor.
 
Method Summary
 void visit(MD3GLModel model)
          Visit a MD3GLModel object.
 void writeOut(java.io.OutputStream out)
          Write the generated output data the given output stream.
 
Methods inherited from class md3.md3view.MD3GLModelVisitor
visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD3GLModelExportObjVisitor

public MD3GLModelExportObjVisitor()

Create a new Wavefront object export visitor.

Method Detail

writeOut

public void writeOut(java.io.OutputStream out)
              throws java.io.IOException

Write the generated output data the given output stream.

Parameters:
outstream - The stream to which the data should be written.

visit

public void visit(MD3GLModel model)
Description copied from class: MD3GLModelVisitor

Visit a MD3GLModel object.

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