de.jreality.tutorial.reader
Class DemoReader

java.lang.Object
  extended by de.jreality.reader.AbstractReader
      extended by de.jreality.tutorial.reader.DemoReader
All Implemented Interfaces:
SceneReader

public class DemoReader
extends AbstractReader

A simple example how to write a file reader for jreality. Parses files that contain a vertex in each row, separated by any white space character. Three subsequent vertices will be interpreted as a triangle. See the file samplefile.demo.

Author:
Steffen Weissmann

Constructor Summary
DemoReader()
           
 
Method Summary
 void setInput(Input input)
          set the input to read the scene from
 
Methods inherited from class de.jreality.reader.AbstractReader
getComponent, read, read, read
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DemoReader

public DemoReader()
Method Detail

setInput

public void setInput(Input input)
              throws java.io.IOException
Description copied from interface: SceneReader
set the input to read the scene from

Specified by:
setInput in interface SceneReader
Overrides:
setInput in class AbstractReader
Parameters:
input - the Input of the resource to read.
Throws:
java.io.IOException