Jeospace API

org.jeospace.x3d
Class X3DUtils

java.lang.Object
  extended byorg.jeospace.x3d.X3DUtils

public abstract class X3DUtils
extends java.lang.Object

Utility methods for creating simple X3D node sets

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton

Constructor Summary
X3DUtils()
           
 
Method Summary
static Shape createBoxShape(org.web3d.x3d.sai.X3DScene scene, java.awt.Color color)
          Return a Shape containing a Box primative that is the argument Color
static Shape createConeShape(org.web3d.x3d.sai.X3DScene scene, java.awt.Color color)
          Return a Shape containing a Cone primative that is the argument Color
static Shape createIFSShape(org.web3d.x3d.sai.X3DScene scene, IFSDataSource source)
          Return a Shape containing the IndexedFaceSet generated from the source argument
static Shape createIFSShape(org.web3d.x3d.sai.X3DScene scene, IFSDataSource source, boolean createDefaultAppearance)
          Return a Shape containing the IndexedFaceSet generated from the source argument
static Shape createILSShape(org.web3d.x3d.sai.X3DScene scene, ILSDataSource source, java.awt.Color color)
          Return a Shape containing the IndexedLineSet generated from the source argument that is the argument Color
static IndexedFaceSet createIndexedFaceSet(org.web3d.x3d.sai.X3DScene scene, IFSDataSource source)
          Return an IndexedFaceSet generated from the source argument
static Shape createSphereShape(org.web3d.x3d.sai.X3DScene scene, java.awt.Color color)
          Return a Shape containing a Sphere primative that is the argument Color
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X3DUtils

public X3DUtils()
Method Detail

createILSShape

public static Shape createILSShape(org.web3d.x3d.sai.X3DScene scene,
                                   ILSDataSource source,
                                   java.awt.Color color)
Return a Shape containing the IndexedLineSet generated from the source argument that is the argument Color

Parameters:
scene - The X3DScene object to create the Shape with
source - The ILSDataSource which will generate the geometry
color - The Color to apply to the Shape
Returns:
A Shape node

createIFSShape

public static Shape createIFSShape(org.web3d.x3d.sai.X3DScene scene,
                                   IFSDataSource source)
Return a Shape containing the IndexedFaceSet generated from the source argument

Parameters:
scene - The X3DScene object to create the Shape with
source - The IFSDataSource which will generate the geometry
Returns:
A Shape node

createIndexedFaceSet

public static IndexedFaceSet createIndexedFaceSet(org.web3d.x3d.sai.X3DScene scene,
                                                  IFSDataSource source)
Return an IndexedFaceSet generated from the source argument

Parameters:
scene - The X3DScene object to create the Shape with
source - The IFSDataSource which will generate the geometry
Returns:
an IndexedFaceSet node

createIFSShape

public static Shape createIFSShape(org.web3d.x3d.sai.X3DScene scene,
                                   IFSDataSource source,
                                   boolean createDefaultAppearance)
Return a Shape containing the IndexedFaceSet generated from the source argument

Parameters:
scene - The X3DScene object to create the Shape with
source - The IFSDataSource which will generate the geometry
createDefaultAppearance - flag indicating whether the generated Shape should contain an Appearance node with default settings. true an Appearance node is create and added to the Shape. false, the appearance field of the Shape is left as null.
Returns:
A Shape node

createBoxShape

public static Shape createBoxShape(org.web3d.x3d.sai.X3DScene scene,
                                   java.awt.Color color)
Return a Shape containing a Box primative that is the argument Color

Parameters:
scene - The X3DScene object to create the Shape with
color - The Color to apply to the Shape
Returns:
A Shape node

createConeShape

public static Shape createConeShape(org.web3d.x3d.sai.X3DScene scene,
                                    java.awt.Color color)
Return a Shape containing a Cone primative that is the argument Color

Parameters:
scene - The X3DScene object to create the Shape with
color - The Color to apply to the Shape
Returns:
A Shape node

createSphereShape

public static Shape createSphereShape(org.web3d.x3d.sai.X3DScene scene,
                                      java.awt.Color color)
Return a Shape containing a Sphere primative that is the argument Color

Parameters:
scene - The X3DScene object to create the Shape with
color - The Color to apply to the Shape
Returns:
A Shape node

Jeospace API

Copyright © 2006 - jeospace.org