de.jreality.writer.u3d
Class U3DSceneUtility
java.lang.Object
de.jreality.writer.u3d.U3DSceneUtility
public class U3DSceneUtility
- extends Object
Method Summary |
static HashMap<SceneGraphComponent,EffectiveAppearance> |
getAppearanceMap(JrScene scene)
|
static HashMap<EffectiveAppearance,String> |
getAppearanceNames(Collection<EffectiveAppearance> apps)
|
static HashMap<Geometry,Rectangle3D> |
getBoundingBoxes(Collection<Geometry> l)
|
static BufferedImage |
getBufferedImage(ImageData img)
|
static List<Camera> |
getCameras(JrScene scene)
|
static List<Geometry> |
getGeometries(JrScene scene)
|
static List<SceneGraphComponent> |
getLightNodes(JrScene scene)
|
static List<Light> |
getLights(JrScene scene)
|
static HashMap<SceneGraphComponent,Collection<SceneGraphComponent>> |
getParentsMap(Collection<SceneGraphComponent> l)
|
static List<SceneGraphComponent> |
getSceneGraphComponents(JrScene scene)
|
static SceneGraphComponent |
getSkyBox(JrScene scene)
|
static HashMap<EffectiveAppearance,U3DTexture> |
getSphereMapsMap(Collection<EffectiveAppearance> apps)
|
static HashMap<EffectiveAppearance,U3DTexture> |
getTextureMap(Collection<EffectiveAppearance> apps)
|
static HashMap<U3DTexture,String> |
getTextureNames(String prefix,
Collection<U3DTexture> l)
|
static
|
getUniqueNames(Collection<T> l)
|
static List<SceneGraphComponent> |
getViewNodes(JrScene scene)
|
static HashMap<SceneGraphComponent,Boolean> |
getVisibility(JrScene scene,
HashMap<SceneGraphComponent,EffectiveAppearance> appMap)
|
static IndexedFaceSet |
prepareFaceSet(IndexedFaceSet ifs)
|
static HashMap<Geometry,Geometry> |
prepareGeometry(Collection<Geometry> geometry)
|
static byte[] |
preparePNGImageData(ImageData img)
|
static HashMap<U3DTexture,byte[]> |
preparePNGTextures(Collection<U3DTexture> textures)
|
static HashMap<CubeMap,byte[]> |
prepareSphereMap(Collection<CubeMap> maps)
|
static
|
printAppearanceNameMap(HashMap<T,String> map)
|
static void |
printComponents(Collection<SceneGraphComponent> l)
|
static
|
printNameMap(HashMap<T,String> map)
|
static void |
printNodes(String title,
Collection<? extends SceneGraphNode> l)
|
static
|
printTextureNameMap(HashMap<T,String> map)
|
static void |
printTextures(Collection<U3DTexture> l)
|
U3DSceneUtility
public U3DSceneUtility()
getParentsMap
public static HashMap<SceneGraphComponent,Collection<SceneGraphComponent>> getParentsMap(Collection<SceneGraphComponent> l)
getSceneGraphComponents
public static List<SceneGraphComponent> getSceneGraphComponents(JrScene scene)
getUniqueNames
public static <T extends SceneGraphNode> HashMap<T,String> getUniqueNames(Collection<T> l)
getViewNodes
public static List<SceneGraphComponent> getViewNodes(JrScene scene)
getLightNodes
public static List<SceneGraphComponent> getLightNodes(JrScene scene)
printComponents
public static void printComponents(Collection<SceneGraphComponent> l)
printNameMap
public static <T extends SceneGraphNode> void printNameMap(HashMap<T,String> map)
printNodes
public static void printNodes(String title,
Collection<? extends SceneGraphNode> l)
printTextures
public static void printTextures(Collection<U3DTexture> l)
printAppearanceNameMap
public static <T extends EffectiveAppearance> void printAppearanceNameMap(HashMap<T,String> map)
printTextureNameMap
public static <T extends U3DTexture> void printTextureNameMap(HashMap<T,String> map)
getGeometries
public static List<Geometry> getGeometries(JrScene scene)
getCameras
public static List<Camera> getCameras(JrScene scene)
getLights
public static List<Light> getLights(JrScene scene)
prepareFaceSet
public static IndexedFaceSet prepareFaceSet(IndexedFaceSet ifs)
prepareGeometry
public static HashMap<Geometry,Geometry> prepareGeometry(Collection<Geometry> geometry)
getAppearanceMap
public static HashMap<SceneGraphComponent,EffectiveAppearance> getAppearanceMap(JrScene scene)
getAppearanceNames
public static HashMap<EffectiveAppearance,String> getAppearanceNames(Collection<EffectiveAppearance> apps)
getSphereMapsMap
public static HashMap<EffectiveAppearance,U3DTexture> getSphereMapsMap(Collection<EffectiveAppearance> apps)
prepareSphereMap
public static HashMap<CubeMap,byte[]> prepareSphereMap(Collection<CubeMap> maps)
getTextureNames
public static HashMap<U3DTexture,String> getTextureNames(String prefix,
Collection<U3DTexture> l)
getTextureMap
public static HashMap<EffectiveAppearance,U3DTexture> getTextureMap(Collection<EffectiveAppearance> apps)
getBufferedImage
public static BufferedImage getBufferedImage(ImageData img)
preparePNGImageData
public static byte[] preparePNGImageData(ImageData img)
preparePNGTextures
public static HashMap<U3DTexture,byte[]> preparePNGTextures(Collection<U3DTexture> textures)
getBoundingBoxes
public static HashMap<Geometry,Rectangle3D> getBoundingBoxes(Collection<Geometry> l)
getSkyBox
public static SceneGraphComponent getSkyBox(JrScene scene)
getVisibility
public static HashMap<SceneGraphComponent,Boolean> getVisibility(JrScene scene,
HashMap<SceneGraphComponent,EffectiveAppearance> appMap)