/** * Constructs an image panel group for specified axes. * Both 3D arrays of floats much be consistent with the specified sampling. * @param s1 sampling of 1st dimension (Z axis). * @param s2 sampling of 2nd dimension (Y axis). * @param s3 sampling of 3rd dimension (X axis). * @param f1 1st abstract 3D array of floats. * @param f2 2nd abstract 3D array of floats. * @param axes array of axes, one for each image panel. */ public ImagePanelGroup2( Sampling s1, Sampling s2, Sampling s3, Float3 f1, Float3 f2, Axis[] axes) { _clips1 = new Clips(f1); _clips2 = new Clips(f2); addPanels(s1,s2,s3,f1,f2,axes); addChild(new ImagePanelGroup.Wires(_ip1List)); }
private void addPanels( Sampling s1, Sampling s2, Sampling s3, Float3 f1, Float3 f2, Axis[] axes) checkSampling(s1,s2,s3,f1,f2); _s1 = s1; _s2 = s2; ip1.setStates(ss1); ip2.setStates(ss2); ip1.setColorModel(getColorModel1()); ip2.setColorModel(getColorModel2()); aaf.addChild(ip1); aaf.addChild(ip2); this.addChild(aaq); _ip1List.add(ip1); _ip2List.add(ip2);
public static void main(String[] args) { int n1 = 101; int n2 = 121; int n3 = 141; double d1 = 1.0/(n1-1); double d2 = d1; double d3 = d1; double f1 = 0.0; double f2 = 0.0; double f3 = 0.0; Sampling s1 = new Sampling(n1,d1,f1); Sampling s2 = new Sampling(n2,d2,f2); Sampling s3 = new Sampling(n3,d3,f3); float k1 = 4.0f*FLT_PI*(float)d1; float k2 = 4.0f*FLT_PI*(float)d2; float k3 = 4.0f*FLT_PI*(float)d3; float[][][] fb = rampfloat(0.0f,k1,k2,k3,n1,n2,n3); float[][][] fa = sin(fb); ImagePanelGroup2 ipg = new ImagePanelGroup2(s1,s2,s3,fa,fb); ipg.setPercentiles1(1,99); World world = new World(); world.addChild(ipg); DemoFrame frame = new DemoFrame(world); frame.setVisible(true); } }