Skip navigation links
A B C D F G M O R S T W 

A

AbstractWritableObj - Class in de.javagl.obj
Abstract base implementation of a WritableObj.
AbstractWritableObj() - Constructor for class de.javagl.obj.AbstractWritableObj
Default constructor
add(ReadableObj, Obj) - Static method in class de.javagl.obj.ObjUtils
Add all vertices, texture coordinates, normals and faces of the given ReadableObj to the given output Obj.
addFace(ObjFace) - Method in class de.javagl.obj.AbstractWritableObj
 
addFace(int...) - Method in class de.javagl.obj.AbstractWritableObj
 
addFace(int[], int[], int[]) - Method in class de.javagl.obj.AbstractWritableObj
 
addFace(ObjFace) - Method in class de.javagl.obj.BasicWritableObj
 
addFace(int...) - Method in class de.javagl.obj.BasicWritableObj
 
addFace(int[], int[], int[]) - Method in class de.javagl.obj.BasicWritableObj
 
addFace(ObjFace) - Method in interface de.javagl.obj.WritableObj
Add the given face.
addFace(int...) - Method in interface de.javagl.obj.WritableObj
Add the specified face with the given vertex indices, but without texture- or normal indices.
addFace(int[], int[], int[]) - Method in interface de.javagl.obj.WritableObj
Add the specified face.
addFaceWithAll(int...) - Method in class de.javagl.obj.AbstractWritableObj
 
addFaceWithAll(int...) - Method in class de.javagl.obj.BasicWritableObj
 
addFaceWithAll(int...) - Method in interface de.javagl.obj.WritableObj
Add the specified face with the given vertex, texture coordinate and normal indices.
addFaceWithNormals(int...) - Method in class de.javagl.obj.AbstractWritableObj
 
addFaceWithNormals(int...) - Method in class de.javagl.obj.BasicWritableObj
 
addFaceWithNormals(int...) - Method in interface de.javagl.obj.WritableObj
Add the specified face with the given vertex and normal indices, but without texture coordinate indices.
addFaceWithTexCoords(int...) - Method in class de.javagl.obj.AbstractWritableObj
 
addFaceWithTexCoords(int...) - Method in class de.javagl.obj.BasicWritableObj
 
addFaceWithTexCoords(int...) - Method in interface de.javagl.obj.WritableObj
Add the specified face with the given vertex and texture coordinate indices, but without normal indices.
addNormal(FloatTuple) - Method in class de.javagl.obj.AbstractWritableObj
 
addNormal(float, float, float) - Method in class de.javagl.obj.AbstractWritableObj
 
addNormal(FloatTuple) - Method in class de.javagl.obj.BasicWritableObj
 
addNormal(float, float, float) - Method in class de.javagl.obj.BasicWritableObj
 
addNormal(FloatTuple) - Method in interface de.javagl.obj.WritableObj
Add the given normal
addNormal(float, float, float) - Method in interface de.javagl.obj.WritableObj
Add the given normal
addTexCoord(float) - Method in class de.javagl.obj.AbstractWritableObj
 
addTexCoord(float, float) - Method in class de.javagl.obj.AbstractWritableObj
 
addTexCoord(float, float, float) - Method in class de.javagl.obj.AbstractWritableObj
 
addTexCoord(FloatTuple) - Method in class de.javagl.obj.AbstractWritableObj
 
addTexCoord(FloatTuple) - Method in class de.javagl.obj.BasicWritableObj
 
addTexCoord(float) - Method in class de.javagl.obj.BasicWritableObj
 
addTexCoord(float, float) - Method in class de.javagl.obj.BasicWritableObj
 
addTexCoord(float, float, float) - Method in class de.javagl.obj.BasicWritableObj
 
addTexCoord(FloatTuple) - Method in interface de.javagl.obj.WritableObj
Add the given texture coordinate
addTexCoord(float) - Method in interface de.javagl.obj.WritableObj
Add the given texture coordinate
addTexCoord(float, float) - Method in interface de.javagl.obj.WritableObj
Add the given texture coordinate
addTexCoord(float, float, float) - Method in interface de.javagl.obj.WritableObj
Add the given texture coordinate
addVertex(float, float, float) - Method in class de.javagl.obj.AbstractWritableObj
 
