public class Surface3D
extends javax.media.j3d.Shape3D
ALLOW_APPEARANCE_OVERRIDE_READ, ALLOW_APPEARANCE_OVERRIDE_WRITE, ALLOW_APPEARANCE_READ, ALLOW_APPEARANCE_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE, ALLOW_GEOMETRY_READ, ALLOW_GEOMETRY_WRITE
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
Constructor and Description |
---|
Surface3D(java.util.ArrayList<java.util.ArrayList<java.lang.Float>> surfaceData,
boolean threeD) |
Surface3D(java.util.ArrayList<java.util.ArrayList<java.lang.Float>> FFTData,
boolean threeD,
double xSize,
double ySize,
ColourArray.ColourArrayType colours) |
Modifier and Type | Method and Description |
---|---|
void |
compress(javax.vecmath.Point3d[] points,
javax.vecmath.Color3b[] colours)
Use this function to reduce the number of polygons by around half for large wire frame 3D spectrograms.
|
javax.media.j3d.QuadArray |
createSpectroSurface(boolean threeD)
Convert the FFT data to a 3D surface;
|
static java.util.ArrayList<java.util.ArrayList<java.lang.Float>> |
generateTestData(int bins,
int fftSize)
Generate a spectrogram of random data/noise.
|
void |
setColor(ColourArray.ColourArrayType colour) |
void |
setSpectrogramX(double X) |
void |
setSpectrogramY(double Y) |
addGeometry, cloneNode, duplicateNode, getAllGeometries, getAppearance, getAppearanceOverrideEnable, getBounds, getCollisionBounds, getGeometry, getGeometry, indexOfGeometry, insertGeometry, intersect, intersect, intersect, numGeometries, removeAllGeometries, removeGeometry, removeGeometry, setAppearance, setAppearanceOverrideEnable, setCollisionBounds, setGeometry, setGeometry
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
public Surface3D(java.util.ArrayList<java.util.ArrayList<java.lang.Float>> surfaceData, boolean threeD)
surfaceData-
- NORMALISED datathreeD
- public Surface3D(java.util.ArrayList<java.util.ArrayList<java.lang.Float>> FFTData, boolean threeD, double xSize, double ySize, ColourArray.ColourArrayType colours)
public static java.util.ArrayList<java.util.ArrayList<java.lang.Float>> generateTestData(int bins, int fftSize)
bins
- fftSize
- public javax.media.j3d.QuadArray createSpectroSurface(boolean threeD)
public void compress(javax.vecmath.Point3d[] points, javax.vecmath.Color3b[] colours)
public void setSpectrogramY(double Y)
public void setSpectrogramX(double X)
public void setColor(ColourArray.ColourArrayType colour)