com.ptc.wvs.server.thumbnail.j3d
Class OL5FileReader

java.lang.Object
  extended bycom.ptc.wvs.server.thumbnail.j3d.OLFileReader
      extended bycom.ptc.wvs.server.thumbnail.j3d.OL5FileReader

public class OL5FileReader
extends OLFileReader


Nested Class Summary
 class OL5FileReader.DirEntry
           
 
Field Summary
private static double DCM
           
private static double DFT
           
private static double DIN
           
private  OL5FileReader.DirEntry[] dir
           
private static double DKM
           
private static double DM
           
private static double DMI
           
private static double DMM
           
private  int entrysize
           
private  int major
           
private  int minor
           
private  int nextblock
           
private  int numentry
           
private static int OLARC
           
private static int OLBEGINGRAPHIC
           
private static int OLCADFRAME
           
private static int OLCADGDT
           
private static int OLCADLABEL
           
private static int OLCADLEADERLINE
           
private static int OLCADNOTE
           
private static int OLCOLOR
           
private static int OLCONE
           
private static int OLCYLINDER
           
private static int OLDATUMOBJ
           
private static int OLDIRECTORY
           
private static int OLELLIPSE
           
private static int OLENDDATUM
           
private static int OLENDFACE
           
private static int OLENDFACESET
           
private static int OLENDFACET
           
private static int OLENDGRAPHIC
           
private static int OLENDLAYEROBJ
           
private static int OLENDLOCALDEF
           
private static int OLENDLOD
           
private static int OLENDLOOP
           
private static int OLENDLOOP2D
           
private static int OLENDMARKUP
           
private static int OLENDMARKUPSET
           
private static int OLENDQUILT
           
private static int OLENDSOLID
           
private static int OLFACE
           
private static int OLFACESET
           
private static int OLFACET
           
private static int OLFAN
           
private static int OLLAYERDEF
           
private static int OLLAYERINDEX
           
private static int OLLAYEROBJ
           
private static int OLLAYERSTATE
           
private static int OLLEADERLINE
           
private static int OLLEADERLINE72
           
private static int OLLINE
           
private static int OLLOCALDEF
           
private static int OLLOOP
           
private static int OLLOOP2D
           
private static int OLMARKUPSET
           
private static int OLMARKUPSET_EXT
           
private static int OLMATERIAL
           
private static int OLNORMAL
           
private static int OLNORMALARRAY
           
private static int OLNURBC
           
private static int OLNURBSURF
           
private static int OLODLEVEL
           
private static int OLOUTER
           
private static int OLOUTERLOOP2D
           
private static int OLPLANE
           
private static int OLPOINT
           
private static int OLPOLYGONARRAY
           
private static int OLPOLYLINE
           
private static int OLPROE3DNOTE
           
private static int OLPROEGDT
           
private static int OLPSNURBC
           
private static int OLPSSTRING
           
private static int OLQUILT
           
private static int OLREMOVABLE
           
private static int OLSINGLETRI
           
private static int OLSOLID
           
private static int OLSPHERE
           
private static int OLSTUBLENGTH
           
private static int OLTORUS
           
private static int OLTRISTRIP
           
private static int OLUNIT
           
private static int OLVERSION
           
private static int OLVERTEX
           
private static int OLVERTEXARRAY
           
 
Fields inherited from class com.ptc.wvs.server.thumbnail.j3d.OLFileReader
appearanceCache, bi, BLACK, debug, extFile, file, overrideColor, PA_DOUBLE, PA_SINGLE, scene, SHININESS, WHITE
 
Constructor Summary
OL5FileReader(boolean debugFlag, PrintWriter extFile, File file, InputStream bi, boolean byteSwap)
           
 
Method Summary
private  Geometry createFacetGeometry(javax.vecmath.Vector3f normal, Vector facetVertList)
           
protected  boolean read()
           
private  void readData()
           
private  boolean readDir()
           
private  boolean readHeader()
           
