public class SceneGraphBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.HashMap<java.awt.Color,javax.media.j3d.Appearance> |
appHM |
(package private) javax.media.j3d.BranchGroup |
baseGroup |
(package private) javax.media.j3d.Appearance |
defaultAppearance |
(package private) javax.media.j3d.Appearance[] |
randomAppearances |
(package private) java.util.ArrayList<javax.media.j3d.Shape3D> |
shapes |
Constructor and Description |
---|
SceneGraphBuilder() |
Modifier and Type | Method and Description |
---|---|
private void |
buildFlatTree(IcingPoint[] points,
int res,
double fac) |
void |
buildTree(IcingPoint[] points,
int res,
double fac) |
private float |
flimit(double x) |
private javax.media.j3d.Appearance |
getAppearance(java.awt.Color c) |
javax.media.j3d.BranchGroup |
getSceneGraph() |
java.util.ArrayList<javax.media.j3d.Shape3D> |
getShapes() |
void |
loadElements(java.util.ArrayList<VolElt> elements) |
private javax.media.j3d.Appearance |
makeDefaultAppearance() |
private javax.media.j3d.Appearance[] |
makeRandomAppearances(int n) |
private javax.media.j3d.TriangleStripArray |
mkCarrotoidTriangles(double ra,
double rb,
double d,
int nside,
int ncapa,
int ncapb) |
private javax.media.j3d.TriangleStripArray |
mkSphereTriangles(double ra,
int ncap) |
private javax.vecmath.Color3f |
randomColor(java.util.Random r,
double d) |
private double |
rcol(java.util.Random r,
double d) |
private javax.vecmath.Color3f |
rescale(javax.vecmath.Color3f c,
double d) |
private void |
vnStrip(float[] datv,
float[] datn,
int koff,
int nside,
double ra,
double rb,
double da,
double db,
double s0,
double c0,
double s1,
double c1,
double[][] incs,
double[][] outcs) |
javax.media.j3d.BranchGroup baseGroup
java.util.HashMap<java.awt.Color,javax.media.j3d.Appearance> appHM
javax.media.j3d.Appearance defaultAppearance
javax.media.j3d.Appearance[] randomAppearances
java.util.ArrayList<javax.media.j3d.Shape3D> shapes
private javax.media.j3d.Appearance makeDefaultAppearance()
private javax.media.j3d.Appearance[] makeRandomAppearances(int n)
private javax.vecmath.Color3f rescale(javax.vecmath.Color3f c, double d)
private float flimit(double x)
private javax.vecmath.Color3f randomColor(java.util.Random r, double d)
private double rcol(java.util.Random r, double d)
private javax.media.j3d.Appearance getAppearance(java.awt.Color c)
public void buildTree(IcingPoint[] points, int res, double fac)
private void buildFlatTree(IcingPoint[] points, int res, double fac)
private javax.media.j3d.TriangleStripArray mkCarrotoidTriangles(double ra, double rb, double d, int nside, int ncapa, int ncapb)
private javax.media.j3d.TriangleStripArray mkSphereTriangles(double ra, int ncap)
private void vnStrip(float[] datv, float[] datn, int koff, int nside, double ra, double rb, double da, double db, double s0, double c0, double s1, double c1, double[][] incs, double[][] outcs)
public javax.media.j3d.BranchGroup getSceneGraph()
public void loadElements(java.util.ArrayList<VolElt> elements)
public java.util.ArrayList<javax.media.j3d.Shape3D> getShapes()
Copyright © 2013. All Rights Reserved.