java.lang.Object
de.grogra.ext.povray.POVObject
de.grogra.ext.povray.POVNode
- All Implemented Interfaces:
SceneGraphExport.NodeExport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
export
(SceneTree.Leaf node, SceneTree.InnerNode transform, SceneGraphExport sge) Exports the leafnode
to the destination.protected void
exportFooter
(Object object, SceneTreeWithShader.Leaf node, SceneTree.InnerNode transform, POVExport export) protected void
exportMaterial
(SceneTreeWithShader.Leaf node, Shader front, Shader back, ChannelMap mapping, POVExport export) protected void
exportTextureFooter
(Phong mat, ChannelMap mapping, SceneTreeWithShader.Leaf node, POVExport export) protected void
exportTextureHeader
(Phong mat, SceneTreeWithShader.Leaf node, POVExport export) protected void
exportTransform
(SceneTreeWithShader.Leaf node, SceneTree.InnerNode transform, POVExport export) Methods inherited from class de.grogra.ext.povray.POVObject
createIdentifier, export, exportHeader, exportImpl, getType, shouldDeclareObject
-
Constructor Details
-
POVNode
-
POVNode
-
-
Method Details
-
exportTransform
protected void exportTransform(SceneTreeWithShader.Leaf node, SceneTree.InnerNode transform, POVExport export) throws IOException - Throws:
IOException
-
exportMaterial
protected void exportMaterial(SceneTreeWithShader.Leaf node, Shader front, Shader back, ChannelMap mapping, POVExport export) throws IOException - Throws:
IOException
-
exportTextureHeader
protected void exportTextureHeader(Phong mat, SceneTreeWithShader.Leaf node, POVExport export) throws IOException - Throws:
IOException
-
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