addVertex(FloatTuple) - Method in class de.javagl.obj.AbstractWritableObj
 
addVertex(FloatTuple) - Method in class de.javagl.obj.BasicWritableObj
 
addVertex(float, float, float) - Method in class de.javagl.obj.BasicWritableObj
 
addVertex(FloatTuple) - Method in interface de.javagl.obj.WritableObj
Add the given vertex
addVertex(float, float, float) - Method in interface de.javagl.obj.WritableObj
Add the given vertex

B

BasicWritableObj - Class in de.javagl.obj
Basic implementation of a WritableObj that delegates all calls to consumer callbacks.
BasicWritableObj() - Constructor for class de.javagl.obj.BasicWritableObj
Default constructor

C

containsNormalIndices() - Method in interface de.javagl.obj.ObjFace
Returns whether this face contains normal indices
containsTexCoordIndices() - Method in interface de.javagl.obj.ObjFace
Returns whether this face contains texture coordinate indices
convertToRenderable(ReadableObj) - Static method in class de.javagl.obj.ObjUtils
Convert the given ReadableObj into an Obj that has a structure appropriate for rendering it with OpenGL: Triangulate it Make the texture coordinates unique Make the normals unique Make the result vertex-indexed
convertToRenderable(ReadableObj, T) - Static method in class de.javagl.obj.ObjUtils
Convert the given ReadableObj into an Obj that has a structure appropriate for rendering it with OpenGL: Triangulate it Make the texture coordinates unique Make the normals unique Make the result vertex-indexed
convertToShortBuffer(IntBuffer) - Static method in class de.javagl.obj.ObjData
Convert the given IntBuffer to a (direct) ShortBuffer, by casting all elements to short.
copy(FloatTuple) - Static method in class de.javagl.obj.FloatTuples
Create a copy of the given FloatTuple
create(float) - Static method in class de.javagl.obj.FloatTuples
Create a new FloatTuple with the given coordinate
create(float, float) - Static method in class de.javagl.obj.FloatTuples
Create a new FloatTuple with the given coordinates
create(float, float, float) - Static method in class de.javagl.obj.FloatTuples
Create a new FloatTuple with the given coordinates
create(float, float, float, float) - Static method in class de.javagl.obj.FloatTuples
Create a new FloatTuple with the given coordinates
create(String) - Static method in class de.javagl.obj.Mtls
Creates a new default Mtl
create(int[], int[], int[]) - Static method in class de.javagl.obj.ObjFaces
Create a face with the given indices.
create() - Static method in class de.javagl.obj.Objs
Creates a new default Obj
createFromIndexedTriangleData(IntBuffer, FloatBuffer, FloatBuffer, FloatBuffer) - Static method in class de.javagl.obj.Objs
Create an Obj from the given (single-) indexed triangle data.
createInfoString(ReadableObj) - Static method in class de.javagl.obj.ObjUtils
Create a multi-line, formatted string containing information about the given ReadableObj.
createString(FloatTuple) - Static method in class de.javagl.obj.FloatTuples
Returns the string for the given tuple that is used for representing the given tuple in an OBJ file
createString(ObjFace) - Static method in class de.javagl.obj.ObjFaces
Returns the string for the given face that makes up one 'f' line in an OBJ file

D

de.javagl.obj - package de.javagl.obj
Classes for reading and writing Wavefront OBJ and MTL files.

F

FloatTuple - Interface in de.javagl.obj
Interface for tuples consisting of float values
FloatTuples - Class in de.javagl.obj
Methods to create FloatTuple instances

G

