Class ErioMetafile
java.lang.Object
|
+--Metafile
|
+--ErioMetafile
- Direct Known Subclasses:
- ErioMetafile2
- public class ErioMetafile
- extends Metafile
Represents Erio's 3D mesh metafile.
File format:
3DInput = <\n><\n>END;
= <\n><\n>;
= ;
= ;
:= ;
:= ;
:= ;
= ;
= "PERSPEKTIF" | " PARALLEL"
= "WIREFRAME"
=
- Author:
- Sasmito Adibowo - 1299000029.
| Fields inherited from class Metafile |
boundaries,
coorsys,
lights,
meshes,
renderMode,
RENDERMODE_FLAT,
RENDERMODE_GOURAUD,
RENDERMODE_PHONG,
RENDERMODE_WIREFRAME,
transformations,
view,
viewMode,
VIEWMODE_PARALLEL,
VIEWMODE_PERSPECT,
viewPlane |
| Methods inherited from class Metafile |
getCoorSys,
getCoorSys,
getLight,
getLight,
getMesh,
getMesh,
getRenderMode,
getTransformation,
getViewMode,
getViewPlane,
getWindowBoundaries,
setCoorSys,
setLight,
setMesh,
setTransformation |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
ErioMetafile
public ErioMetafile()
clear
protected void clear()
- Clears the contents of the object.
- Overrides:
- clear in class Metafile
read
public void read(Reader in)
throws IOException
- reads an Erio's 3D metafile.
- Overrides:
- read in class Metafile
- Parameters:
in - the metafile data.
readHeader
protected void readHeader(LineNumberReader in)
throws IOException
- Reads header data.
- Parameters:
in - the metafile data.
readMesh
protected void readMesh(LineNumberReader in,
String name)
throws IOException
- Reads a MESH section from the metafile.
- Parameters:
in - the stream input representing the metafile.name - the name of the mesh.
readTransformation
protected void readTransformation(LineNumberReader in,
String name)
throws IOException
- Reads a TRANSFORMATION section in the metafile
- Parameters:
in - the stream input representing the metafile.name - the name of the transformation.
readCoorSys
protected void readCoorSys(LineNumberReader in,
String name)
throws IOException
- Reads a COORSYS section from the metafile.
- Parameters:
name - the name of the coordinate system.in - the stream input.