de.grogra.webgl
public abstract class ObjectBase extends java.lang.Object implements SceneGraphExport.NodeExport
| Modifier and Type | Field and Description |
|---|---|
protected static int |
FACTOR |
protected java.io.PrintWriter |
out |
protected static int |
SEGMENTS |
protected Matrix4d |
transformation |
| Constructor and Description |
|---|
ObjectBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
export(SceneTree.Leaf node,
SceneTree.InnerNode transform,
SceneGraphExport sge)
Exports the leaf
node to the destination. |
protected static final int FACTOR
protected java.io.PrintWriter out
protected static final int SEGMENTS
protected Matrix4d transformation
public void export(SceneTree.Leaf node, SceneTree.InnerNode transform, SceneGraphExport sge) throws java.io.IOException
SceneGraphExport.NodeExportnode to the destination. If
transform is non-null, this means that
node is the only child of transform
and the transformation of transform has to be
exported together with the node.export in interface SceneGraphExport.NodeExportnode - a leaf of the scene treetransform - transformation of nodesge - invoking export instancejava.io.IOException