Package | Description |
---|---|
org.osm2world.core.target |
export targets for the generated models
|
org.osm2world.core.target.common | |
org.osm2world.core.target.common.material | |
org.osm2world.core.target.jogl | |
org.osm2world.core.target.obj |
target that creates Wavefront .obj and .mtl files
|
org.osm2world.core.target.povray |
target that creates .pov files for the POVRay raytracer
|
org.osm2world.core.target.statistics | |
org.osm2world.core.world.modules | |
org.osm2world.core.world.modules.common |
Modifier and Type | Method and Description |
---|---|
void |
Target.drawBox(Material material,
VectorXYZ bottomCenter,
VectorXZ faceDirection,
double height,
double width,
double depth)
draws a box with outward-facing polygons.
|
void |
Target.drawColumn(Material material,
Integer corners,
VectorXYZ base,
double height,
double radiusBottom,
double radiusTop,
boolean drawBottom,
boolean drawTop)
draws a column with outward-facing polygons around a point.
|
void |
Target.drawConvexPolygon(Material material,
List<VectorXYZ> vs,
List<List<VectorXZ>> texCoordLists)
draws a convex polygon
|
void |
Target.drawExtrudedShape(Material material,
ShapeXZ shape,
List<VectorXYZ> path,
List<VectorXYZ> upVectors,
List<Double> scaleFactors,
List<List<VectorXZ>> texCoordLists,
EnumSet<ExtrudeOption> options)
extrudes a 2d shape along a path.
|
void |
Target.drawShape(Material material,
SimpleClosedShapeXZ shape,
VectorXYZ point,
VectorXYZ frontVector,
VectorXYZ upVector)
draws a flat shape in 3D space, at an arbitrary rotation.
|
void |
Target.drawTriangleFan(Material material,
List<VectorXYZ> vs,
List<List<VectorXZ>> texCoordLists)
draws a triangle fan.
|
void |
Target.drawTriangles(Material material,
Collection<? extends TriangleXYZ> triangles,
List<List<VectorXZ>> texCoordLists)
draws triangles.
|
void |
Target.drawTriangleStrip(Material material,
List<VectorXYZ> vs,
List<List<VectorXZ>> texCoordLists)
draws a triangle strip.
|
void |
Target.drawTrianglesWithNormals(Material material,
Collection<? extends TriangleXYZWithNormals> triangles,
List<List<VectorXZ>> texCoordLists)
draws triangles with explicitly defined normal vectors.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractTarget.drawBox(Material material,
VectorXYZ bottomCenter,
VectorXZ faceDirection,
double height,
double width,
double depth) |
void |
AbstractTarget.drawColumn(Material material,
Integer corners,
VectorXYZ base,
double height,
double radiusBottom,
double radiusTop,
boolean drawBottom,
boolean drawTop)
|
void |
AbstractTarget.drawConvexPolygon(Material material,
List<VectorXYZ> vs,
List<List<VectorXZ>> texCoordLists) |
void |
FaceTarget.drawConvexPolygon(Material material,
List<VectorXYZ> vs,
List<List<VectorXZ>> texCoordLists) |
void |
AbstractTarget.drawExtrudedShape(Material material,
ShapeXZ shape,
List<VectorXYZ> path,
List<VectorXYZ> upVectors,
List<Double> scaleFactors,
List<List<VectorXZ>> texCoordLists,
EnumSet<ExtrudeOption> options)
draws an extruded shape using
AbstractTarget.drawTriangleStrip(Material, List, List) calls. |
abstract void |
FaceTarget.drawFace(Material material,
List<VectorXYZ> vs,
List<VectorXYZ> normals,
List<List<VectorXZ>> texCoordLists) |
protected abstract void |
PrimitiveTarget.drawPrimitive(Primitive.Type type,
Material material,
List<VectorXYZ> vs,
List<VectorXYZ> normals,
List<List<VectorXZ>> texCoordLists) |
void |
AbstractTarget.drawShape(Material material,
SimpleClosedShapeXZ shape,
VectorXYZ point,
VectorXYZ frontVector,
VectorXYZ upVector) |
void |
AbstractTarget.drawTriangleFan(Material material,
List<VectorXYZ> vs,
List<List<VectorXZ>> texCoordLists) |
void |
PrimitiveTarget.drawTriangleFan(Material material,
List<VectorXYZ> vs,
List<List<VectorXZ>> texCoordLists) |
void |
PrimitiveTarget.drawTriangles(Material material,
Collection<? extends TriangleXYZ> triangles,
List<List<VectorXZ>> texCoordLists) |
void |
FaceTarget.drawTriangles(Material material,
Collection<? extends TriangleXYZ> triangles,
List<List<VectorXZ>> texCoordLists) |
void |
AbstractTarget.drawTriangleStrip(Material material,
List<VectorXYZ> vs,
List<List<VectorXZ>> texCoordLists) |
void |
PrimitiveTarget.drawTriangleStrip(Material material,
List<VectorXYZ> vs,
List<List<VectorXZ>> texCoordLists) |
void |
PrimitiveTarget.drawTrianglesWithNormals(Material material,
Collection<? extends TriangleXYZWithNormals> triangles,
List<List<VectorXZ>> texCoordLists) |
void |
FaceTarget.drawTrianglesWithNormals(Material material,
Collection<? extends TriangleXYZWithNormals> triangles,
List<List<VectorXZ>> texCoordLists) |
Modifier and Type | Class and Description |
---|---|
class |
ConfMaterial
a material whose attributes can be configured at runtime.
|
class |
ImmutableMaterial
a simple material class that offers no capabilities beyond the minimum
requirements of
Material |
Modifier and Type | Method and Description |
---|---|
Material |
Material.brighter() |
Material |
Material.darker() |
static Material |
Materials.getSurfaceMaterial(String value)
returns a material for a surface value; null if none is found
|
static Material |
Materials.getSurfaceMaterial(String value,
Material fallback)
same as
Materials.getSurfaceMaterial(String) , but with fallback value |
Material |
Material.makeSmooth() |
Material |
Material.withAddedLayers(List<TextureData> textureLayers)
returns a material that is the same as this one,
except with additional texture data layers stacked on top
|
Modifier and Type | Method and Description |
---|---|
static Material |
Materials.getSurfaceMaterial(String value,
Material fallback)
same as
Materials.getSurfaceMaterial(String) , but with fallback value |
static String |
Materials.getUniqueName(Material material)
returns a human-readable, unique name for a material defined
within this class, null for all other materials.
|
static List<List<VectorXZ>> |
TexCoordUtil.texCoordLists(List<VectorXYZ> vs,
Material material,
TexCoordFunction defaultCoordFunction)
calculates the texture coordinate lists based on the
TexCoordFunction associated with each TextureData layer |
static List<List<VectorXZ>> |
TexCoordUtil.triangleTexCoordLists(Collection<TriangleXYZ> triangles,
Material material,
TexCoordFunction defaultCoordFunction)
equivalent of
TexCoordUtil.texCoordLists(List, Material, TexCoordFunction)
for a collection of triangle objects. |
Modifier and Type | Field and Description |
---|---|
protected Material |
VBOData.material
material associated with this VBO, determines VBO layout
|
Material |
JOGLRendererVBO.PrimitiveWithMaterial.material |
Modifier and Type | Method and Description |
---|---|
Set<Material> |
PrimitiveBuffer.getMaterials()
returns all materials used in the buffer
|
Modifier and Type | Method and Description |
---|---|
protected void |
PrimitiveBuffer.drawPrimitive(Primitive.Type type,
Material material,
List<VectorXYZ> vertices,
List<VectorXYZ> normals,
List<List<VectorXZ>> texCoordLists) |
protected void |
AbstractJOGLTarget.drawPrimitive(Primitive.Type type,
Material material,
List<VectorXYZ> vertices,
List<VectorXYZ> normals,
List<List<VectorXZ>> texCoordLists) |
Collection<Primitive> |
PrimitiveBuffer.getPrimitives(Material material)
returns all primitives that use a given material
|
protected abstract int |
VBOData.getValuesPerVertex(Material material)
Returns the number of values for each vertex in the vertex buffer layout appropriate for a given material.
|
static int |
JOGLRendererVBO.getValuesPerVertex(Material material)
returns the number of values for each vertex
in the vertex buffer layout appropriate for a given material.
|
boolean |
ShadowMapShader.setMaterial(Material material,
JOGLTextureManager textureManager)
Prepare the shader to use the given material when rendering the primitives later.
|
boolean |
SSAOShader.setMaterial(Material material,
JOGLTextureManager textureManager)
Prepare the shader to use the given material when rendering the primitives later.
|
boolean |
DepthBufferShader.setMaterial(Material material,
JOGLTextureManager textureManager) |
boolean |
DefaultShader.setMaterial(Material material,
JOGLTextureManager textureManager) |
boolean |
AbstractPrimitiveShader.setMaterial(Material material,
JOGLTextureManager textureManager)
Prepare the shader to use the given material when rendering the primitives later.
|
Constructor and Description |
---|
VBOData(GL gl,
JOGLTextureManager textureManager,
Material material,
Collection<Primitive> primitives)
Creates a new vertex buffer object, adds all primitives to the buffer and uploads it to graphics memory.
|
Modifier and Type | Method and Description |
---|---|
void |
ObjTarget.drawFace(Material material,
List<VectorXYZ> vs,
List<VectorXYZ> normals,
List<List<VectorXZ>> texCoordLists) |
void |
ObjTarget.drawTrianglesWithNormals(Material material,
Collection<? extends TriangleXYZWithNormals> triangles,
List<List<VectorXZ>> texCoordLists) |
Modifier and Type | Method and Description |
---|---|
void |
POVRayTarget.appendMaterialOrName(Material material) |
void |
POVRayTarget.drawColumn(Material material,
Integer corners,
VectorXYZ base,
double height,
double radiusBottom,
double radiusTop,
boolean drawBottom,
boolean drawTop) |
void |
POVRayTarget.drawColumn(Material material,
Integer corners,
VectorXYZ base,
VectorXYZ cap,
double radiusBottom,
double radiusTop,
boolean drawBottom,
boolean drawTop)
variant of
POVRayTarget.drawColumn(Material, Integer, VectorXYZ, double, double, double, boolean, boolean)
that allows arbitrarily placed columns |
void |
POVRayTarget.drawConvexPolygon(Material material,
List<VectorXYZ> vs,
List<List<VectorXZ>> texCoordLists) |
void |
POVRayTarget.drawTriangles(Material material,
Collection<? extends TriangleXYZ> triangles,
List<List<VectorXZ>> texCoordLists) |
void |
POVRayTarget.drawTrianglesWithNormals(Material material,
Collection<? extends TriangleXYZWithNormals> triangles,
List<List<VectorXZ>> texCoordLists) |
Modifier and Type | Method and Description |
---|---|
Set<Material> |
StatisticsTarget.getKnownMaterials() |
Modifier and Type | Method and Description |
---|---|
protected void |
StatisticsTarget.drawPrimitive(Primitive.Type type,
Material material,
List<VectorXYZ> vs,
List<VectorXYZ> normals,
List<List<VectorXZ>> texCoordLists) |
long |
StatisticsTarget.getCountForMaterial(Material material,
StatisticsTarget.Stat stat) |
Modifier and Type | Method and Description |
---|---|
protected Material |
CliffModule.Cliff.getMaterial() |
protected Material |
CliffModule.RetainingWall.getMaterial() |
Material |
RoadModule.Road.getSurface() |
Modifier and Type | Method and Description |
---|---|
static void |
WorldModuleBillboardUtil.renderCrosstree(Target<?> target,
Material material,
VectorXYZ pos,
double width,
double height,
boolean mirroredTextures)
renders a "cross tree" shape.
|