get(int) - Method in interface de.javagl.obj.FloatTuple
Return the specified component of this tuple
getActivatedGroupNames(ObjFace) - Method in interface de.javagl.obj.ReadableObj
Returns an unmodifiable set containing the names of the groups that are activated with the given face.
getActivatedMaterialGroupName(ObjFace) - Method in interface de.javagl.obj.ReadableObj
Returns the name of the material group that is activated with the given face.
getD() - Method in interface de.javagl.obj.Mtl
Returns the opacity of the material
getDimensions() - Method in interface de.javagl.obj.FloatTuple
Return the dimensions of this tuple
getFace(int) - Method in interface de.javagl.obj.ObjGroup
Returns the face with the given index.
getFace(int) - Method in interface de.javagl.obj.ReadableObj
Returns the face with the given index.
getFaceNormalIndices(ReadableObj) - Static method in class de.javagl.obj.ObjData
Returns the normal indices from the faces of the given ReadableObj as a direct IntBuffer.
getFaceNormalIndices(ReadableObj, int) - Static method in class de.javagl.obj.ObjData
Returns the normal indices from the faces of the given ReadableObj as a direct IntBuffer.
getFaceNormalIndices(ReadableObj, IntBuffer) - Static method in class de.javagl.obj.ObjData
Stores the normal indices of the faces of the given ReadableObj in the given buffer.
getFaceNormalIndicesArray(ReadableObj) - Static method in class de.javagl.obj.ObjData
Returns the normal indices from the faces of the given ReadableObj as an array.
getFaceNormalIndicesArray(ReadableObj, int) - Static method in class de.javagl.obj.ObjData
Returns the normal indices from the faces of the given ReadableObj as an array.
getFaceTexCoordIndices(ReadableObj) - Static method in class de.javagl.obj.ObjData
Returns the texCoord indices from the faces of the given ReadableObj as a direct IntBuffer.
getFaceTexCoordIndices(ReadableObj, int) - Static method in class de.javagl.obj.ObjData
Returns the texCoord indices from the faces of the given ReadableObj as a direct IntBuffer.
getFaceTexCoordIndices(ReadableObj, IntBuffer) - Static method in class de.javagl.obj.ObjData
Stores the texCoord indices of the faces of the given ReadableObj in the given buffer.
getFaceTexCoordIndicesArray(ReadableObj) - Static method in class de.javagl.obj.ObjData
Returns the texCoord indices from the faces of the given ReadableObj as an array.
getFaceTexCoordIndicesArray(ReadableObj, int) - Static method in class de.javagl.obj.ObjData
Returns the texCoord indices from the faces of the given ReadableObj as an array.
getFaceVertexIndices(ReadableObj) - Static method in class de.javagl.obj.ObjData
Returns the vertex indices from the faces of the given ReadableObj as direct IntBuffer.
getFaceVertexIndices(ReadableObj, int) - Static method in class de.javagl.obj.ObjData
Returns the vertex indices from the faces of the given ReadableObj as direct IntBuffer.
getFaceVertexIndices(ReadableObj, IntBuffer) - Static method in class de.javagl.obj.ObjData
Stores the vertex indices of the faces of the given ReadableObj in the given buffer.
getFaceVertexIndicesArray(ReadableObj) - Static method in class de.javagl.obj.ObjData
Returns the vertex indices from the faces of the given ReadableObj as an array.
getFaceVertexIndicesArray(ReadableObj, int) - Static method in class de.javagl.obj.ObjData
Returns the vertex indices from the faces of the given ReadableObj as an array.
getGroup(int) - Method in interface de.javagl.obj.ReadableObj
Returns the group with the given index.
getGroup(String) - Method in interface de.javagl.obj.ReadableObj
Returns the group with the given name, or null if there is no such group in this Obj.
getKa() - Method in interface de.javagl.obj.Mtl
Returns the ambient component of the material
getKd() - Method in interface de.javagl.obj.Mtl
Returns the diffuse component of the material
getKs() - Method in interface de.javagl.obj.Mtl
Returns the specular component of the material
getMapKd() - Method in interface de.javagl.obj.Mtl
Returns the name of the diffuse map of the material, or null if it has not map.
getMaterialGroup(int) - Method in interface de.javagl.obj.ReadableObj
Returns the material group with the given index.
getMaterialGroup(String) - Method in interface de.javagl.obj.ReadableObj
Returns the material group with the given name, or null if there is no such group in this Obj.
getMtlFileNames() - Method in interface de.javagl.obj.ReadableObj
Returns an unmodifiable list containing the names of the MTL file that are associated with this OBJ, as they have been read from the mtllib line.
getName() - Method in interface de.javagl.obj.Mtl
Return the name of the material
getName() - Method in interface de.javagl.obj.ObjGroup
Returns the name of this group.
getNormal(int) - Method in interface de.javagl.obj.ReadableObj
Returns the normal with the given index.
getNormalIndex(int) - Method in interface de.javagl.obj.ObjFace
Returns the index of the normal with the given number.
getNormals(ReadableObj) - Static method in class de.javagl.obj.ObjData
Returns all normals of the given ReadableObj as an array.
getNormals(ReadableObj, FloatBuffer) - Static method in class de.javagl.obj.ObjData
Stores the normals of the given ReadableObj in the given buffer.
getNormalsArray(ReadableObj) - Static method in class de.javagl.obj.ObjData
Returns all normals of the given ReadableObj as an array.
getNs() - Method in interface de.javagl.obj.Mtl
Returns the shininess of the material.
getNumFaces() - Method in interface de.javagl.obj.ObjGroup
Returns the number of faces in this group.
getNumFaces() - Method in interface de.javagl.obj.ReadableObj
Returns the number of faces in the Obj.
getNumGroups() - Method in interface de.javagl.obj.ReadableObj
Returns the number of groups in this Obj.
getNumMaterialGroups() - Method in interface de.javagl.obj.ReadableObj
Returns the number of material groups in this Obj.
getNumNormals() - Method in interface de.javagl.obj.ReadableObj
Returns the number of normals in the Obj.
getNumTexCoords() - Method in interface de.javagl.obj.ReadableObj
Returns the number of texture coordinates in the Obj.
getNumVertices() - Method in interface de.javagl.obj.ObjFace
Returns the number of vertices this face consists of.
getNumVertices() - Method in interface de.javagl.obj.ReadableObj
Returns the number of vertices in the Obj.
getTexCoord(int) - Method in interface de.javagl.obj.ReadableObj
Returns the texture coordinate with the given index.
getTexCoordIndex(int) - Method in interface de.javagl.obj.ObjFace
Returns the index of the texture coordinate with the given number.
getTexCoords(ReadableObj, int) - Static method in class de.javagl.obj.ObjData
Returns all texture coordinates of the given ReadableObj as direct FloatBuffer.
getTexCoords(ReadableObj, int, boolean) - Static method in class de.javagl.obj.ObjData
Returns all texture coordinates of the given ReadableObj as direct FloatBuffer.
getTexCoords(ReadableObj, FloatBuffer, int) - Static method in class de.javagl.obj.ObjData
Stores the texture coordinates of the given ReadableObj in the given buffer.
getTexCoords(ReadableObj, FloatBuffer, int, boolean) - Static method in class de.javagl.obj.ObjData
Stores the texture coordinates of the given ReadableObj in the given buffer.
getTexCoordsArray(ReadableObj, int) - Static method in class de.javagl.obj.ObjData
Returns all texture coordinates of the given ReadableObj as an array.
getTexCoordsArray(ReadableObj, int, boolean) - Static method in class de.javagl.obj.ObjData
Returns all texture coordinates of the given ReadableObj as an array.
getTotalNumFaceVertices(ReadableObj) - Static method in class de.javagl.obj.ObjData
Returns the sum of all numbers of vertices of all faces in the given ReadableObj.
getVertex(int) - Method in interface de.javagl.obj.ReadableObj
Returns the vertex with the given index.
getVertexIndex(int) - Method in interface de.javagl.obj.ObjFace
Returns the index of the vertex with the given number.
getVertices(ReadableObj) - Static method in class de.javagl.obj.ObjData
Returns all vertices of the given ReadableObj as a direct FloatBuffer.
getVertices(ReadableObj, FloatBuffer) - Static method in class de.javagl.obj.ObjData
Stores the vertices of the given ReadableObj in the given buffer.
getVerticesArray(ReadableObj) - Static method in class de.javagl.obj.ObjData
Returns all vertices of the given ReadableObj as an array.
getW() - Method in interface de.javagl.obj.FloatTuple
Return the w-component of this tuple
getX() - Method in interface de.javagl.obj.FloatTuple
Return the x-component of this tuple
getY() - Method in interface de.javagl.obj.FloatTuple
Return the y-component of this tuple
getZ() - Method in interface de.javagl.obj.FloatTuple
Return the z-component of this tuple
groupToObj(ReadableObj, ObjGroup, List<Integer>) - Static method in class de.javagl.obj.ObjUtils
Returns the given group of the given ReadableObj as a new Obj.
groupToObj(ReadableObj, ObjGroup, List<Integer>, T) - Static method in class de.javagl.obj.ObjUtils
Stores the given group of the given ReadableObj in the given output WritableObj.

M

makeNormalsUnique(ReadableObj) - Static method in class de.javagl.obj.ObjUtils
Ensures that two vertices with different normals are actually two different vertices with different indices.
makeNormalsUnique(ReadableObj, List<Integer>, T) - Static method in class de.javagl.obj.ObjUtils
Ensures that two vertices with different normals are actually two different vertices with different indices.
makeTexCoordsUnique(ReadableObj) - Static method in class de.javagl.obj.ObjUtils
Ensures that two vertices with different texture coordinates are actually two different vertices with different indices.
makeTexCoordsUnique(ReadableObj, List<Integer>, T) - Static method in class de.javagl.obj.ObjUtils
Ensures that two vertices with different texture coordinates are actually two different vertices with different indices.
makeVertexIndexed(ReadableObj) - Static method in class de.javagl.obj.ObjUtils
Converts the given ReadableObj data into data that uses the same indices for vertices, texture coordinates and normals, and returns the result.
makeVertexIndexed(ReadableObj, T) - Static method in class de.javagl.obj.ObjUtils
Converts the given ReadableObj data into data that uses the same indices for vertices, texture coordinates and normals, and stores the result in the given WritableObj.
Mtl - Interface in de.javagl.obj
An in-memory representation of an MTL file.
MtlReader - Class in de.javagl.obj
A class that may read MTL data, and return the materials as a list of Mtl objects.
Mtls - Class in de.javagl.obj
Methods to create Mtl instances
MtlWriter - Class in de.javagl.obj
A class that may write Mtl objects into an MTL file

O

Obj - Interface in de.javagl.obj
An in-memory representation of an OBJ file.
ObjData - Class in de.javagl.obj
Methods to obtain the data from ReadableObjs as plain arrays or buffers
ObjFace - Interface in de.javagl.obj
A single face that is stored in an OBJ file
ObjFaces - Class in de.javagl.obj
Methods for creating ObjFace instances
ObjGroup - Interface in de.javagl.obj
Interface describing a single group of an OBJ file.
ObjReader - Class in de.javagl.obj
A class that may read OBJ data from a stream and store the read data in an WritableObj.
Objs - Class in de.javagl.obj
Methods to create Obj instances
ObjSplitting - Class in de.javagl.obj
Methods for splitting ReadableObj objects into multiple parts, based on different criteria.
ObjUtils - Class in de.javagl.obj
Utility methods for handling Objs.
ObjWriter - Class in de.javagl.obj
A class that may write an ReadableObj to a stream.

R

read(InputStream) - Static method in class de.javagl.obj.MtlReader
Read the MTL data from the given stream, and return it as Mtl objects.
read(Reader) - Static method in class de.javagl.obj.MtlReader
Read the MTL data from the given reader, and return it as Mtl objects.
read(InputStream) - Static method in class de.javagl.obj.ObjReader
Read the OBJ data from the given stream and return it as an Obj.
read(InputStream, T) - Static method in class de.javagl.obj.ObjReader
Read the OBJ data from the given stream and store the read elements in the given WritableObj.
read(Reader) - Static method in class de.javagl.obj.ObjReader
Read the OBJ data from the given reader and return it as an Obj.
read(Reader, T) - Static method in class de.javagl.obj.ObjReader
Read the OBJ data from the given reader and store the read elements in the given WritableObj.
ReadableObj - Interface in de.javagl.obj
Interface for classes providing part of the data that may be stored in an OBJ file.

S

setActiveGroupNames(Collection<? extends String>) - Method in class de.javagl.obj.AbstractWritableObj
 
setActiveGroupNames(Collection<? extends String>) - Method in class de.javagl.obj.BasicWritableObj
 