private  void readMeshData()
           
 
Methods inherited from class com.ptc.wvs.server.thumbnail.j3d.OLFileReader
bi_peek1, bi_peek4, bi_peekf, bi_read, bi_read1, bi_read4, bi_read4, bi_readf, bi_readf, bi_skip, createAppearance, createShape, decompressDeflateBuffer, decompressGZIPFile, getOLFileReader, getScene, readFile, resetReadBuffer, setDebug, setOverrideColor, setReadBuffer, updateExtentsFromXYZ
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OLSOLID

private static final int OLSOLID
See Also:
Constant Field Values

OLFACET

private static final int OLFACET
See Also:
Constant Field Values

OLENDFACET

private static final int OLENDFACET
See Also:
Constant Field Values

OLOUTER

private static final int OLOUTER
See Also:
Constant Field Values

OLLOOP

private static final int OLLOOP
See Also:
Constant Field Values

OLENDLOOP

private static final int OLENDLOOP
See Also:
Constant Field Values

OLNORMAL

private static final int OLNORMAL
See Also:
Constant Field Values

OLVERTEX

private static final int OLVERTEX
See Also:
Constant Field Values

OLENDSOLID

private static final int OLENDSOLID
See Also:
Constant Field Values

OLCOLOR

private static final int OLCOLOR
See Also:
Constant Field Values

OLLINE

private static final int OLLINE
See Also:
Constant Field Values

OLARC

private static final int OLARC
See Also:
Constant Field Values

OLELLIPSE

private static final int OLELLIPSE
See Also:
Constant Field Values

OLUNIT

private static final int OLUNIT
See Also:
Constant Field Values

OLFACESET

private static final int OLFACESET
See Also:
Constant Field Values

OLVERTEXARRAY

private static final int OLVERTEXARRAY
See Also:
Constant Field Values

OLNORMALARRAY

private static final int OLNORMALARRAY
See Also:
Constant Field Values

OLPOLYGONARRAY

private static final int OLPOLYGONARRAY
See Also:
Constant Field Values

OLENDFACESET

private static final int OLENDFACESET
See Also:
Constant Field Values

OLNURBC

private static final int OLNURBC
See Also:
Constant Field Values

OLFACE

private static final int OLFACE
See Also:
Constant Field Values

OLENDFACE

private static final int OLENDFACE
See Also:
Constant Field Values

OLNURBSURF

private static final int OLNURBSURF
See Also:
Constant Field Values

OLLOOP2D

private static final int OLLOOP2D
See Also:
Constant Field Values

OLENDLOOP2D

private static final int OLENDLOOP2D
See Also:
Constant Field Values

OLPLANE

private static final int OLPLANE
See Also:
Constant Field Values

OLCYLINDER

private static final int OLCYLINDER
See Also:
Constant Field Values

OLCONE

private static final int OLCONE
See Also:
Constant Field Values

OLSPHERE

private static final int OLSPHERE
See Also:
Constant Field Values

OLTORUS

private static final int OLTORUS
See Also:
Constant Field Values

OLPSNURBC

private static final int OLPSNURBC
See Also:
Constant Field Values

OLPSSTRING

private static final int OLPSSTRING
See Also:
Constant Field Values

OLPOLYLINE

private static final int OLPOLYLINE
See Also:
Constant Field Values

OLQUILT

private static final int OLQUILT
See Also:
Constant Field Values

OLENDQUILT

private static final int OLENDQUILT
See Also:
Constant Field Values

OLLOCALDEF

private static final int OLLOCALDEF
See Also:
Constant Field Values

OLENDLOCALDEF

private static final int OLENDLOCALDEF
See Also:
Constant Field Values

OLOUTERLOOP2D

private static final int OLOUTERLOOP2D
See Also:
Constant Field Values

OLLAYERDEF

private static final int OLLAYERDEF
See Also:
Constant Field Values

OLLAYERINDEX

private static final int OLLAYERINDEX
See Also:
Constant Field Values

OLDATUMOBJ

private static final int OLDATUMOBJ
See Also:
Constant Field Values

OLLAYERSTATE

private static final int OLLAYERSTATE
See Also:
Constant Field Values

OLENDDATUM

private static final int OLENDDATUM
See Also:
Constant Field Values

OLPROE3DNOTE

private static final int OLPROE3DNOTE
See Also:
Constant Field Values

OLPROEGDT

private static final int OLPROEGDT
See Also:
Constant Field Values

OLLEADERLINE

private static final int OLLEADERLINE
See Also:
Constant Field Values

OLLEADERLINE72

private static final int OLLEADERLINE72
See Also:
Constant Field Values

OLMARKUPSET

private static final int OLMARKUPSET
See Also:
Constant Field Values

OLENDMARKUPSET

private static final int OLENDMARKUPSET
See Also:
Constant Field Values

OLMARKUPSET_EXT

private static final int OLMARKUPSET_EXT
See Also:
Constant Field Values

OLVERSION

private static final int OLVERSION
See Also:
Constant Field Values

OLENDLOD

private static final int OLENDLOD
See Also:
Constant Field Values

OLREMOVABLE

private static final int OLREMOVABLE
See Also:
Constant Field Values

OLDIRECTORY

private static final int OLDIRECTORY
See Also:
Constant Field Values

OLBEGINGRAPHIC

private static final int OLBEGINGRAPHIC
See Also:
Constant Field Values

OLENDGRAPHIC

private static final int OLENDGRAPHIC
See Also:
Constant Field Values

OLTRISTRIP

private static final int OLTRISTRIP
See Also:
Constant Field Values

OLFAN

private static final int OLFAN
See Also:
Constant Field Values

OLSINGLETRI

private static final int OLSINGLETRI
See Also:
Constant Field Values

OLODLEVEL

private static final int OLODLEVEL
See Also:
Constant Field Values

OLMATERIAL

private static final int OLMATERIAL
See Also:
Constant Field Values

OLPOINT

private static final int OLPOINT
See Also:
Constant Field Values

OLSTUBLENGTH

private static final int OLSTUBLENGTH
See Also:
Constant Field Values

OLCADNOTE

private static final int OLCADNOTE
See Also:
Constant Field Values

OLCADLABEL

private static final int OLCADLABEL
See Also:
Constant Field Values

OLCADGDT

private static final int OLCADGDT
See Also:
Constant Field Values

OLCADLEADERLINE

private static final int OLCADLEADERLINE
See Also:
Constant Field Values

OLCADFRAME

private static final int OLCADFRAME
See Also:
Constant Field Values

OLENDMARKUP

private static final int OLENDMARKUP
See Also:
Constant Field Values

OLLAYEROBJ

private static final int OLLAYEROBJ
See Also:
Constant Field Values

OLENDLAYEROBJ

private static final int OLENDLAYEROBJ
See Also:
Constant Field Values

DMM

private static final double DMM
See Also:
Constant Field Values

DCM

private static final double DCM
See Also:
Constant Field Values

DM

private static final double DM
See Also:
Constant Field Values

DKM

private static final double DKM
See Also:
Constant Field Values

DIN

private static final double DIN
See Also:
Constant Field Values

DFT

private static final double DFT
See Also:
Constant Field Values

DMI

private static final double DMI
See Also:
Constant Field Values

major

private int major

minor

private int minor

numentry

private int numentry

entrysize

private int entrysize

nextblock

private int nextblock

dir

private OL5FileReader.DirEntry[] dir
Constructor Detail

OL5FileReader

public OL5FileReader(boolean debugFlag,
                     PrintWriter extFile,
                     File file,
                     InputStream bi,
                     boolean byteSwap)
Method Detail

read

protected boolean read()
                throws Exception
Specified by:
read in class OLFileReader
Throws:
Exception

readHeader

private boolean readHeader()
                    throws Exception
Throws:
Exception

readDir

private boolean readDir()
                 throws Exception
Throws:
Exception

readData

private void readData()
               throws Exception
Throws:
Exception

readMeshData

private void readMeshData()
                   throws Exception
Throws:
Exception

createFacetGeometry

private Geometry createFacetGeometry(javax.vecmath.Vector3f normal,
                                     Vector facetVertList)