BowlerKernel
Public Member Functions | Private Member Functions | Private Attributes | List of all members
eu.mihosoft.vrl.v3d.ext.imagej.STLLoader Class Reference
Collaboration diagram for eu.mihosoft.vrl.v3d.ext.imagej.STLLoader:
Collaboration graph
[legend]

Public Member Functions

 STLLoader ()
 
ArrayList< Point3f > parse (File f) throws IOException
 

Private Member Functions

void parseAscii (File f)
 
void parseBinary (File f)
 
float parseFloat (String string) throws ParseException
 
float leBytesToFloat (byte b0, byte b1, byte b2, byte b3)
 

Private Attributes

ArrayList< Point3f > vertices = new ArrayList<>()
 
Point3f normal = new Point3f(0.0f, 0.0f, 0.0f)
 
FileInputStream fis
 
int triangles
 

Detailed Description

The Class STLLoader.

Definition at line 28 of file STLLoader.java.

Constructor & Destructor Documentation

◆ STLLoader()

eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.STLLoader ( )

Instantiates a new STL loader.

Definition at line 50 of file STLLoader.java.

Member Function Documentation

◆ leBytesToFloat()

float eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.leBytesToFloat ( byte  b0,
byte  b1,
byte  b2,
byte  b3 
)
private

Le bytes to float.

Parameters
b0the b0
b1the b1
b2the b2
b3the b3
Returns
the float

Definition at line 222 of file STLLoader.java.

Referenced by eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.parseBinary().

◆ parse()

ArrayList<Point3f> eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.parse ( File  f) throws IOException

Parses the.

Parameters
fthe f
Returns
the array list
Exceptions
IOExceptionSignals that an I/O exception has occurred.

Definition at line 82 of file STLLoader.java.

References eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.parseAscii(), eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.parseBinary(), eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.triangles, and eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.vertices.

Referenced by eu.mihosoft.vrl.v3d.STL.file().

Here is the call graph for this function:

◆ parseAscii()

void eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.parseAscii ( File  f)
private

Parses the ascii.

Parameters
fthe f

Definition at line 123 of file STLLoader.java.

References eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.normal, eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.parseFloat(), and eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.vertices.

Referenced by eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.parse().

Here is the call graph for this function:

◆ parseBinary()

void eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.parseBinary ( File  f)
private

◆ parseFloat()

float eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.parseFloat ( String  string) throws ParseException
private

Parses the float.

Parameters
stringthe string
Returns
the float
Exceptions
ParseExceptionthe parse exception

Definition at line 208 of file STLLoader.java.

Referenced by eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.parseAscii().

Member Data Documentation

◆ fis

FileInputStream eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.fis
private

The fis.

Definition at line 67 of file STLLoader.java.

Referenced by eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.parseBinary().

◆ normal

Point3f eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.normal = new Point3f(0.0f, 0.0f, 0.0f)
private

◆ triangles

int eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.triangles
private

◆ vertices

ArrayList<Point3f> eu.mihosoft.vrl.v3d.ext.imagej.STLLoader.vertices = new ArrayList<>()
private

The documentation for this class was generated from the following file: