public class Common
extends java.lang.Object
The handler for proprietary issues. It contains static methods:
This source is free; you can redistribute it and/or modify it under the terms of the GNU General Public License and by nameing of the originally author
| Modifier and Type | Class and Description |
|---|---|
static class |
Common.CoordData
wrapper for parsed vertex/texcoord data
|
static class |
Common.Texture
Wrapper for Texture containing meta data
|
| Constructor and Description |
|---|
Common() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addShapes(java.util.ArrayList<DataAssembler.Param> p)
add Parsed triangles or lines to master pool
|
static java.util.ArrayList<Line> |
createLines(java.util.ArrayList<DataAssembler.Param> p)
creates Lines based on this shape.
|
static Common.Texture |
getTexImage(java.util.ArrayList<DataAssembler.Param> p)
extracts PImage from triangles tag
|
static java.util.HashMap<java.lang.String,Common.Texture> |
importTextures(java.util.ArrayList<DataAssembler.Param> p)
Adds a new PImage Texture (with meta data) from a image file
(given by <init_from> tag) into a new created or
existing texture pool.
|
static void |
submitShapes(java.util.ArrayList<DataAssembler.Param> p)
Send Triangle and Line Masterpool to Model
|
public static Common.Texture getTexImage(java.util.ArrayList<DataAssembler.Param> p)
1. - a <Triangles> or a <PolyList> (parent) with args: path to <init_from> tag (<library_images>)2. - PImage Pool (HashMap<String,Texture>)public static java.util.HashMap<java.lang.String,Common.Texture> importTextures(java.util.ArrayList<DataAssembler.Param> p)
1. - a certain subtag of <effect> with args to <init_from>, containing a single image file name2. - an existing texture pool (HashMap<String,Texture>) or null3. - interface descriptor (implementing DataAssembler.LoadingListener)public static void addShapes(java.util.ArrayList<DataAssembler.Param> p)
1. - Interface descriptor2. - Triangle Sublist (ArrayList<Triangle>)3. - Line Sublist (ArrayList<Line>)public static void submitShapes(java.util.ArrayList<DataAssembler.Param> p)
p - public static java.util.ArrayList<Line> createLines(java.util.ArrayList<DataAssembler.Param> p)
creates Lines based on this shape. The coordinates is converted from Collada to Processing as follows:
processing x = Collada x
processing y = Collada -z
processing z = Collada -y
1. - Raw coords (vertex) Type:Common.CoordData2. - a Color (converted to processing) Type:wrappers.Color