j3d.org Code

org.j3d.renderer.java3d.terrain
Interface J3DLandscape

All Known Implementing Classes:
J3DAbstractLandscape, J3DSplitMergeLandscape

public interface J3DLandscape

Representation of a Java3D-specific additional interfaces to the basic Landscape interface.

Version:
$Revision: 1.1 $
Author:
Justin Couch

Method Summary
 AppearanceGenerator getAppearanceGenerator()
          Get the currently set appearance generator.
 javax.media.j3d.BranchGroup getSceneGraphObject()
          Get the geometry group that this terrain is being rendered to.
 void setAppearanceGenerator(AppearanceGenerator gen)
          Set the appearance generator to create new appearanace items.
 void setView(javax.media.j3d.Transform3D t3d)
          Set the current view location information based on a transform matrix.
 

Method Detail

setView

public void setView(javax.media.j3d.Transform3D t3d)
Set the current view location information based on a transform matrix. Only the position and orientation information are extracted from this matrix. Any shear or scale is ignored. Effectively, this transform should be the view transform (particularly if you are using navigation code from this codebase in the org.j3d.renderer.java3d.navigation package.

Parameters:
t3d - The transform to use as the view position

setAppearanceGenerator

public void setAppearanceGenerator(AppearanceGenerator gen)
Set the appearance generator to create new appearanace items. If null is passed, it clears the current appearance settings

Parameters:
gen - The new generator instance to use

getAppearanceGenerator

public AppearanceGenerator getAppearanceGenerator()
Get the currently set appearance generator. If not set, returns null.

Returns:
The current generator instance

getSceneGraphObject

public javax.media.j3d.BranchGroup getSceneGraphObject()
Get the geometry group that this terrain is being rendered to.

Returns:
The parent group for all the terrain

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org