setActiveGroupNames(Collection<? extends String>) - Method in interface de.javagl.obj.WritableObj
Set the groups with the given names to be active right now.
setActiveMaterialGroupName(String) - Method in class de.javagl.obj.AbstractWritableObj
 
setActiveMaterialGroupName(String) - Method in class de.javagl.obj.BasicWritableObj
 
setActiveMaterialGroupName(String) - Method in interface de.javagl.obj.WritableObj
Set the material group with the given names to be active right now Faces that are added subsequently will be added to the active material group, creating this material group if necessary.
setD(float) - Method in interface de.javagl.obj.Mtl
Set the opacity of the material
setFaceConsumer(Consumer<? super ObjFace>) - Method in class de.javagl.obj.BasicWritableObj
Set the face consumer
setGroupNamesConsumer(Consumer<? super Collection<? extends String>>) - Method in class de.javagl.obj.BasicWritableObj
Set the group names consumer
setKa(float, float, float) - Method in interface de.javagl.obj.Mtl
Set the ambient part of this material
setKd(float, float, float) - Method in interface de.javagl.obj.Mtl
Set the diffuse part of this material
setKs(float, float, float) - Method in interface de.javagl.obj.Mtl
Set the specular part of this material
setMapKd(String) - Method in interface de.javagl.obj.Mtl
Set the diffuse map name of this material
setMaterialGroupNameConsumer(Consumer<? super String>) - Method in class de.javagl.obj.BasicWritableObj
Set the material group name consumer
setMtlFileNames(Collection<? extends String>) - Method in class de.javagl.obj.AbstractWritableObj
 
setMtlFileNames(Collection<? extends String>) - Method in class de.javagl.obj.BasicWritableObj
 
setMtlFileNames(Collection<? extends String>) - Method in interface de.javagl.obj.WritableObj
Set the given MTL file names.
setMtlFileNamesConsumer(Consumer<? super Collection<? extends String>>) - Method in class de.javagl.obj.BasicWritableObj
Set the MTL file names consumer
setNormalConsumer(Consumer<? super FloatTuple>) - Method in class de.javagl.obj.BasicWritableObj
Set the normal consumer
setNs(float) - Method in interface de.javagl.obj.Mtl
Set the shininess of this material
setTexCoordConsumer(Consumer<? super FloatTuple>) - Method in class de.javagl.obj.BasicWritableObj
Set the texture coordinate consumer
setVertexConsumer(Consumer<? super FloatTuple>) - Method in class de.javagl.obj.BasicWritableObj
Set the vertex consumer
splitByGroups(ReadableObj) - Static method in class de.javagl.obj.ObjSplitting
Split the given ReadableObj based on its groups.
splitByMaterialGroups(ReadableObj) - Static method in class de.javagl.obj.ObjSplitting
Split the given ReadableObj based on its material groups.
splitByMaxNumVertices(ReadableObj, int) - Static method in class de.javagl.obj.ObjSplitting
Split the given ReadableObj into Obj instances based on the given maximum number of vertices.

T

triangulate(ReadableObj) - Static method in class de.javagl.obj.ObjUtils
Triangulates the given input ReadableObj and returns the result.
triangulate(ReadableObj, T) - Static method in class de.javagl.obj.ObjUtils
Triangulates the given input ReadableObj and stores the result in the given WritableObj.

W

WritableObj - Interface in de.javagl.obj
Interface for all classes that may receive the data that is read from an OBJ file by an ObjReader
write(Iterable<? extends Mtl>, OutputStream) - Static method in class de.javagl.obj.MtlWriter
Write the given Mtl objects to the given stream.
write(Iterable<? extends Mtl>, Writer) - Static method in class de.javagl.obj.MtlWriter
Write the given Mtl objects to the given writer.
write(ReadableObj, OutputStream) - Static method in class de.javagl.obj.ObjWriter
Writes the given ReadableObj to the given stream.
write(ReadableObj, Writer) - Static method in class de.javagl.obj.ObjWriter
Writes the given ReadableObj to the given writer.
A B C D F G M O R S T W 
Skip navigation links

Copyright © 2018. All rights reserved.