samer@0: package samer.j3d; samer@0: samer@0: import samer.core.types.*; samer@0: import samer.maths.*; samer@0: import java.util.*; samer@0: import java.awt.Color; samer@0: import javax.media.j3d.*; samer@0: import javax.vecmath.*; samer@0: samer@0: samer@0: public class Points4D extends PointArray implements Observer samer@0: { samer@0: int N; // number of points samer@0: Matrix P; // 3d positions of points samer@0: VVector A; // scalar activations samer@0: VDouble K; // scaling factor for activations samer@0: samer@0: Color4f carray[]; samer@0: samer@0: public Points4D(Matrix points, VVector activities) samer@0: { samer@0: super(points.getRowDimension(), COORDINATES | COLOR_4); samer@0: samer@0: N=points.getRowDimension(); samer@0: P=points; samer@0: A=activities; samer@0: K=new VDouble("scale",1); samer@0: samer@0: carray=new Color4f[N]; samer@0: for (int i=0; i