java.lang.Object
de.grogra.webgl.ObjectBase
- All Implemented Interfaces:
SceneGraphExport.NodeExport
- Direct Known Subclasses:
Box
,Cone
,Cylinder
,Frustum
,LightExport
,Line
,Parallelogram
,Plane
,Point
,Polygonizable
,Sphere
,Text
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected PrintWriter
protected static final int
protected Matrix4d
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
export
(SceneTree.Leaf node, SceneTree.InnerNode transform, SceneGraphExport sge) Exports the leafnode
to the destination.
-
Field Details
-
FACTOR
protected static final int FACTOR- See Also:
-
SEGMENTS
protected static final int SEGMENTS- See Also:
-
transformation
-
out
-
-
Constructor Details
-
ObjectBase
public ObjectBase()
-
-
Method Details
-
export
public void export(SceneTree.Leaf node, SceneTree.InnerNode transform, SceneGraphExport sge) throws IOException Description copied from interface:SceneGraphExport.NodeExport
Exports the leafnode
to the destination. Iftransform
is non-null
, this means thatnode
is the only child oftransform
and the transformation oftransform
has to be exported together with thenode
.- Specified by:
export
in interfaceSceneGraphExport.NodeExport
- Parameters:
node
- a leaf of the scene treetransform
- transformation of nodesge
- invoking export instance- Throws:
IOException
-