| .. | .. | 
|---|
| 30 | 30 |  	{ | 
|---|
| 31 | 31 |                  super.SetupUI2(oe); | 
|---|
| 32 | 32 |                   | 
|---|
| 33 |  | -        oe.ctrlPanel.add(depthLabel = new JLabel("Depth"), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 34 |  | -		oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;  | 
|---|
| 35 |  | -		oe.aConstraints.gridx += 1;  | 
|---|
| 36 |  | -		oe.aConstraints.gridwidth = ObjEditor.GRIDWIDTH;  | 
|---|
| 37 |  | -        oe.ctrlPanel.add(depthField = new NumberSlider(0, 5), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 38 |  | -		oe.aConstraints.gridy += 1;  | 
|---|
| 39 |  | -		oe.aConstraints.gridwidth = 1;  | 
|---|
| 40 |  | -		oe.aConstraints.fill = 0;  | 
|---|
| 41 |  | -		oe.aConstraints.gridx -= 1;  | 
|---|
 | 33 | +        oe.ctrlPanel.add(depthLabel = new JLabel("Depth")); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 34 | +        oe.ctrlPanel.Return();  | 
|---|
 | 35 | +        oe.ctrlPanel.add(depthField = new NumberSlider(0, 5)); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 42 | 36 |   | 
|---|
| 43 | 37 |          depthField.setInteger(bezier.GetDepth()); | 
|---|
| 44 | 38 |  		depthField.addChangeListener(this); | 
|---|
 
| .. | .. | 
|---|
| 67 | 67 |  		oe.aConstraints.gridwidth = 1; | 
|---|
| 68 | 68 |               */ | 
|---|
| 69 | 69 |              super.SetupUI2(oe); | 
|---|
| 70 |  | -                  | 
|---|
| 71 |  | -            uDivsField = AddSlider(oe.ctrlPanel, "U #", biparam.minUDivs, 250+biparam.minUDivs, biparam.uDivs);  | 
|---|
| 72 |  | -            Return();  | 
|---|
| 73 |  | -            vDivsField = AddSlider(oe.ctrlPanel, "V #", biparam.minVDivs, (int)(500/3.14)+biparam.minVDivs, biparam.vDivs);  | 
|---|
| 74 |  | -            Return();  | 
|---|
 | 70 | +                             | 
|---|
 | 71 | +            uvPanel = new cGridBag().setVertical(true);  | 
|---|
 | 72 | +                      | 
|---|
 | 73 | +            uDivsField = (cNumberSlider)AddSlider(uvPanel, "U #", biparam.minUDivs, 250+biparam.minUDivs, biparam.uDivs).getComponent(1);  | 
|---|
 | 74 | +            vDivsField = (cNumberSlider)AddSlider(uvPanel, "V #", biparam.minVDivs, (int)(500/3.1416)+biparam.minVDivs, biparam.vDivs).getComponent(1);  | 
|---|
 | 75 | +              | 
|---|
 | 76 | +            oe.ctrlPanel.add(uvPanel);  | 
|---|
 | 77 | +            oe.ctrlPanel.Return();  | 
|---|
| 75 | 78 |  //		oe.aConstraints.gridwidth = 1; | 
|---|
| 76 | 79 |  //		oe.aConstraints.fill = GridBagConstraints.VERTICAL; | 
|---|
| 77 | 80 |  //        oe.ctrlPanel.add(uDivsLabel = new JLabel("U #"), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2); | 
|---|
| .. | .. | 
|---|
| 98 | 101 |  //		oe.aConstraints.gridwidth = 1; | 
|---|
| 99 | 102 |          if (biparam instanceof Cone) // ends) | 
|---|
| 100 | 103 |          { | 
|---|
| 101 |  | -			oe.aConstraints.gridy += 1;  | 
|---|
| 102 |  | -			oe.aConstraints.gridwidth = 3;  | 
|---|
| 103 |  | -//			oe.aConstraints.anchor = GridBagConstraints.WEST;  | 
|---|
| 104 |  | -            oe.ctrlPanel.add(optionCB = new JCheckBox("Close Surface", biparam.endcaps), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 104 | +            oe.ctrlPanel.add(optionCB = new JCheckBox("Close Surface", biparam.endcaps)); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 105 | 105 |  			optionCB.addItemListener(this); | 
|---|
| 106 |  | -//			oe.aConstraints.anchor = GridBagConstraints.EAST;  | 
|---|
| 107 |  | -			oe.aConstraints.gridwidth = 1;  | 
|---|
 | 106 | +oe.ctrlPanel.Return();  | 
|---|
| 108 | 107 |              //endcaps.setState(!biparam.endcaps); | 
|---|
| 109 | 108 |          } | 
|---|
| 110 |  | -		oe.aConstraints.gridy += 1;  | 
|---|
| 111 |  | -		oe.aConstraints.gridx = 0;  | 
|---|
| 112 | 109 |      } | 
|---|
| 113 | 110 |  	 | 
|---|
| 114 | 111 |  	void Clear() | 
|---|
| .. | .. | 
|---|
| 246 | 243 |  //		oe.ctrlPanel.remove(uDivsLabel); | 
|---|
| 247 | 244 |  //		oe.ctrlPanel.remove(vDivsLabel); | 
|---|
| 248 | 245 |  //		//oe.ctrlPanel.repaint(); | 
|---|
| 249 |  | -                Remove(uDivsField);  | 
|---|
| 250 |  | -                Remove(vDivsField);  | 
|---|
 | 246 | +//                Remove(uDivsField);  | 
|---|
 | 247 | +//                Remove(vDivsField);  | 
|---|
 | 248 | +		oe.ctrlPanel.remove(uvPanel);  | 
|---|
| 251 | 249 |                   | 
|---|
| 252 | 250 |                  super.closeUI(); | 
|---|
| 253 | 251 |  	} | 
|---|
| .. | .. | 
|---|
| 269 | 267 |      cNumberSlider vDivsField; | 
|---|
| 270 | 268 |      JCheckBox optionCB; | 
|---|
| 271 | 269 |   | 
|---|
 | 270 | +    cGridBag uvPanel;  | 
|---|
 | 271 | +      | 
|---|
| 272 | 272 |  	ObjectUI parent; | 
|---|
| 273 | 273 |  	 | 
|---|
| 274 | 274 |  	//ObjEditor objEditor; | 
|---|
 
| .. | .. | 
|---|
| 82 | 82 |   | 
|---|
| 83 | 83 |      void retile() | 
|---|
| 84 | 84 |      { | 
|---|
 | 85 | +                new Exception().printStackTrace();  | 
|---|
| 85 | 86 |          System.exit(0); | 
|---|
| 86 | 87 |  		ClearList(); | 
|---|
| 87 | 88 |          bRep = (new ImplicitTiler(this, ImplicitTiler.SURFACEID, true, true, true, cellSize, cellSize, tolerance, true)).bRep; | 
|---|
 
| .. | .. | 
|---|
| 43 | 43 |  	{ | 
|---|
| 44 | 44 |                  super.SetupUI2(oe); | 
|---|
| 45 | 45 |                   | 
|---|
| 46 |  | -		oe.ctrlPanel.add(thresholdLabel = new JLabel("Threshold"), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 47 |  | -		oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;  | 
|---|
| 48 |  | -		oe.aConstraints.gridx += 1;  | 
|---|
| 49 |  | -		oe.aConstraints.gridwidth = ObjEditor.GRIDWIDTH;  | 
|---|
| 50 |  | -		oe.ctrlPanel.add(thresholdField = new NumberField(), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 51 |  | -		thresholdField.addActionListener(this);  | 
|---|
| 52 |  | -		oe.aConstraints.gridwidth = 1;  | 
|---|
| 53 |  | -		thresholdField.setFloat(blob.threshold);  | 
|---|
| 54 |  | -		oe.aConstraints.fill = 0;  | 
|---|
| 55 |  | -		oe.aConstraints.gridx = 0;  | 
|---|
| 56 |  | -		oe.aConstraints.gridy += 1;  | 
|---|
| 57 |  | -		oe.aConstraints.gridwidth = ObjEditor.GRIDWIDTH;  | 
|---|
| 58 |  | -		oe.ctrlPanel.add(newButton = new JButton("New Ball"), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 59 |  | -		newButton.addActionListener(this);  | 
|---|
| 60 |  | -		oe.aConstraints.gridx += 2;  | 
|---|
| 61 |  | -		oe.ctrlPanel.add(deleteButton = new JButton("Delete Ball"), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 62 |  | -		deleteButton.addActionListener(this);  | 
|---|
| 63 |  | -		oe.aConstraints.gridwidth = 1;  | 
|---|
| 64 |  | -		oe.aConstraints.gridx = 0;  | 
|---|
| 65 |  | -		oe.aConstraints.gridy += 1;  | 
|---|
| 66 |  | -		oe.ctrlPanel.add(strengthLabel = new JLabel("Strength"), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 67 |  | -		oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;  | 
|---|
| 68 |  | -		oe.aConstraints.gridwidth = ObjEditor.GRIDWIDTH;  | 
|---|
| 69 |  | -		oe.aConstraints.gridx += 1;  | 
|---|
| 70 |  | -		oe.ctrlPanel.add(strengthField = new NumberField(), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 71 |  | -		strengthField.addActionListener(this);  | 
|---|
| 72 |  | -		oe.aConstraints.gridwidth = 1;  | 
|---|
| 73 |  | -		toCompFields();  | 
|---|
| 74 |  | -		oe.aConstraints.fill = 0;  | 
|---|
| 75 |  | -		oe.aConstraints.gridx = 0;  | 
|---|
| 76 |  | -		oe.aConstraints.gridy += 1;  | 
|---|
| 77 |  | -		  | 
|---|
| 78 |  | -		oe.ctrlPanel.add(sizeLabel = new JLabel("Depth"), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 79 |  | -		oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;  | 
|---|
| 80 |  | -		oe.aConstraints.gridx += 1;  | 
|---|
| 81 |  | -		oe.aConstraints.gridwidth = ObjEditor.GRIDWIDTH;  | 
|---|
| 82 |  | -		oe.ctrlPanel.add(sizeField = new NumberField(), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 83 |  | -		sizeField.addActionListener(this);  | 
|---|
| 84 |  | -		oe.aConstraints.gridwidth = 1;  | 
|---|
| 85 |  | -		sizeField.setFloat(blob.cellSize);  | 
|---|
| 86 |  | -		oe.aConstraints.gridy += 1;  | 
|---|
| 87 |  | -		oe.aConstraints.fill = 0;  | 
|---|
| 88 |  | -		oe.aConstraints.gridx = 0;  | 
|---|
 | 46 | +		oe.ctrlPanel.add(thresholdLabel = new JLabel("Threshold:")); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 89 | 47 |   | 
|---|
| 90 |  | -		oe.ctrlPanel.add(tolLabel = new JLabel("Tolerance"), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 91 |  | -		oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;  | 
|---|
| 92 |  | -		oe.aConstraints.gridx += 1;  | 
|---|
| 93 |  | -		oe.aConstraints.gridwidth = ObjEditor.GRIDWIDTH;  | 
|---|
| 94 |  | -		oe.ctrlPanel.add(tolField = new NumberField(), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 48 | +                oe.ctrlPanel.Return();  | 
|---|
 | 49 | +                  | 
|---|
 | 50 | +                oe.ctrlPanel.add(thresholdField = new NumberField()); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 51 | +		thresholdField.addActionListener(this);  | 
|---|
 | 52 | +                thresholdField.setFloat(blob.threshold);  | 
|---|
 | 53 | +  | 
|---|
 | 54 | +                oe.ctrlPanel.Return();  | 
|---|
 | 55 | +                  | 
|---|
 | 56 | +                oe.ctrlPanel.add(newButton = new JButton("New Ball")); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 57 | +		newButton.addActionListener(this);  | 
|---|
 | 58 | +                oe.ctrlPanel.Return();  | 
|---|
 | 59 | +  | 
|---|
 | 60 | +                oe.ctrlPanel.add(deleteButton = new JButton("Delete Ball")); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 61 | +		deleteButton.addActionListener(this);  | 
|---|
 | 62 | +                oe.ctrlPanel.Return();  | 
|---|
 | 63 | +  | 
|---|
 | 64 | +                /*  | 
|---|
 | 65 | +                oe.ctrlPanel.add(strengthLabel = new JLabel("Strength:")); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 66 | +                  | 
|---|
 | 67 | +                oe.ctrlPanel.Return();  | 
|---|
 | 68 | +                  | 
|---|
 | 69 | +                oe.ctrlPanel.add(strengthField = new NumberField()); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 70 | +		strengthField.addActionListener(this);  | 
|---|
 | 71 | +  | 
|---|
 | 72 | +                oe.ctrlPanel.Return();  | 
|---|
 | 73 | +                 */  | 
|---|
 | 74 | +                  | 
|---|
 | 75 | +                toCompFields();  | 
|---|
 | 76 | +		  | 
|---|
 | 77 | +		oe.ctrlPanel.add(sizeLabel = new JLabel("Depth:")); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 78 | +  | 
|---|
 | 79 | +                oe.ctrlPanel.Return();  | 
|---|
 | 80 | +                  | 
|---|
 | 81 | +                oe.ctrlPanel.add(sizeField = new NumberField()); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 82 | +		sizeField.addActionListener(this);  | 
|---|
 | 83 | +                sizeField.setFloat(blob.cellSize);  | 
|---|
 | 84 | +  | 
|---|
 | 85 | +                oe.ctrlPanel.Return();  | 
|---|
 | 86 | +                  | 
|---|
 | 87 | +		oe.ctrlPanel.add(tolLabel = new JLabel("Tolerance:")); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 88 | +  | 
|---|
 | 89 | +                oe.ctrlPanel.Return();  | 
|---|
 | 90 | +                  | 
|---|
 | 91 | +                oe.ctrlPanel.add(tolField = new NumberField()); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 95 | 92 |  		tolField.addActionListener(this); | 
|---|
| 96 |  | -		oe.aConstraints.gridwidth = 1;  | 
|---|
| 97 |  | -		tolField.setFloat(blob.tolerance);  | 
|---|
| 98 |  | -		oe.aConstraints.gridy += 1;  | 
|---|
| 99 |  | -		oe.aConstraints.fill = 0;  | 
|---|
| 100 |  | -		oe.aConstraints.gridx = 0;  | 
|---|
 | 93 | +                tolField.setFloat(blob.tolerance);  | 
|---|
 | 94 | +                  | 
|---|
 | 95 | +                oe.ctrlPanel.Return();  | 
|---|
| 101 | 96 |  	} | 
|---|
| 102 | 97 |  	 | 
|---|
| 103 | 98 |  	public void closeUI() | 
|---|
 
| .. | .. | 
|---|
| 6354 | 6354 |       | 
|---|
| 6355 | 6355 |      void InitWeights() | 
|---|
| 6356 | 6356 |      { | 
|---|
 | 6357 | +                new Exception().printStackTrace();  | 
|---|
| 6357 | 6358 |          System.exit(0); | 
|---|
| 6358 | 6359 |          int n = 0; | 
|---|
| 6359 | 6360 |          int b = 0; | 
|---|
 
| .. | .. | 
|---|
| 92 | 92 |  		//oe.aConstraints.gridy += 1; | 
|---|
| 93 | 93 |  		oe.aConstraints.gridx += 1; | 
|---|
| 94 | 94 |                   | 
|---|
| 95 |  | -                Return();  | 
|---|
 | 95 | +                oe.ctrlPanel.Return();  | 
|---|
| 96 | 96 |  		 | 
|---|
| 97 | 97 |                  list = new Vector(); | 
|---|
| 98 | 98 |                  list.add("Smooth"); | 
|---|
 
| .. | .. | 
|---|
| 4208 | 4208 |       | 
|---|
| 4209 | 4209 |      com.sun.opengl.util.texture.Texture CompressTexture2(String name) | 
|---|
| 4210 | 4210 |      { | 
|---|
 | 4211 | +                new Exception().printStackTrace();  | 
|---|
| 4211 | 4212 |          System.exit(0); | 
|---|
| 4212 | 4213 |          com.sun.opengl.util.texture.Texture texture = null; | 
|---|
| 4213 | 4214 |   | 
|---|
| .. | .. | 
|---|
| 13946 | 13947 |           | 
|---|
| 13947 | 13948 |          public void run() | 
|---|
| 13948 | 13949 |          { | 
|---|
 | 13950 | +                new Exception().printStackTrace();  | 
|---|
| 13949 | 13951 |              System.exit(0); | 
|---|
| 13950 | 13952 |              for (;;) | 
|---|
| 13951 | 13953 |              { | 
|---|
| .. | .. | 
|---|
| 15144 | 15146 |   | 
|---|
| 15145 | 15147 |      void SelectParent() | 
|---|
| 15146 | 15148 |      { | 
|---|
 | 15149 | +                new Exception().printStackTrace();  | 
|---|
| 15147 | 15150 |          System.exit(0); | 
|---|
| 15148 | 15151 |          Composite group = (Composite) object; | 
|---|
| 15149 | 15152 |          java.util.Vector selectees = new java.util.Vector(group.selection); | 
|---|
| .. | .. | 
|---|
| 15167 | 15170 |   | 
|---|
| 15168 | 15171 |      void SelectChildren() | 
|---|
| 15169 | 15172 |      { | 
|---|
 | 15173 | +                new Exception().printStackTrace();  | 
|---|
| 15170 | 15174 |          System.exit(0); | 
|---|
| 15171 | 15175 |          /* | 
|---|
| 15172 | 15176 |          Composite group = (Composite) object; | 
|---|
| .. | .. | 
|---|
| 16280 | 16284 |          { | 
|---|
| 16281 | 16285 |              if (!selection) | 
|---|
| 16282 | 16286 |              { | 
|---|
 | 16287 | +                new Exception().printStackTrace();  | 
|---|
| 16283 | 16288 |                  System.exit(0); | 
|---|
| 16284 | 16289 |                  return; | 
|---|
| 16285 | 16290 |              } | 
|---|
 
| .. | .. | 
|---|
| 205 | 205 |   | 
|---|
| 206 | 206 |      boolean HasLoops() | 
|---|
| 207 | 207 |      { | 
|---|
 | 208 | +                new Exception().printStackTrace();  | 
|---|
| 208 | 209 |          System.exit(0); | 
|---|
| 209 | 210 |          if (blockloop) | 
|---|
| 210 | 211 |          { | 
|---|
| .. | .. | 
|---|
| 348 | 349 |           | 
|---|
| 349 | 350 |      void getBounds0(cVector minima, cVector maxima, boolean xform) | 
|---|
| 350 | 351 |      { | 
|---|
 | 352 | +                new Exception().printStackTrace();  | 
|---|
| 351 | 353 |          System.exit(0); | 
|---|
| 352 | 354 |          minima.x = minima.y = minima.z = 1E10; | 
|---|
| 353 | 355 |          maxima.x = maxima.y = maxima.z = -1E10; | 
|---|
 
| .. | .. | 
|---|
| 8 | 8 |  import javax.swing.*; | 
|---|
| 9 | 9 |  import javax.swing.event.*; | 
|---|
| 10 | 10 |   | 
|---|
 | 11 | +import grafeme.ui.*;  | 
|---|
 | 12 | +  | 
|---|
| 11 | 13 |  class ConeEditor extends BiparamEditor implements ChangeListener, ObjectUI | 
|---|
| 12 | 14 |  { | 
|---|
| 13 | 15 |  	 | 
|---|
| .. | .. | 
|---|
| 49 | 51 |  	{ | 
|---|
| 50 | 52 |              super.SetupUI2(oe); | 
|---|
| 51 | 53 |               | 
|---|
| 52 |  | -		oe.aConstraints.fill = 0;  | 
|---|
| 53 | 54 |  		/* | 
|---|
| 54 | 55 |          ctrlPanel.add(baseLabel = new JLabel("Base"), aConstraints); | 
|---|
| 55 | 56 |  		aConstraints.fill = GridBagConstraints.HORIZONTAL; | 
|---|
| .. | .. | 
|---|
| 58 | 59 |          ctrlPanel.add(baseField = new NumberField(), aConstraints); | 
|---|
| 59 | 60 |          baseField.setVector(cone.base); | 
|---|
| 60 | 61 |  		baseField.addActionListener(this); | 
|---|
| 61 |  | -		aConstraints.fill = 0;  | 
|---|
| 62 |  | -		aConstraints.gridy += 1;  | 
|---|
| 63 |  | -		aConstraints.gridx -= 1;  | 
|---|
| 64 | 62 |  		*/ | 
|---|
| 65 |  | -		oe.aConstraints.gridwidth = 1;  | 
|---|
| 66 |  | -        oe.ctrlPanel.add(baseRadLabel = new JLabel("Top"), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 67 |  | -		oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;  | 
|---|
| 68 |  | -		oe.aConstraints.gridx += 1;  | 
|---|
| 69 |  | -		oe.aConstraints.gridwidth = ObjEditor.GRIDWIDTH;  | 
|---|
| 70 |  | -        oe.ctrlPanel.add(baseRadField = new NumberSlider(0.001,10,1), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 63 | +            topPanel = new cGridBag();  | 
|---|
 | 64 | +        topPanel.add(baseRadLabel = new JLabel("Top")); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 65 | +        topPanel.add(baseRadField = new cNumberSlider(this, 0.001,10,1)); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 71 | 66 |          baseRadField.setFloat(cone.baseRadius); | 
|---|
| 72 |  | -		baseRadField.addChangeListener(this);  | 
|---|
| 73 |  | -		/*  | 
|---|
 | 67 | +                  | 
|---|
 | 68 | +        oe.ctrlPanel.add(topPanel);  | 
|---|
 | 69 | +        oe.ctrlPanel.Return();  | 
|---|
 | 70 | +        /*  | 
|---|
| 74 | 71 |  		aConstraints.fill = 0; | 
|---|
| 75 | 72 |  		aConstraints.gridx -= 1; | 
|---|
| 76 | 73 |  		aConstraints.gridy += 1; | 
|---|
| .. | .. | 
|---|
| 83 | 80 |          apexField.setVector(cone.apex); | 
|---|
| 84 | 81 |  		apexField.addActionListener(this); | 
|---|
| 85 | 82 |  		*/ | 
|---|
| 86 |  | -		oe.aConstraints.fill = 0;  | 
|---|
| 87 |  | -		oe.aConstraints.gridx -= 1;  | 
|---|
| 88 |  | -		oe.aConstraints.gridy += 1;  | 
|---|
| 89 |  | -		oe.aConstraints.gridwidth = 1;  | 
|---|
| 90 |  | -        oe.ctrlPanel.add(apexRadLabel = new JLabel("Base"), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 91 |  | -		oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;  | 
|---|
| 92 |  | -		oe.aConstraints.gridx += 1;  | 
|---|
| 93 |  | -		oe.aConstraints.gridwidth = ObjEditor.GRIDWIDTH;  | 
|---|
| 94 |  | -        oe.ctrlPanel.add(apexRadField = new NumberSlider(0.001,10,1), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 95 |  | -		oe.aConstraints.gridwidth = 1;  | 
|---|
| 96 |  | -		oe.aConstraints.gridx -= 1;  | 
|---|
| 97 |  | -		oe.aConstraints.fill = 0;  | 
|---|
 | 83 | +            basePanel = new cGridBag();  | 
|---|
 | 84 | +        basePanel.add(apexRadLabel = new JLabel("Base")); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 85 | +        basePanel.add(apexRadField = new cNumberSlider(this, 0.001,10,1)); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 98 | 86 |          apexRadField.setFloat(cone.apexRadius); | 
|---|
| 99 |  | -		apexRadField.addChangeListener(this);  | 
|---|
| 100 |  | -		oe.aConstraints.gridy += 1;  | 
|---|
 | 87 | +  | 
|---|
 | 88 | +        oe.ctrlPanel.add(basePanel);  | 
|---|
 | 89 | +        oe.ctrlPanel.Return();  | 
|---|
| 101 | 90 |      } | 
|---|
| 102 | 91 |  	 | 
|---|
| 103 | 92 |  	public void closeUI() | 
|---|
| .. | .. | 
|---|
| 106 | 95 |  		 | 
|---|
| 107 | 96 |  		apexRadField.removeChangeListener(this); | 
|---|
| 108 | 97 |  		baseRadField.removeChangeListener(this); | 
|---|
| 109 |  | -		oe.ctrlPanel.remove(apexRadField);  | 
|---|
| 110 |  | -		oe.ctrlPanel.remove(baseRadField);  | 
|---|
| 111 |  | -		oe.ctrlPanel.remove(apexRadLabel);  | 
|---|
| 112 |  | -		oe.ctrlPanel.remove(baseRadLabel);  | 
|---|
 | 98 | +//		oe.ctrlPanel.remove(apexRadField);  | 
|---|
 | 99 | +//		oe.ctrlPanel.remove(baseRadField);  | 
|---|
 | 100 | +//		oe.ctrlPanel.remove(apexRadLabel);  | 
|---|
 | 101 | +//		oe.ctrlPanel.remove(baseRadLabel);  | 
|---|
 | 102 | +		oe.ctrlPanel.remove(topPanel);  | 
|---|
 | 103 | +		oe.ctrlPanel.remove(basePanel);  | 
|---|
| 113 | 104 |  		//oe.ctrlPanel.repaint(); | 
|---|
| 114 | 105 |  		 | 
|---|
| 115 | 106 |  		super.closeUI(); | 
|---|
| .. | .. | 
|---|
| 192 | 183 |      JLabel apexRadLabel; | 
|---|
| 193 | 184 |      //NumberField baseField; | 
|---|
| 194 | 185 |      //NumberField apexField; | 
|---|
| 195 |  | -    NumberSlider baseRadField;  | 
|---|
| 196 |  | -    NumberSlider apexRadField;  | 
|---|
 | 186 | +    cNumberSlider baseRadField;  | 
|---|
 | 187 | +    cNumberSlider apexRadField;  | 
|---|
| 197 | 188 |   | 
|---|
 | 189 | +    cGridBag topPanel;  | 
|---|
 | 190 | +    cGridBag basePanel;  | 
|---|
| 198 | 191 |  	//BiparamEditor objEditor; | 
|---|
| 199 | 192 |  } | 
|---|
| 200 | 193 |   | 
|---|
 
| .. | .. | 
|---|
| 873 | 873 |   | 
|---|
| 874 | 874 |          if (shape.getShapeType() == BroadphaseNativeType.COMPOUND_SHAPE_PROXYTYPE) | 
|---|
| 875 | 875 |          { | 
|---|
 | 876 | +                new Exception().printStackTrace();  | 
|---|
| 876 | 877 |              System.exit(0); | 
|---|
| 877 | 878 |              CompoundShape compoundShape = (CompoundShape) shape; | 
|---|
| 878 | 879 |              Transform childTrans = transformsPool.get(); | 
|---|
| .. | .. | 
|---|
| 903 | 904 |                  { | 
|---|
| 904 | 905 |                      case BOX_SHAPE_PROXYTYPE: | 
|---|
| 905 | 906 |                      { | 
|---|
 | 907 | +                new Exception().printStackTrace();  | 
|---|
| 906 | 908 |              System.exit(0); | 
|---|
| 907 | 909 |                          BoxShape boxShape = (BoxShape) shape; | 
|---|
| 908 | 910 |                          Vector3f halfExtent = boxShape.getHalfExtentsWithMargin(vectorsPool.get()); | 
|---|
| .. | .. | 
|---|
| 914 | 916 |                      } | 
|---|
| 915 | 917 |                      case SPHERE_SHAPE_PROXYTYPE: | 
|---|
| 916 | 918 |                      { | 
|---|
 | 919 | +                new Exception().printStackTrace();  | 
|---|
| 917 | 920 |              System.exit(0); | 
|---|
| 918 | 921 |                          SphereShape sphereShape = (SphereShape) shape; | 
|---|
| 919 | 922 |                          float radius = sphereShape.getMargin(); // radius doesn't include the margin, so draw with margin | 
|---|
| .. | .. | 
|---|
| 960 | 963 |   | 
|---|
| 961 | 964 |                      case STATIC_PLANE_PROXYTYPE: | 
|---|
| 962 | 965 |                      { | 
|---|
 | 966 | +                new Exception().printStackTrace();  | 
|---|
| 963 | 967 |              System.exit(0); | 
|---|
| 964 | 968 |                          StaticPlaneShape staticPlaneShape = (StaticPlaneShape) shape; | 
|---|
| 965 | 969 |                          float planeConst = staticPlaneShape.getPlaneConstant(); | 
|---|
| .. | .. | 
|---|
| 1006 | 1010 |   | 
|---|
| 1007 | 1011 |                      case CYLINDER_SHAPE_PROXYTYPE: | 
|---|
| 1008 | 1012 |                      { | 
|---|
 | 1013 | +                new Exception().printStackTrace();  | 
|---|
| 1009 | 1014 |              System.exit(0); | 
|---|
| 1010 | 1015 |                          CylinderShape cylinder = (CylinderShape) shape; | 
|---|
| 1011 | 1016 |                          int upAxis = cylinder.getUpAxis(); | 
|---|
| .. | .. | 
|---|
| 1358 | 1363 |                  // for polyhedral shapes | 
|---|
| 1359 | 1364 |                  if (shape.isPolyhedral()) | 
|---|
| 1360 | 1365 |                  { | 
|---|
 | 1366 | +                new Exception().printStackTrace();  | 
|---|
| 1361 | 1367 |              System.exit(0); | 
|---|
| 1362 | 1368 |                      PolyhedralConvexShape polyshape = (PolyhedralConvexShape) shape; | 
|---|
| 1363 | 1369 |   | 
|---|
| .. | .. | 
|---|
| 1427 | 1433 |              if (shape.isConcave())//>getShapeType() == TRIANGLE_MESH_SHAPE_PROXYTYPE||shape->getShapeType() == GIMPACT_SHAPE_PROXYTYPE) | 
|---|
| 1428 | 1434 |              //		if (shape->getShapeType() == TRIANGLE_MESH_SHAPE_PROXYTYPE) | 
|---|
| 1429 | 1435 |              { | 
|---|
 | 1436 | +                new Exception().printStackTrace();  | 
|---|
| 1430 | 1437 |              System.exit(0); | 
|---|
| 1431 | 1438 |                  ConcaveShape concaveMesh = (ConcaveShape) shape; | 
|---|
| 1432 | 1439 |                  //btVector3 aabbMax(btScalar(1e30),btScalar(1e30),btScalar(1e30)); | 
|---|
 
| .. | .. | 
|---|
| 365 | 365 |   | 
|---|
| 366 | 366 |      void subdivide(double x[], double y[], double z[], int dimension) | 
|---|
| 367 | 367 |      { | 
|---|
 | 368 | +                    new Exception().printStackTrace();  | 
|---|
| 368 | 369 |          System.exit(0); | 
|---|
| 369 | 370 |          boolean out[] = new boolean[2]; | 
|---|
| 370 | 371 |          implicit.boxInside(x, y, z, out); | 
|---|
 
| .. | .. | 
|---|
| 38 | 38 |  	{ | 
|---|
| 39 | 39 |              super.SetupUI2(oe); | 
|---|
| 40 | 40 |               | 
|---|
| 41 |  | -            radiusField = AddSlider(oe.ctrlPanel, "Radius:", 0, 20.0, klein.radius, 1);  | 
|---|
| 42 |  | -            Return();  | 
|---|
 | 41 | +            radiusPanel = AddSlider(oe.ctrlPanel, "Radius:", 0, 20.0, klein.radius, 1);  | 
|---|
 | 42 | +            this.radiusField = (cNumberSlider)radiusPanel.getComponent(1);  | 
|---|
 | 43 | +            oe.ctrlPanel.Return();  | 
|---|
| 43 | 44 |          } | 
|---|
| 44 | 45 |           | 
|---|
| 45 | 46 |  	void Clear() | 
|---|
| .. | .. | 
|---|
| 97 | 98 |   | 
|---|
| 98 | 99 |      Klein klein; | 
|---|
| 99 | 100 |      cNumberSlider radiusField; | 
|---|
 | 101 | +      | 
|---|
 | 102 | +    cGridBag radiusPanel;  | 
|---|
| 100 | 103 |   | 
|---|
| 101 | 104 |  	public ObjEditor GetEditor() | 
|---|
| 102 | 105 |  	{ | 
|---|
| .. | .. | 
|---|
| 111 | 114 |   | 
|---|
| 112 | 115 |  	public void closeUI() | 
|---|
| 113 | 116 |  	{ | 
|---|
| 114 |  | -                Remove(radiusField);  | 
|---|
| 115 |  | -		  | 
|---|
 | 117 | +                //Remove(radiusField);  | 
|---|
 | 118 | +                  | 
|---|
 | 119 | +		objEditor.ctrlPanel.remove(radiusPanel);  | 
|---|
| 116 | 120 |  		super.closeUI(); | 
|---|
| 117 | 121 |  	} | 
|---|
| 118 | 122 |           | 
|---|
 
| .. | .. | 
|---|
| 160 | 160 |   | 
|---|
| 161 | 161 |      static cVector xformDir(cVector v, double mat[][]) | 
|---|
| 162 | 162 |      { | 
|---|
 | 163 | +                    new Exception().printStackTrace();  | 
|---|
| 163 | 164 |          System.exit(0); | 
|---|
| 164 | 165 |          cVector temp = new cVector(); | 
|---|
| 165 | 166 |          xformDir(v, mat, temp); | 
|---|
 
| .. | .. | 
|---|
| 37 | 37 |  	{ | 
|---|
| 38 | 38 |                  super.SetupUI2(oe); | 
|---|
| 39 | 39 |                   | 
|---|
| 40 |  | -		oe.ctrlPanel.add(typeLabel = new JLabel("Spline Type"), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 41 |  | -		oe.aConstraints.gridx += 1;  | 
|---|
| 42 |  | -		//aConstraints.fill = GridBagConstraints.HORIZONTAL;  | 
|---|
| 43 |  | -		//aConstraints.gridwidth = ObjEditor.GRIDWIDTH;  | 
|---|
| 44 |  | -		oe.ctrlPanel.add(typeMenu = new JComboBox(), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 40 | +		oe.ctrlPanel.add(typeLabel = new JLabel("Spline Type:")); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 41 | +  | 
|---|
 | 42 | +                oe.ctrlPanel.Return();  | 
|---|
 | 43 | +                  | 
|---|
 | 44 | +                oe.ctrlPanel.add(typeMenu = new JComboBox()); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 45 | 45 |  		typeMenu.addActionListener(this); | 
|---|
| 46 |  | -		oe.aConstraints.gridx = 0;  | 
|---|
| 47 |  | -		oe.aConstraints.gridy += 1;  | 
|---|
| 48 |  | -		typeMenu.addItem("Linear");  | 
|---|
 | 46 | +  | 
|---|
 | 47 | +                oe.ctrlPanel.Return();  | 
|---|
 | 48 | +                  | 
|---|
 | 49 | +                typeMenu.addItem("Linear");  | 
|---|
| 49 | 50 |  		typeMenu.addItem("Quadratic"); | 
|---|
| 50 | 51 |  		typeMenu.addItem("Cubic"); | 
|---|
| 51 | 52 |  		//typeMenu.select(spline.type - 1); | 
|---|
 
| .. | .. | 
|---|
| 3496 | 3496 |      // filters out bad input data | 
|---|
| 3497 | 3497 |      void FilterAnimData() | 
|---|
| 3498 | 3498 |      { | 
|---|
 | 3499 | +                new Exception().printStackTrace();  | 
|---|
| 3499 | 3500 |          System.exit(0); | 
|---|
| 3500 | 3501 |           | 
|---|
| 3501 | 3502 |          float[] data; // = bvh.animation.getBoneData(0); | 
|---|
 
| .. | .. | 
|---|
| 70 | 70 |               */ | 
|---|
| 71 | 71 |              super.SetupUI2(oe); | 
|---|
| 72 | 72 |                   | 
|---|
| 73 |  | -            frameField = AddSlider(oe.ctrlPanel, "Frame:", 0, mocap.bvh.animation.getNumFrames()-1, mocap.frame);  | 
|---|
| 74 |  | -            Return();  | 
|---|
| 75 |  | -            firstField = AddSlider(oe.ctrlPanel, "First:", 0, mocap.bvh.animation.getNumFrames()-1, mocap.firstframe);  | 
|---|
| 76 |  | -            Return();  | 
|---|
| 77 |  | -            lastField = AddSlider(oe.ctrlPanel, "Last:", 0, mocap.bvh.animation.getNumFrames()-1, mocap.lastframe);  | 
|---|
| 78 |  | -            Return();  | 
|---|
 | 73 | +            frameField = (cNumberSlider)AddSlider(oe.ctrlPanel, "Frame:", 0, mocap.bvh.animation.getNumFrames()-1, mocap.frame).getComponent(1);  | 
|---|
 | 74 | +        oe.ctrlPanel.Return();  | 
|---|
 | 75 | +            firstField = (cNumberSlider)AddSlider(oe.ctrlPanel, "First:", 0, mocap.bvh.animation.getNumFrames()-1, mocap.firstframe).getComponent(1);  | 
|---|
 | 76 | +        oe.ctrlPanel.Return();  | 
|---|
 | 77 | +            lastField = (cNumberSlider)AddSlider(oe.ctrlPanel, "Last:", 0, mocap.bvh.animation.getNumFrames()-1, mocap.lastframe).getComponent(1);  | 
|---|
 | 78 | +        oe.ctrlPanel.Return();  | 
|---|
| 79 | 79 |               | 
|---|
| 80 | 80 |  //		oe.aConstraints.gridx = 0; | 
|---|
| 81 | 81 |  //		oe.aConstraints.gridwidth = 1; | 
|---|
 
| .. | .. | 
|---|
| 70 | 70 |               | 
|---|
| 71 | 71 |              for (int i=0; i<morphnode.morphobject.Size(); i++) | 
|---|
| 72 | 72 |              { | 
|---|
| 73 |  | -                morphField[i] = AddSlider(oe.ctrlPanel, morphnode.morphobject.get(i).name, 0, 2.0, morphnode.morphweights[i], 1);  | 
|---|
| 74 |  | -                Return();  | 
|---|
 | 73 | +                morphField[i] = (cNumberSlider)AddSlider(oe.ctrlPanel, morphnode.morphobject.get(i).name, 0, 2.0, morphnode.morphweights[i], 1).getComponent(1);  | 
|---|
 | 74 | +        oe.ctrlPanel.Return();  | 
|---|
| 75 | 75 |              } | 
|---|
| 76 | 76 |      } | 
|---|
| 77 | 77 |  	 | 
|---|
 
| .. | .. | 
|---|
| 138 | 138 |      public void closeUI() | 
|---|
| 139 | 139 |      { | 
|---|
| 140 | 140 |          //new Exception().printStackTrace(); | 
|---|
| 141 |  | -        System.out.println("this = " + this);  | 
|---|
| 142 |  | -        System.out.println("objEditor = " + objEditor);  | 
|---|
 | 141 | +//        System.out.println("this = " + this);  | 
|---|
 | 142 | +//        System.out.println("objEditor = " + objEditor);  | 
|---|
| 143 | 143 |          //nameField.removeActionListener(this); | 
|---|
| 144 |  | -        objEditor.ctrlPanel.remove(nameField);  | 
|---|
 | 144 | +//        objEditor.ctrlPanel.remove(nameField);  | 
|---|
| 145 | 145 |           | 
|---|
| 146 | 146 |          if (!GroupEditor.allparams) | 
|---|
| 147 | 147 |              return; | 
|---|
| 148 | 148 |           | 
|---|
| 149 |  | -        objEditor.ctrlPanel.remove(liveCB);  | 
|---|
| 150 |  | -        objEditor.ctrlPanel.remove(hideCB);  | 
|---|
| 151 |  | -        objEditor.ctrlPanel.remove(markCB);  | 
|---|
| 152 |  | -  | 
|---|
| 153 |  | -        objEditor.ctrlPanel.remove(randomCB);  | 
|---|
| 154 |  | -        objEditor.ctrlPanel.remove(speedupCB);  | 
|---|
| 155 |  | -        objEditor.ctrlPanel.remove(rewindCB);  | 
|---|
| 156 |  | -  | 
|---|
| 157 |  | -        objEditor.ctrlPanel.remove(resetButton);  | 
|---|
| 158 |  | -        objEditor.ctrlPanel.remove(stepButton);  | 
|---|
| 159 |  | -//                objEditor.ctrlPanel.remove(stepAllButton);  | 
|---|
| 160 |  | -//                objEditor.ctrlPanel.remove(resetAllButton);  | 
|---|
| 161 |  | -        objEditor.ctrlPanel.remove(link2masterCB);  | 
|---|
| 162 |  | -        //objEditor.ctrlPanel.remove(flipVCB);  | 
|---|
| 163 |  | -        //objEditor.ctrlPanel.remove(texresMenu);  | 
|---|
| 164 |  | -        objEditor.ctrlPanel.remove(slowerButton);  | 
|---|
| 165 |  | -        objEditor.ctrlPanel.remove(fasterButton);  | 
|---|
| 166 |  | -        objEditor.ctrlPanel.remove(remarkButton);  | 
|---|
 | 149 | +//        objEditor.ctrlPanel.remove(liveCB);  | 
|---|
 | 150 | +//        objEditor.ctrlPanel.remove(hideCB);  | 
|---|
 | 151 | +//        objEditor.ctrlPanel.remove(markCB);  | 
|---|
 | 152 | +//  | 
|---|
 | 153 | +//        objEditor.ctrlPanel.remove(randomCB);  | 
|---|
 | 154 | +//        objEditor.ctrlPanel.remove(speedupCB);  | 
|---|
 | 155 | +//        objEditor.ctrlPanel.remove(rewindCB);  | 
|---|
 | 156 | +//  | 
|---|
 | 157 | +//        objEditor.ctrlPanel.remove(resetButton);  | 
|---|
 | 158 | +//        objEditor.ctrlPanel.remove(stepButton);  | 
|---|
 | 159 | +////                objEditor.ctrlPanel.remove(stepAllButton);  | 
|---|
 | 160 | +////                objEditor.ctrlPanel.remove(resetAllButton);  | 
|---|
 | 161 | +//        objEditor.ctrlPanel.remove(link2masterCB);  | 
|---|
 | 162 | +//        //objEditor.ctrlPanel.remove(flipVCB);  | 
|---|
 | 163 | +//        //objEditor.ctrlPanel.remove(texresMenu);  | 
|---|
 | 164 | +//        objEditor.ctrlPanel.remove(slowerButton);  | 
|---|
 | 165 | +//        objEditor.ctrlPanel.remove(fasterButton);  | 
|---|
 | 166 | +//        objEditor.ctrlPanel.remove(remarkButton);  | 
|---|
| 167 | 167 |           | 
|---|
| 168 |  | -        Remove(normalpushField);  | 
|---|
 | 168 | +        objEditor.ctrlPanel.remove(namePanel);  | 
|---|
 | 169 | +        objEditor.ctrlPanel.remove(setupPanel);  | 
|---|
 | 170 | +        objEditor.ctrlPanel.remove(commandsPanel);  | 
|---|
 | 171 | +        objEditor.ctrlPanel.remove(pushPanel);  | 
|---|
 | 172 | +        //objEditor.ctrlPanel.remove(fillPanel);  | 
|---|
 | 173 | +          | 
|---|
 | 174 | +        //Remove(normalpushField);  | 
|---|
| 169 | 175 |      } | 
|---|
| 170 | 176 |   | 
|---|
| 171 | 177 |      public ObjEditor GetEditor() | 
|---|
| .. | .. | 
|---|
| 355 | 361 |          toolbarPanel.setName("Toolbar"); | 
|---|
| 356 | 362 |          treePanel = new JPanel(); | 
|---|
| 357 | 363 |          treePanel.setName("Tree"); | 
|---|
| 358 |  | -        ctrlPanel = new cGridBag(); // new GridBagLayout());  | 
|---|
 | 364 | +        ctrlPanel = new cGridBag().setVertical(false); // new GridBagLayout());  | 
|---|
| 359 | 365 |          ctrlPanel.setName("Edit"); | 
|---|
| 360 | 366 |          materialPanel = new cGridBag().setVertical(true); | 
|---|
| 361 | 367 |          materialPanel.setName("Material"); | 
|---|
| .. | .. | 
|---|
| 386 | 392 |          //mainPanel.setLayout(new GridBagLayout()); | 
|---|
| 387 | 393 |          toolbarPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); | 
|---|
| 388 | 394 |          treePanel.setLayout(new GridBagLayout()); | 
|---|
| 389 |  | -        ctrlPanel.setLayout(new GridBagLayout());  | 
|---|
 | 395 | +        //ctrlPanel.setLayout(new GridBagLayout());  | 
|---|
| 390 | 396 |          //materialPanel.setLayout(new GridBagLayout()); | 
|---|
| 391 | 397 |   | 
|---|
| 392 | 398 |          aConstraints = new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, | 
|---|
| .. | .. | 
|---|
| 767 | 773 |      JButton slowerButton; | 
|---|
| 768 | 774 |      JButton fasterButton; | 
|---|
| 769 | 775 |      JButton remarkButton; | 
|---|
 | 776 | +      | 
|---|
 | 777 | +    cGridBag namePanel;  | 
|---|
 | 778 | +    cGridBag setupPanel;  | 
|---|
 | 779 | +    cGridBag commandsPanel;  | 
|---|
 | 780 | +    cGridBag pushPanel;  | 
|---|
 | 781 | +    cGridBag fillPanel;  | 
|---|
| 770 | 782 |   | 
|---|
| 771 |  | -    JCheckBox AddCheckBox(ObjEditor oe, String label, boolean on)  | 
|---|
 | 783 | +    JCheckBox AddCheckBox(cGridBag panel, String label, boolean on)  | 
|---|
| 772 | 784 |      { | 
|---|
| 773 | 785 |          JCheckBox cb; | 
|---|
| 774 | 786 |   | 
|---|
| 775 |  | -        oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;  | 
|---|
| 776 |  | -        oe.aConstraints.gridwidth = 1; // 3;  | 
|---|
| 777 |  | -//        oe.aConstraints.weightx = 1;  | 
|---|
| 778 |  | -//        oe.aConstraints.anchor = GridBagConstraints.WEST;  | 
|---|
| 779 |  | -        oe.ctrlPanel.add(cb = new JCheckBox(label, on), oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1);  | 
|---|
 | 787 | +        panel.add(cb = new JCheckBox(label, on)); //, oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1);  | 
|---|
| 780 | 788 |          cb.addItemListener(this); | 
|---|
| 781 |  | -//        oe.aConstraints.anchor = GridBagConstraints.EAST;  | 
|---|
| 782 |  | -        oe.aConstraints.gridwidth = 1;  | 
|---|
| 783 |  | -        oe.aConstraints.gridx += 1;  | 
|---|
| 784 | 789 |   | 
|---|
| 785 | 790 |          return cb; | 
|---|
| 786 | 791 |      } | 
|---|
| 787 | 792 |   | 
|---|
| 788 |  | -    cButton AddButton(ObjEditor oe, String label)  | 
|---|
 | 793 | +    cButton AddButton(cGridBag panel, String label)  | 
|---|
| 789 | 794 |      { | 
|---|
| 790 | 795 |          cButton cb; | 
|---|
| 791 | 796 |   | 
|---|
| 792 |  | -        oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;  | 
|---|
| 793 |  | -        oe.aConstraints.gridwidth = 1;  | 
|---|
| 794 |  | -//        oe.aConstraints.weightx = 1;  | 
|---|
| 795 |  | -//        oe.aConstraints.anchor = GridBagConstraints.WEST;  | 
|---|
| 796 |  | -        oe.ctrlPanel.add(cb = new cButton(label), oe.aConstraints, oe.ctrlPanel.getComponentCount() - 1);  | 
|---|
 | 797 | +        panel.add(cb = new cButton(label)); //, oe.aConstraints, oe.ctrlPanel.getComponentCount() - 1);  | 
|---|
| 797 | 798 |          cb.addActionListener(this); | 
|---|
| 798 |  | -//        oe.aConstraints.anchor = GridBagConstraints.EAST;  | 
|---|
| 799 |  | -        oe.aConstraints.gridwidth = 1;  | 
|---|
| 800 |  | -        oe.aConstraints.gridx += 1;  | 
|---|
| 801 | 799 |   | 
|---|
| 802 | 800 |          return cb; | 
|---|
| 803 | 801 |      } | 
|---|
| 804 | 802 |   | 
|---|
| 805 |  | -    JComboBox AddCombo(ObjEditor oe, java.util.Vector list, int item)  | 
|---|
 | 803 | +    JComboBox AddCombo(cGridBag panel, java.util.Vector list, int item)  | 
|---|
| 806 | 804 |      { | 
|---|
| 807 | 805 |          JComboBox combo; | 
|---|
| 808 | 806 |   | 
|---|
| 809 |  | -        oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;  | 
|---|
| 810 |  | -        oe.ctrlPanel.add(combo = new JComboBox(new cListModel(list, item)), oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1);  | 
|---|
| 811 |  | -        oe.aConstraints.gridx += 1;  | 
|---|
 | 807 | +        panel.add(combo = new JComboBox(new cListModel(list, item))); //, oe.aConstraints); //, oe.ctrlPanel.getComponentCount()-1);  | 
|---|
| 812 | 808 |          combo.addActionListener(this); | 
|---|
| 813 | 809 |   | 
|---|
| 814 | 810 |          return combo; | 
|---|
| 815 | 811 |      } | 
|---|
| 816 | 812 |   | 
|---|
| 817 |  | -    cNumberSlider AddSlider(cGridBag ctrlPanel, String label, double min, double max, double current, double pow)  | 
|---|
 | 813 | +    cGridBag AddSlider(cGridBag panel, String label, double min, double max, double current, double pow)  | 
|---|
| 818 | 814 |      { | 
|---|
| 819 | 815 |          cGridBag control = new cGridBag(); | 
|---|
| 820 | 816 |               | 
|---|
| .. | .. | 
|---|
| 826 | 822 |          control.add(combo = new cNumberSlider(this, min, max, pow)); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1); | 
|---|
| 827 | 823 |          combo.setFloat(current); | 
|---|
| 828 | 824 |           | 
|---|
| 829 |  | -        ctrlPanel.add(control);  | 
|---|
 | 825 | +        panel.add(control);  | 
|---|
| 830 | 826 |           | 
|---|
| 831 |  | -        return combo;  | 
|---|
 | 827 | +        return control;  | 
|---|
| 832 | 828 |      } | 
|---|
| 833 | 829 |   | 
|---|
| 834 |  | -    cNumberSlider AddSlider(cGridBag ctrlPanel, String label, int min, int max, int current)  | 
|---|
 | 830 | +    cGridBag AddSlider(cGridBag panel, String label, int min, int max, int current)  | 
|---|
| 835 | 831 |      { | 
|---|
| 836 | 832 |          cGridBag control = new cGridBag(); | 
|---|
| 837 | 833 |           | 
|---|
| .. | .. | 
|---|
| 839 | 835 |   | 
|---|
| 840 | 836 |          JLabel jlabel = new JLabel(label); | 
|---|
| 841 | 837 |          jlabel.setHorizontalAlignment(SwingConstants.TRAILING); | 
|---|
| 842 |  | -        ctrlPanel.add(jlabel); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);  | 
|---|
| 843 |  | -        ctrlPanel.add(combo = new cNumberSlider(this, min, max)); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);  | 
|---|
 | 838 | +        control.add(jlabel); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);  | 
|---|
 | 839 | +        control.add(combo = new cNumberSlider(this, min, max)); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1);  | 
|---|
| 844 | 840 |          combo.setInteger(current); | 
|---|
| 845 | 841 |   | 
|---|
| 846 |  | -        ctrlPanel.add(control);  | 
|---|
 | 842 | +        panel.add(control);  | 
|---|
| 847 | 843 |           | 
|---|
| 848 |  | -        return combo;  | 
|---|
 | 844 | +        return control;  | 
|---|
| 849 | 845 |      } | 
|---|
| 850 | 846 |   | 
|---|
| 851 | 847 |      JTextArea AddText(cGridBag ctrlPanel, String name) | 
|---|
| 852 | 848 |      { | 
|---|
| 853 | 849 |          JTextArea text; | 
|---|
| 854 | 850 |   | 
|---|
| 855 |  | -        aConstraints.fill = GridBagConstraints.HORIZONTAL;  | 
|---|
| 856 |  | -        aConstraints.gridwidth = ObjEditor.GRIDWIDTH;  | 
|---|
| 857 | 851 |          ctrlPanel.add(text = new JTextArea(name)); //, aConstraints); //, oe.ctrlPanel.getComponentCount()-1); | 
|---|
| 858 | 852 |          text.addCaretListener(this); | 
|---|
| 859 |  | -        aConstraints.gridx += 1;  | 
|---|
| 860 |  | -        aConstraints.gridwidth = 1;  | 
|---|
| 861 | 853 |   | 
|---|
| 862 | 854 |          return text; | 
|---|
| 863 | 855 |      } | 
|---|
| .. | .. | 
|---|
| 896 | 888 |   | 
|---|
| 897 | 889 |      /* | 
|---|
| 898 | 890 |       */ | 
|---|
| 899 |  | -    void Return() // ObjEditor oe)  | 
|---|
 | 891 | +    void Return0() // ObjEditor oe)  | 
|---|
| 900 | 892 |      { | 
|---|
| 901 | 893 |          aConstraints.gridy += 1; | 
|---|
| 902 | 894 |          aConstraints.gridx = 0; | 
|---|
| .. | .. | 
|---|
| 955 | 947 |  //            oe.aConstraints.weighty = 0; | 
|---|
| 956 | 948 |  //            oe.aConstraints.gridx = 0; | 
|---|
| 957 | 949 |  //            oe.aConstraints.gridy = 0; | 
|---|
| 958 |  | -        SetupName(oe);  | 
|---|
 | 950 | +        //SetupName(oe);  | 
|---|
 | 951 | +          | 
|---|
 | 952 | +            namePanel = new cGridBag();  | 
|---|
 | 953 | +              | 
|---|
 | 954 | +        nameField = AddText(namePanel, copy.GetName());  | 
|---|
 | 955 | +        namePanel.add(nameField);  | 
|---|
 | 956 | +        oe.ctrlPanel.add(namePanel);  | 
|---|
 | 957 | +          | 
|---|
 | 958 | +        oe.ctrlPanel.Return();  | 
|---|
| 959 | 959 |           | 
|---|
| 960 | 960 |          if (!GroupEditor.allparams) | 
|---|
| 961 | 961 |              return; | 
|---|
| 962 | 962 |   | 
|---|
| 963 |  | -        liveCB = AddCheckBox(oe, "Live", copy.live);  | 
|---|
| 964 |  | -        link2masterCB = AddCheckBox(oe, "Supp", copy.link2master);  | 
|---|
| 965 |  | -        hideCB = AddCheckBox(oe, "Hide", copy.hide);  | 
|---|
 | 963 | +            setupPanel = new cGridBag().setVertical(false);  | 
|---|
 | 964 | +              | 
|---|
 | 965 | +        liveCB = AddCheckBox(setupPanel, "Live", copy.live);  | 
|---|
 | 966 | +        link2masterCB = AddCheckBox(setupPanel, "Supp", copy.link2master);  | 
|---|
 | 967 | +        hideCB = AddCheckBox(setupPanel, "Hide", copy.hide);  | 
|---|
| 966 | 968 |  //            Return(); | 
|---|
| 967 |  | -        markCB = AddCheckBox(oe, "Mark", copy.marked);  | 
|---|
| 968 |  | -        rewindCB = AddCheckBox(oe, "Rew", copy.rewind);  | 
|---|
| 969 |  | -        randomCB = AddCheckBox(oe, "Rand", copy.random);  | 
|---|
| 970 |  | -        Return();  | 
|---|
| 971 |  | -        resetButton = AddButton(oe, "Reset");  | 
|---|
| 972 |  | -        stepButton = AddButton(oe, "Step");  | 
|---|
 | 969 | +        markCB = AddCheckBox(setupPanel, "Mark", copy.marked);  | 
|---|
 | 970 | +        rewindCB = AddCheckBox(setupPanel, "Rew", copy.rewind);  | 
|---|
 | 971 | +        randomCB = AddCheckBox(setupPanel, "Rand", copy.random);  | 
|---|
 | 972 | +  | 
|---|
 | 973 | +        oe.ctrlPanel.add(setupPanel);  | 
|---|
 | 974 | +        oe.ctrlPanel.Return();  | 
|---|
 | 975 | +          | 
|---|
 | 976 | +            commandsPanel = new cGridBag().setVertical(false);  | 
|---|
 | 977 | +          | 
|---|
 | 978 | +        resetButton = AddButton(commandsPanel, "Reset");  | 
|---|
 | 979 | +        stepButton = AddButton(commandsPanel, "Step");  | 
|---|
| 973 | 980 |  //            resetAllButton = AddButton(oe, "Reset All"); | 
|---|
| 974 | 981 |  //            stepAllButton = AddButton(oe, "Step All"); | 
|---|
| 975 |  | -        speedupCB = AddCheckBox(oe, "Speed", copy.speedup);  | 
|---|
 | 982 | +        speedupCB = AddCheckBox(commandsPanel, "Speed", copy.speedup);  | 
|---|
| 976 | 983 |  //            Return(); | 
|---|
| 977 |  | -        slowerButton = AddButton(oe, "Slow");  | 
|---|
| 978 |  | -        fasterButton = AddButton(oe, "Fast");  | 
|---|
| 979 |  | -        remarkButton = AddButton(oe, "Rem");  | 
|---|
 | 984 | +        slowerButton = AddButton(commandsPanel, "Slow");  | 
|---|
 | 985 | +        fasterButton = AddButton(commandsPanel, "Fast");  | 
|---|
 | 986 | +        remarkButton = AddButton(commandsPanel, "Remark");  | 
|---|
| 980 | 987 |   | 
|---|
| 981 |  | -        //Return();  | 
|---|
 | 988 | +        oe.ctrlPanel.add(commandsPanel);  | 
|---|
 | 989 | +        oe.ctrlPanel.Return();  | 
|---|
| 982 | 990 |   | 
|---|
| 983 |  | -    //normalpushField = AddSlider(oe.ctrlPanel, "Push", -10, 10, 0, -1);  | 
|---|
 | 991 | +    pushPanel = AddSlider(oe.ctrlPanel, "Push", -10, 10, 0, 1);  | 
|---|
 | 992 | +    normalpushField = (cNumberSlider)pushPanel.getComponent(1);  | 
|---|
| 984 | 993 |      //Return(); | 
|---|
 | 994 | +  | 
|---|
 | 995 | +        oe.ctrlPanel.Return();  | 
|---|
| 985 | 996 |               | 
|---|
| 986 | 997 |  //	oe.ctrlPanel.add(stepButton = new cButton("Step"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 987 | 998 |  //        ObjEditor.aConstraints.gridx += 1; | 
|---|
| .. | .. | 
|---|
| 1076 | 1087 |          oe.aConstraints.gridwidth = 1; | 
|---|
| 1077 | 1088 |          /**/ | 
|---|
| 1078 | 1089 |          nameField = AddText(oe.ctrlPanel, copy.GetName()); | 
|---|
| 1079 |  | -        Return();  | 
|---|
 | 1090 | +        oe.ctrlPanel.Return();  | 
|---|
| 1080 | 1091 |   | 
|---|
| 1081 | 1092 |          //ctrlPanel.add(textureButton = new Button("Texture...")); | 
|---|
| 1082 | 1093 |          //textureButton.setEnabled(false); | 
|---|
| .. | .. | 
|---|
| 1253 | 1264 |          //JScrollPane tmp = new JScrollPane(ctrlPanel, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); | 
|---|
| 1254 | 1265 |          //tmp.setName("Edit"); | 
|---|
| 1255 | 1266 |          objectPanel.add(materialPanel); | 
|---|
| 1256 |  | -        JPanel north = new JPanel(new BorderLayout());  | 
|---|
| 1257 |  | -        north.setName("Edit");  | 
|---|
| 1258 |  | -        north.add(ctrlPanel, BorderLayout.NORTH);  | 
|---|
| 1259 |  | -        objectPanel.add(north);  | 
|---|
 | 1267 | +//        JPanel north = new JPanel(new BorderLayout());  | 
|---|
 | 1268 | +//        north.setName("Edit");  | 
|---|
 | 1269 | +//        north.add(ctrlPanel, BorderLayout.NORTH);  | 
|---|
 | 1270 | +//        objectPanel.add(north);  | 
|---|
 | 1271 | +        objectPanel.add(ctrlPanel);  | 
|---|
| 1260 | 1272 |          objectPanel.add(infoPanel); | 
|---|
| 1261 | 1273 |   | 
|---|
| 1262 | 1274 |          /* | 
|---|
| .. | .. | 
|---|
| 1415 | 1427 |          ctrlPanel.removeAll(); | 
|---|
| 1416 | 1428 |      } | 
|---|
| 1417 | 1429 |   | 
|---|
| 1418 |  | -    void SetupMaterial(cGridBag ctrlPanel)  | 
|---|
 | 1430 | +    void SetupMaterial(cGridBag panel)  | 
|---|
| 1419 | 1431 |      { | 
|---|
| 1420 | 1432 |           /* | 
|---|
| 1421 | 1433 |          ctrlPanel.add(materialLabel = new JLabel("MATERIAL : "), aConstraints); | 
|---|
| .. | .. | 
|---|
| 1435 | 1447 |          editBar.add(propagateToggle = new cCheckBox("Prop", propagate)); // , aConstraints); | 
|---|
| 1436 | 1448 |          editBar.add(multiplyToggle = new cCheckBox("Mult", false)); // , aConstraints); | 
|---|
| 1437 | 1449 |   | 
|---|
| 1438 |  | -        ctrlPanel.add(editBar);  | 
|---|
 | 1450 | +        panel.add(editBar);  | 
|---|
| 1439 | 1451 |           | 
|---|
| 1440 | 1452 |          /**/ | 
|---|
| 1441 | 1453 |          //aConstraints.weighty = 0; | 
|---|
| .. | .. | 
|---|
| 1484 | 1496 |                  shadowbias.add(shadowbiasField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); | 
|---|
| 1485 | 1497 |          colorSection.add(shadowbias); | 
|---|
| 1486 | 1498 |   | 
|---|
| 1487 |  | -        ctrlPanel.add(new JSeparator());  | 
|---|
 | 1499 | +        panel.add(new JSeparator());  | 
|---|
| 1488 | 1500 |           | 
|---|
| 1489 |  | -        ctrlPanel.add(colorSection);  | 
|---|
 | 1501 | +        panel.add(colorSection);  | 
|---|
| 1490 | 1502 |           | 
|---|
| 1491 | 1503 |          //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints); | 
|---|
| 1492 | 1504 |           | 
|---|
| .. | .. | 
|---|
| 1534 | 1546 |                  fakedepth.add(fakedepthField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); | 
|---|
| 1535 | 1547 |          diffuseSection.add(fakedepth); | 
|---|
| 1536 | 1548 |   | 
|---|
| 1537 |  | -        ctrlPanel.add(new JSeparator());  | 
|---|
 | 1549 | +        panel.add(new JSeparator());  | 
|---|
| 1538 | 1550 |           | 
|---|
| 1539 |  | -        ctrlPanel.add(diffuseSection);  | 
|---|
 | 1551 | +        panel.add(diffuseSection);  | 
|---|
| 1540 | 1552 |           | 
|---|
| 1541 | 1553 |          //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints); | 
|---|
| 1542 | 1554 |           | 
|---|
| .. | .. | 
|---|
| 1572 | 1584 |                  velvet.add(velvetField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); | 
|---|
| 1573 | 1585 |          specularSection.add(velvet); | 
|---|
| 1574 | 1586 |   | 
|---|
| 1575 |  | -        shiftField = AddSlider(specularSection, "Shift", 0.001, 50, copy.material.shift, -1);  | 
|---|
 | 1587 | +        shiftField = (cNumberSlider)AddSlider(specularSection, "Shift", 0.001, 50, copy.material.shift, -1).getComponent(1);  | 
|---|
| 1576 | 1588 |          //Return(); | 
|---|
| 1577 | 1589 |  //		ctrlPanel.add(shiftLabel = new JLabel("Shift"), aConstraints); | 
|---|
| 1578 | 1590 |  //		shiftLabel.setHorizontalAlignment(SwingConstants.TRAILING); | 
|---|
| .. | .. | 
|---|
| 1585 | 1597 |  //		aConstraints.gridwidth = 1; | 
|---|
| 1586 | 1598 |   | 
|---|
| 1587 | 1599 |   | 
|---|
| 1588 |  | -        ctrlPanel.add(new JSeparator());  | 
|---|
 | 1600 | +        panel.add(new JSeparator());  | 
|---|
| 1589 | 1601 |           | 
|---|
| 1590 |  | -        ctrlPanel.add(specularSection);  | 
|---|
 | 1602 | +        panel.add(specularSection);  | 
|---|
| 1591 | 1603 |           | 
|---|
| 1592 | 1604 |          //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints); | 
|---|
| 1593 | 1605 |           | 
|---|
| .. | .. | 
|---|
| 1617 | 1629 |                  opacity.add(opacityField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); | 
|---|
| 1618 | 1630 |          globalSection.add(opacity); | 
|---|
| 1619 | 1631 |   | 
|---|
| 1620 |  | -        ctrlPanel.add(new JSeparator());  | 
|---|
 | 1632 | +        panel.add(new JSeparator());  | 
|---|
| 1621 | 1633 |           | 
|---|
| 1622 |  | -        ctrlPanel.add(globalSection);  | 
|---|
 | 1634 | +        panel.add(globalSection);  | 
|---|
| 1623 | 1635 |           | 
|---|
| 1624 | 1636 |          //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints); | 
|---|
| 1625 | 1637 |           | 
|---|
| .. | .. | 
|---|
| 1661 | 1673 |                  opacityPower.add(opacityPowerField = new cNumberSlider(this, 0.0, 10 /*10 dec 2013*/)); // , aConstraints); | 
|---|
| 1662 | 1674 |          textureSection.add(opacityPower); | 
|---|
| 1663 | 1675 |   | 
|---|
| 1664 |  | -        ctrlPanel.add(new JSeparator());  | 
|---|
 | 1676 | +        panel.add(new JSeparator());  | 
|---|
| 1665 | 1677 |           | 
|---|
| 1666 |  | -        ctrlPanel.add(textureSection);  | 
|---|
 | 1678 | +        panel.add(textureSection);  | 
|---|
| 1667 | 1679 |           | 
|---|
| 1668 | 1680 |          //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints); | 
|---|
| 1669 | 1681 |   | 
|---|
| .. | .. | 
|---|
| 2482 | 2494 |                  } | 
|---|
| 2483 | 2495 |                  if (input == null) | 
|---|
| 2484 | 2496 |                  { | 
|---|
 | 2497 | +                new Exception().printStackTrace();  | 
|---|
| 2485 | 2498 |                      System.exit(0); | 
|---|
| 2486 | 2499 |                  } | 
|---|
| 2487 | 2500 |   | 
|---|
| .. | .. | 
|---|
| 3211 | 3224 |              callee.refreshContents(); | 
|---|
| 3212 | 3225 |          } else | 
|---|
| 3213 | 3226 |          { | 
|---|
 | 3227 | +                new Exception().printStackTrace();  | 
|---|
| 3214 | 3228 |              System.exit(0); | 
|---|
| 3215 | 3229 |          } | 
|---|
| 3216 | 3230 |      } | 
|---|
| .. | .. | 
|---|
| 3421 | 3435 |                  || e.getSource() == apertureField | 
|---|
| 3422 | 3436 |                  || e.getSource() == shadowblurField) | 
|---|
| 3423 | 3437 |          { | 
|---|
 | 3438 | +                new Exception().printStackTrace();  | 
|---|
| 3424 | 3439 |              System.exit(0); | 
|---|
| 3425 | 3440 |              cameraView.options1[0] = (float) focusField.getFloat() * 10; | 
|---|
| 3426 | 3441 |              cameraView.options1[1] = (float) apertureField.getFloat() / 1000; | 
|---|
| .. | .. | 
|---|
| 4392 | 4407 |      //MenuItem normalLensItem; | 
|---|
| 4393 | 4408 |      MenuItem editCameraItem; | 
|---|
| 4394 | 4409 |      MenuItem revertCameraItem; | 
|---|
| 4395 |  | -    CheckboxMenuItem toggleLiveItem;  | 
|---|
| 4396 | 4410 |      MenuItem stepItem; | 
|---|
 | 4411 | +    CheckboxMenuItem toggleLiveItem;  | 
|---|
| 4397 | 4412 |      CheckboxMenuItem toggleFullScreenItem; | 
|---|
| 4398 | 4413 |      CheckboxMenuItem toggleTimelineItem; | 
|---|
| 4399 | 4414 |      CheckboxMenuItem toggleRenderItem; | 
|---|
 
| .. | .. | 
|---|
| 2300 | 2300 |      { | 
|---|
| 2301 | 2301 |          if (newWindow) | 
|---|
| 2302 | 2302 |          { | 
|---|
 | 2303 | +                new Exception().printStackTrace();  | 
|---|
| 2303 | 2304 |              System.exit(0); | 
|---|
| 2304 | 2305 |              if (parent != null) | 
|---|
| 2305 | 2306 |              { | 
|---|
 
| .. | .. | 
|---|
| 70 | 70 |          oe.aConstraints.gridwidth = 1; | 
|---|
| 71 | 71 |           */ | 
|---|
| 72 | 72 |          super.SetupUI2(oe); | 
|---|
 | 73 | +          | 
|---|
 | 74 | +        particlesPanel = AddSlider(oe.ctrlPanel, "Particles", 0, 1000, particlesystem.numParticles);  | 
|---|
| 73 | 75 |   | 
|---|
| 74 | 76 |  //		oe.aConstraints.gridx = 0; | 
|---|
| 75 | 77 |  //		oe.aConstraints.gridwidth = 1; | 
|---|
| .. | .. | 
|---|
| 82 | 84 |  //         | 
|---|
| 83 | 85 |  //        frameField.setFloat(particlesystem.initialVelocity); | 
|---|
| 84 | 86 |   | 
|---|
| 85 |  | -        particlesField = AddSlider(oe.ctrlPanel, "Particles", 0, 1000, particlesystem.numParticles); //, 1);  | 
|---|
| 86 |  | -        Return();  | 
|---|
| 87 |  | -        velocityField = AddSlider(oe.ctrlPanel, "Speed", 0, 10, particlesystem.initialVelocity, 1);  | 
|---|
| 88 |  | -        Return();  | 
|---|
| 89 |  | -        timestepField = AddSlider(oe.ctrlPanel, "Timestep", 0.001f, 1, particlesystem.controller.timestep, 1);  | 
|---|
| 90 |  | -        Return();  | 
|---|
| 91 |  | -        delayField = AddSlider(oe.ctrlPanel, "Delay", 0, 10, particlesystem.creationdelay, 1);  | 
|---|
| 92 |  | -        Return();  | 
|---|
| 93 |  | -        angleminField = AddSlider(oe.ctrlPanel, "Angle min", 0, (float)Math.PI, particlesystem.minimumAngle, 1);  | 
|---|
| 94 |  | -        Return();  | 
|---|
| 95 |  | -        anglemaxField = AddSlider(oe.ctrlPanel, "Angle max", 0, (float)Math.PI, particlesystem.maximumAngle, 1);  | 
|---|
| 96 |  | -        Return();  | 
|---|
| 97 |  | -        sizeminField = AddSlider(oe.ctrlPanel, "Size min", 0, 10, particlesystem.minimumSize, 1);  | 
|---|
| 98 |  | -        Return();  | 
|---|
| 99 |  | -        sizemaxField = AddSlider(oe.ctrlPanel, "Size max", 0, 10, particlesystem.maximumSize, 1);  | 
|---|
| 100 |  | -        Return();  | 
|---|
| 101 |  | -        lifeminField = AddSlider(oe.ctrlPanel, "Life min", 0, 100, particlesystem.minimumLifeTime, 1);  | 
|---|
| 102 |  | -        Return();  | 
|---|
| 103 |  | -        lifemaxField = AddSlider(oe.ctrlPanel, "Life max", 0, 100, particlesystem.maximumLifeTime, 1);  | 
|---|
| 104 |  | -        Return();  | 
|---|
| 105 |  | -        densityField = AddSlider(oe.ctrlPanel, "Density", 0, 1, particlesystem.density, 1);  | 
|---|
| 106 |  | -        Return();  | 
|---|
| 107 |  | -        gravityField = AddSlider(oe.ctrlPanel, "Gravity", 0, 1, -particlesystem.controller.gvector.y, 1);  | 
|---|
| 108 |  | -        Return();  | 
|---|
| 109 |  | -        standbyField = AddSlider(oe.ctrlPanel, "Standby", 0, 1, particlesystem.standby, 1);  | 
|---|
| 110 |  | -        Return();  | 
|---|
 | 87 | +        particlesField = (cNumberSlider)particlesPanel.getComponent(1); //, 1);  | 
|---|
 | 88 | +        oe.ctrlPanel.Return();  | 
|---|
 | 89 | +                speedPanel = AddSlider(oe.ctrlPanel, "Speed", 0, 10, particlesystem.initialVelocity, 1);  | 
|---|
 | 90 | +        speedField = (cNumberSlider)speedPanel.getComponent(1);  | 
|---|
 | 91 | +        oe.ctrlPanel.Return();  | 
|---|
 | 92 | +                timestepPanel = AddSlider(oe.ctrlPanel, "Timestep", 0.001f, 1, particlesystem.controller.timestep, 1);  | 
|---|
 | 93 | +        timestepField = (cNumberSlider)timestepPanel.getComponent(1);  | 
|---|
 | 94 | +        oe.ctrlPanel.Return();  | 
|---|
 | 95 | +                delayPanel = AddSlider(oe.ctrlPanel, "Delay", 0, 10, particlesystem.creationdelay, 1);  | 
|---|
 | 96 | +        delayField = (cNumberSlider)delayPanel.getComponent(1);  | 
|---|
 | 97 | +        oe.ctrlPanel.Return();  | 
|---|
 | 98 | +                angleminPanel = AddSlider(oe.ctrlPanel, "Angle min", 0, (float)Math.PI, particlesystem.minimumAngle, 1);  | 
|---|
 | 99 | +        angleminField = (cNumberSlider)angleminPanel.getComponent(1);  | 
|---|
 | 100 | +        oe.ctrlPanel.Return();  | 
|---|
 | 101 | +                anglemaxPanel = AddSlider(oe.ctrlPanel, "Angle max", 0, (float)Math.PI, particlesystem.maximumAngle, 1);  | 
|---|
 | 102 | +        anglemaxField = (cNumberSlider)anglemaxPanel.getComponent(1);  | 
|---|
 | 103 | +        oe.ctrlPanel.Return();  | 
|---|
 | 104 | +                sizeminPanel = AddSlider(oe.ctrlPanel, "Size min", 0, 10, particlesystem.minimumSize, 1);  | 
|---|
 | 105 | +        sizeminField = (cNumberSlider)sizeminPanel.getComponent(1);  | 
|---|
 | 106 | +        oe.ctrlPanel.Return();  | 
|---|
 | 107 | +                sizemaxPanel = AddSlider(oe.ctrlPanel, "Size max", 0, 10, particlesystem.maximumSize, 1);  | 
|---|
 | 108 | +        sizemaxField = (cNumberSlider)sizemaxPanel.getComponent(1);  | 
|---|
 | 109 | +        oe.ctrlPanel.Return();  | 
|---|
 | 110 | +                lifeminPanel = AddSlider(oe.ctrlPanel, "Life min", 0, 100, particlesystem.minimumLifeTime, 1);  | 
|---|
 | 111 | +        lifeminField = (cNumberSlider)lifeminPanel.getComponent(1);  | 
|---|
 | 112 | +        oe.ctrlPanel.Return();  | 
|---|
 | 113 | +                lifemaxPanel = AddSlider(oe.ctrlPanel, "Life max", 0, 100, particlesystem.maximumLifeTime, 1);  | 
|---|
 | 114 | +        lifemaxField = (cNumberSlider)lifemaxPanel.getComponent(1);  | 
|---|
 | 115 | +        oe.ctrlPanel.Return();  | 
|---|
 | 116 | +                densityPanel = AddSlider(oe.ctrlPanel, "Density", 0, 1, particlesystem.density, 1);  | 
|---|
 | 117 | +        densityField = (cNumberSlider)densityPanel.getComponent(1);  | 
|---|
 | 118 | +        oe.ctrlPanel.Return();  | 
|---|
 | 119 | +                gravityPanel = AddSlider(oe.ctrlPanel, "Gravity", 0, 1, -particlesystem.controller.gvector.y, 1);  | 
|---|
 | 120 | +        gravityField = (cNumberSlider)gravityPanel.getComponent(1);  | 
|---|
 | 121 | +        oe.ctrlPanel.Return();  | 
|---|
 | 122 | +                standbyPanel = AddSlider(oe.ctrlPanel, "Standby", 0, 1, particlesystem.standby, 1);  | 
|---|
 | 123 | +        standbyField = (cNumberSlider)standbyPanel.getComponent(1);  | 
|---|
 | 124 | +        oe.ctrlPanel.Return();  | 
|---|
| 111 | 125 |   | 
|---|
| 112 | 126 |  //		oe.aConstraints.gridy += 1; | 
|---|
| 113 | 127 |  //		oe.aConstraints.gridx = 0; | 
|---|
| .. | .. | 
|---|
| 177 | 191 |      { | 
|---|
| 178 | 192 |          //System.out.println("Biparam :: stateChanged"); | 
|---|
| 179 | 193 |          if (e.getSource() == particlesField || | 
|---|
| 180 |  | -            e.getSource() == velocityField ||  | 
|---|
 | 194 | +            e.getSource() == speedField ||  | 
|---|
| 181 | 195 |              e.getSource() == delayField || | 
|---|
| 182 | 196 |              e.getSource() == timestepField || | 
|---|
| 183 | 197 |              e.getSource() == angleminField || | 
|---|
| .. | .. | 
|---|
| 204 | 218 |      { | 
|---|
| 205 | 219 |  //		System.out.println("Biparam :: Refresh"); | 
|---|
| 206 | 220 |          new Exception().printStackTrace(); | 
|---|
| 207 |  | -        particlesystem.initialVelocity = (float) velocityField.getFloat(); // biparam.minUDivs, 99);  | 
|---|
 | 221 | +        particlesystem.initialVelocity = (float) speedField.getFloat(); // biparam.minUDivs, 99);  | 
|---|
| 208 | 222 |          particlesystem.controller.timestep = (float) timestepField.getFloat(); | 
|---|
| 209 | 223 |   | 
|---|
| 210 | 224 |          refreshContents(); | 
|---|
| .. | .. | 
|---|
| 232 | 246 |          //System.out.println("Biparam :: applySelf"); | 
|---|
| 233 | 247 |          //super.applySelf(); | 
|---|
| 234 | 248 |          particlesystem.numParticles = particlesField.getInteger(); // biparam.minUDivs, 99); | 
|---|
| 235 |  | -        particlesystem.initialVelocity = (float) velocityField.getFloat(); // biparam.minUDivs, 99);  | 
|---|
 | 249 | +        particlesystem.initialVelocity = (float) speedField.getFloat(); // biparam.minUDivs, 99);  | 
|---|
| 236 | 250 |          particlesystem.controller.timestep = (float) timestepField.getFloat(); | 
|---|
| 237 | 251 |          particlesystem.creationdelay = (float) delayField.getFloat(); | 
|---|
| 238 | 252 |          particlesystem.minimumSize = (float) sizeminField.getFloat(); | 
|---|
| .. | .. | 
|---|
| 253 | 267 |   | 
|---|
| 254 | 268 |      public void closeUI() | 
|---|
| 255 | 269 |      { | 
|---|
| 256 |  | -        Remove(particlesField);  | 
|---|
| 257 |  | -        Remove(velocityField);  | 
|---|
| 258 |  | -        Remove(timestepField);  | 
|---|
| 259 |  | -        Remove(delayField);  | 
|---|
| 260 |  | -        Remove(sizeminField);  | 
|---|
| 261 |  | -        Remove(sizemaxField);  | 
|---|
| 262 |  | -        Remove(angleminField);  | 
|---|
| 263 |  | -        Remove(anglemaxField);  | 
|---|
| 264 |  | -        Remove(lifeminField);  | 
|---|
| 265 |  | -        Remove(lifemaxField);  | 
|---|
| 266 |  | -        Remove(densityField);  | 
|---|
| 267 |  | -        Remove(gravityField);  | 
|---|
| 268 |  | -        Remove(standbyField);  | 
|---|
 | 270 | +//        Remove(particlesField);  | 
|---|
 | 271 | +//        Remove(speedField);  | 
|---|
 | 272 | +//        Remove(timestepField);  | 
|---|
 | 273 | +//        Remove(delayField);  | 
|---|
 | 274 | +//        Remove(sizeminField);  | 
|---|
 | 275 | +//        Remove(sizemaxField);  | 
|---|
 | 276 | +//        Remove(angleminField);  | 
|---|
 | 277 | +//        Remove(anglemaxField);  | 
|---|
 | 278 | +//        Remove(lifeminField);  | 
|---|
 | 279 | +//        Remove(lifemaxField);  | 
|---|
 | 280 | +//        Remove(densityField);  | 
|---|
 | 281 | +//        Remove(gravityField);  | 
|---|
 | 282 | +//        Remove(standbyField);  | 
|---|
 | 283 | +        objEditor.ctrlPanel.remove(particlesPanel);  | 
|---|
 | 284 | +        objEditor.ctrlPanel.remove(speedPanel);  | 
|---|
 | 285 | +        objEditor.ctrlPanel.remove(timestepPanel);  | 
|---|
 | 286 | +        objEditor.ctrlPanel.remove(delayPanel);  | 
|---|
 | 287 | +        objEditor.ctrlPanel.remove(sizeminPanel);  | 
|---|
 | 288 | +        objEditor.ctrlPanel.remove(sizemaxPanel);  | 
|---|
 | 289 | +        objEditor.ctrlPanel.remove(angleminPanel);  | 
|---|
 | 290 | +        objEditor.ctrlPanel.remove(anglemaxPanel);  | 
|---|
 | 291 | +        objEditor.ctrlPanel.remove(lifeminPanel);  | 
|---|
 | 292 | +        objEditor.ctrlPanel.remove(lifemaxPanel);  | 
|---|
 | 293 | +        objEditor.ctrlPanel.remove(densityPanel);  | 
|---|
 | 294 | +        objEditor.ctrlPanel.remove(gravityPanel);  | 
|---|
 | 295 | +        objEditor.ctrlPanel.remove(standbyPanel);  | 
|---|
| 269 | 296 |   | 
|---|
| 270 | 297 |  //		ObjEditor oe = objEditor; | 
|---|
| 271 | 298 |   | 
|---|
| .. | .. | 
|---|
| 292 | 319 |      ParticleSystem particlesystem; | 
|---|
| 293 | 320 |       | 
|---|
| 294 | 321 |      cNumberSlider particlesField; | 
|---|
| 295 |  | -    cNumberSlider velocityField;  | 
|---|
 | 322 | +    cNumberSlider speedField;  | 
|---|
| 296 | 323 |      cNumberSlider timestepField; | 
|---|
| 297 | 324 |      cNumberSlider delayField; | 
|---|
| 298 | 325 |      cNumberSlider sizeminField; | 
|---|
| .. | .. | 
|---|
| 305 | 332 |      cNumberSlider gravityField; | 
|---|
| 306 | 333 |      cNumberSlider standbyField; | 
|---|
| 307 | 334 |       | 
|---|
 | 335 | +    cGridBag particlesPanel;  | 
|---|
 | 336 | +    cGridBag speedPanel;  | 
|---|
 | 337 | +    cGridBag timestepPanel;  | 
|---|
 | 338 | +    cGridBag delayPanel;  | 
|---|
 | 339 | +    cGridBag sizeminPanel;  | 
|---|
 | 340 | +    cGridBag sizemaxPanel;  | 
|---|
 | 341 | +    cGridBag angleminPanel;  | 
|---|
 | 342 | +    cGridBag anglemaxPanel;  | 
|---|
 | 343 | +    cGridBag lifeminPanel;  | 
|---|
 | 344 | +    cGridBag lifemaxPanel;  | 
|---|
 | 345 | +    cGridBag densityPanel;  | 
|---|
 | 346 | +    cGridBag gravityPanel;  | 
|---|
 | 347 | +    cGridBag standbyPanel;  | 
|---|
 | 348 | +      | 
|---|
| 308 | 349 |      ObjectUI parent; | 
|---|
| 309 | 350 |      //ObjEditor objEditor; | 
|---|
| 310 | 351 |  } | 
|---|
 
| .. | .. | 
|---|
| 190 | 190 |  	 | 
|---|
| 191 | 191 |  	void Refresh() | 
|---|
| 192 | 192 |  	{ | 
|---|
 | 193 | +                new Exception().printStackTrace();  | 
|---|
| 193 | 194 |              System.exit(0); | 
|---|
| 194 | 195 |  		System.out.println("Biparam :: Refresh"); | 
|---|
| 195 | 196 |          physicsnode.gravity = (float)gravityField.getFloat(); // biparam.minUDivs, 99); | 
|---|
 
| .. | .. | 
|---|
| 82 | 82 |  //         | 
|---|
| 83 | 83 |  //        frameField.setFloat(particlesystem.initialVelocity); | 
|---|
| 84 | 84 |   | 
|---|
| 85 |  | -        resizefactorField = AddSlider(oe.ctrlPanel, "Resize factor", 0, 2, particlesystem.resizefactor, 1);  | 
|---|
| 86 |  | -        Return();  | 
|---|
 | 85 | +        resizefactorField = (cNumberSlider)AddSlider(oe.ctrlPanel, "Resize factor", 0, 2, particlesystem.resizefactor, 1).getComponent(1);  | 
|---|
 | 86 | +        oe.ctrlPanel.Return();  | 
|---|
| 87 | 87 |  //        velocityField = AddSlider(oe.ctrlPanel, "Speed", 0, 10, particlesystem.initialVelocity, 1); | 
|---|
| 88 | 88 |  //        Return(); | 
|---|
| 89 | 89 |  //        timestepField = AddSlider(oe.ctrlPanel, "Timestep", 0.001f, 1, particlesystem.controller.timestep, 1); | 
|---|
| .. | .. | 
|---|
| 94 | 94 |  //        Return(); | 
|---|
| 95 | 95 |  //        anglemaxField = AddSlider(oe.ctrlPanel, "Angle max", 0, (float)Math.PI, particlesystem.maximumAngle, 1); | 
|---|
| 96 | 96 |  //        Return(); | 
|---|
| 97 |  | -        sizeminField = AddSlider(oe.ctrlPanel, "Size min", 0, 0.01, particlesystem.minimumSize, 1);  | 
|---|
| 98 |  | -        Return();  | 
|---|
| 99 |  | -        sizemaxField = AddSlider(oe.ctrlPanel, "Size max", 0, 0.01, particlesystem.maximumSize, 1);  | 
|---|
| 100 |  | -        Return();  | 
|---|
 | 97 | +        sizeminField = (cNumberSlider)AddSlider(oe.ctrlPanel, "Size min", 0, 0.01, particlesystem.minimumSize, 1).getComponent(1);  | 
|---|
 | 98 | +        oe.ctrlPanel.Return();  | 
|---|
 | 99 | +        sizemaxField = (cNumberSlider)AddSlider(oe.ctrlPanel, "Size max", 0, 0.01, particlesystem.maximumSize, 1).getComponent(1);  | 
|---|
 | 100 | +        oe.ctrlPanel.Return();  | 
|---|
| 101 | 101 |  //        lifeminField = AddSlider(oe.ctrlPanel, "Life min", 0, 100, particlesystem.minimumLifeTime, 1); | 
|---|
| 102 | 102 |  //        Return(); | 
|---|
| 103 | 103 |  //        lifemaxField = AddSlider(oe.ctrlPanel, "Life max", 0, 100, particlesystem.maximumLifeTime, 1); | 
|---|
 
| .. | .. | 
|---|
| 9 | 9 |  class RandomEditor extends ObjEditor implements //ItemListener, | 
|---|
| 10 | 10 |          ChangeListener, ObjectUI, ActionListener | 
|---|
| 11 | 11 |  { | 
|---|
 | 12 | +        cGridBag childPanel;  | 
|---|
| 12 | 13 |      RandomEditor(RandomNode inBP, GroupEditor callee) | 
|---|
| 13 | 14 |      { | 
|---|
| 14 | 15 |          super(inBP,callee); | 
|---|
| .. | .. | 
|---|
| 59 | 60 |  	void SetupUI2(ObjEditor oe) | 
|---|
| 60 | 61 |  	{ | 
|---|
| 61 | 62 |              super.SetupUI2(oe); | 
|---|
 | 63 | +                childPanel = AddSlider(oe.ctrlPanel, "Child: ", 0, switchnode.Size()-1, switchnode.rnd);  | 
|---|
| 62 | 64 |                   | 
|---|
| 63 |  | -            frameField = AddSlider(oe.ctrlPanel, "Child: ", 0, switchnode.Size()-1, switchnode.rnd);  | 
|---|
| 64 |  | -            Return();  | 
|---|
| 65 |  | -    }  | 
|---|
 | 65 | +            childField = (cNumberSlider)childPanel.getComponent(1);  | 
|---|
 | 66 | +            oe.ctrlPanel.Return();  | 
|---|
 | 67 | +        }  | 
|---|
| 66 | 68 |  	 | 
|---|
| 67 | 69 |  	void Clear() | 
|---|
| 68 | 70 |  	{ | 
|---|
| .. | .. | 
|---|
| 75 | 77 |  	public void stateChanged(ChangeEvent e) | 
|---|
| 76 | 78 |  	{ | 
|---|
| 77 | 79 |  	    //System.out.println("Biparam :: stateChanged"); | 
|---|
| 78 |  | -		if (e.getSource() == frameField)  | 
|---|
 | 80 | +		if (e.getSource() == childField)  | 
|---|
| 79 | 81 |  		{ | 
|---|
| 80 | 82 |  		//System.out.println("#U = " + biparam.uDivs); | 
|---|
| 81 | 83 |  		//System.out.println("#V = " + biparam.vDivs); | 
|---|
| .. | .. | 
|---|
| 92 | 94 |  	 | 
|---|
| 93 | 95 |  	void Refresh() | 
|---|
| 94 | 96 |  	{ | 
|---|
| 95 |  | -            switchnode.rnd = frameField.getInteger();  | 
|---|
 | 97 | +            switchnode.rnd = childField.getInteger();  | 
|---|
| 96 | 98 |  		 | 
|---|
| 97 | 99 |              refreshContents(); | 
|---|
| 98 | 100 |  	} | 
|---|
| .. | .. | 
|---|
| 100 | 102 |      /**/ | 
|---|
| 101 | 103 |      public void applySelf() | 
|---|
| 102 | 104 |      { | 
|---|
| 103 |  | -        switchnode.rnd = frameField.getInteger();  | 
|---|
 | 105 | +        switchnode.rnd = childField.getInteger();  | 
|---|
| 104 | 106 |      } | 
|---|
| 105 | 107 |      /**/ | 
|---|
| 106 | 108 |       | 
|---|
| .. | .. | 
|---|
| 108 | 110 |  	{ | 
|---|
| 109 | 111 |  		ObjEditor oe = objEditor; | 
|---|
| 110 | 112 |  		 | 
|---|
| 111 |  | -                Remove(frameField);  | 
|---|
 | 113 | +                //Remove(childField);  | 
|---|
 | 114 | +                oe.ctrlPanel.remove(this.childPanel);  | 
|---|
| 112 | 115 |                   | 
|---|
| 113 | 116 |                  super.closeUI(); | 
|---|
| 114 | 117 |  	} | 
|---|
| .. | .. | 
|---|
| 124 | 127 |  	} | 
|---|
| 125 | 128 |  	 | 
|---|
| 126 | 129 |      RandomNode switchnode; | 
|---|
| 127 |  | -    cNumberSlider frameField;  | 
|---|
 | 130 | +    cNumberSlider childField;  | 
|---|
| 128 | 131 |   | 
|---|
| 129 | 132 |  	ObjectUI parent; | 
|---|
| 130 | 133 |  	 | 
|---|
 
| .. | .. | 
|---|
| 8 | 8 |  import javax.swing.*; | 
|---|
| 9 | 9 |  import javax.swing.event.*; | 
|---|
| 10 | 10 |   | 
|---|
 | 11 | +import grafeme.ui.*;  | 
|---|
 | 12 | +  | 
|---|
| 11 | 13 |  class SuperEditor extends BiparamEditor implements ChangeListener, ObjectUI // ActionListener | 
|---|
| 12 | 14 |  { | 
|---|
| 13 | 15 |  	/* | 
|---|
| .. | .. | 
|---|
| 46 | 48 |  	void SetupUI2(ObjEditor oe) | 
|---|
| 47 | 49 |  	{ | 
|---|
| 48 | 50 |              super.SetupUI2(oe); | 
|---|
| 49 |  | -		ObjEditor.aConstraints.gridwidth = 1;  | 
|---|
| 50 |  | -		oe.ctrlPanel.add(northLabel = new JLabel("XY Exp"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 51 |  | -		ObjEditor.aConstraints.fill = GridBagConstraints.HORIZONTAL;  | 
|---|
| 52 |  | -		ObjEditor.aConstraints.gridx += 1;  | 
|---|
| 53 |  | -		ObjEditor.aConstraints.gridwidth = ObjEditor.GRIDWIDTH;  | 
|---|
| 54 |  | -		oe.ctrlPanel.add(northField = new NumberSlider(0.0001,20,-1), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 55 |  | -		ObjEditor.aConstraints.gridx = 0;  | 
|---|
| 56 |  | -		ObjEditor.aConstraints.gridy += 1;  | 
|---|
| 57 |  | -		ObjEditor.aConstraints.gridwidth = 1;  | 
|---|
| 58 |  | -		ObjEditor.aConstraints.fill = GridBagConstraints.NONE;  | 
|---|
| 59 |  | -		oe.ctrlPanel.add(eastLabel = new JLabel("Z Exp"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 60 |  | -		ObjEditor.aConstraints.gridx += 1;  | 
|---|
| 61 |  | -		ObjEditor.aConstraints.fill = GridBagConstraints.HORIZONTAL;  | 
|---|
| 62 |  | -		ObjEditor.aConstraints.gridwidth = ObjEditor.GRIDWIDTH;  | 
|---|
| 63 |  | -		oe.ctrlPanel.add(eastField = new NumberSlider(0.0001,20,-1), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 64 |  | -		ObjEditor.aConstraints.gridx = 0;  | 
|---|
| 65 |  | -		ObjEditor.aConstraints.gridy += 1;  | 
|---|
| 66 |  | -		ObjEditor.aConstraints.gridwidth = 1;  | 
|---|
| 67 |  | -			ObjEditor.aConstraints.gridwidth = 3;  | 
|---|
| 68 |  | -//			ObjEditor.aConstraints.anchor = GridBagConstraints.WEST;  | 
|---|
| 69 |  | -            oe.ctrlPanel.add(optionCB = new JCheckBox("Reverse", (superE.radius<0)), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 51 | +              | 
|---|
 | 52 | +            northPanel = new cGridBag();  | 
|---|
 | 53 | +              | 
|---|
 | 54 | +		northPanel.add(northLabel = new JLabel("XY Exp")); //, ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 55 | +                northPanel.add(northField = new cNumberSlider(this, 0.0001,20,-1)); //, ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 56 | +                oe.ctrlPanel.add(northPanel);		  | 
|---|
 | 57 | +                  | 
|---|
 | 58 | +                oe.ctrlPanel.Return();  | 
|---|
 | 59 | +            eastPanel = new cGridBag();  | 
|---|
 | 60 | +                eastPanel.add(eastLabel = new JLabel("Z Exp")); //, ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 61 | +                eastPanel.add(eastField = new cNumberSlider(this, 0.0001,20,-1)); //, ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
 | 62 | +                oe.ctrlPanel.add(eastPanel);		  | 
|---|
 | 63 | +  | 
|---|
 | 64 | +                oe.ctrlPanel.Return();  | 
|---|
 | 65 | +                //			ObjEditor.aConstraints.anchor = GridBagConstraints.WEST;  | 
|---|
 | 66 | +            oe.ctrlPanel.add(optionCB = new JCheckBox("Reverse", (superE.radius<0))); //, ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount()-2);  | 
|---|
| 70 | 67 |  			optionCB.addItemListener(this); | 
|---|
| 71 |  | -//			ObjEditor.aConstraints.anchor = GridBagConstraints.EAST;  | 
|---|
| 72 |  | -			ObjEditor.aConstraints.gridwidth = 1;  | 
|---|
| 73 |  | -		ObjEditor.aConstraints.gridx = 0;  | 
|---|
| 74 |  | -		ObjEditor.aConstraints.gridy += 1;  | 
|---|
| 75 |  | -		northField.setFloat(superE.north);  | 
|---|
 | 68 | +  | 
|---|
 | 69 | +                oe.ctrlPanel.Return();  | 
|---|
 | 70 | +                  | 
|---|
 | 71 | +                        northField.setFloat(superE.north);  | 
|---|
| 76 | 72 |  		eastField.setFloat(superE.east); | 
|---|
| 77 |  | -		northField.addChangeListener(this);  | 
|---|
| 78 |  | -		eastField.addChangeListener(this);  | 
|---|
| 79 |  | -		ObjEditor.aConstraints.fill = GridBagConstraints.NONE;  | 
|---|
| 80 |  | -	}  | 
|---|
 | 73 | +        }  | 
|---|
| 81 | 74 |  	 | 
|---|
| 82 | 75 |  	public void closeUI() | 
|---|
| 83 | 76 |  	{ | 
|---|
| .. | .. | 
|---|
| 87 | 80 |  		eastField.removeChangeListener(this); | 
|---|
| 88 | 81 |  		optionCB.removeItemListener(this); | 
|---|
| 89 | 82 |  		oe.ctrlPanel.remove(optionCB); | 
|---|
| 90 |  | -		oe.ctrlPanel.remove(northField);  | 
|---|
| 91 |  | -		oe.ctrlPanel.remove(eastField);  | 
|---|
| 92 |  | -		oe.ctrlPanel.remove(northLabel);  | 
|---|
| 93 |  | -		oe.ctrlPanel.remove(eastLabel);  | 
|---|
 | 83 | +		oe.ctrlPanel.remove(northPanel);  | 
|---|
 | 84 | +		oe.ctrlPanel.remove(eastPanel);  | 
|---|
 | 85 | +//		oe.ctrlPanel.remove(northField);  | 
|---|
 | 86 | +//		oe.ctrlPanel.remove(eastField);  | 
|---|
 | 87 | +//		oe.ctrlPanel.remove(northLabel);  | 
|---|
 | 88 | +//		oe.ctrlPanel.remove(eastLabel);  | 
|---|
| 94 | 89 |  		//oe.ctrlPanel.repaint(); | 
|---|
| 95 | 90 |  		 | 
|---|
| 96 | 91 |  		super.closeUI(); | 
|---|
| .. | .. | 
|---|
| 184 | 179 |  	Superellipsoid superE; | 
|---|
| 185 | 180 |  	JLabel northLabel; | 
|---|
| 186 | 181 |  	JLabel eastLabel; | 
|---|
| 187 |  | -	NumberSlider northField;  | 
|---|
| 188 |  | -	NumberSlider eastField;  | 
|---|
 | 182 | +	cNumberSlider northField;  | 
|---|
 | 183 | +	cNumberSlider eastField;  | 
|---|
| 189 | 184 |  	 | 
|---|
 | 185 | +        cGridBag northPanel;  | 
|---|
 | 186 | +        cGridBag eastPanel;  | 
|---|
| 190 | 187 |  	//BiparamEditor objEditor; | 
|---|
| 191 | 188 |  } | 
|---|
| 192 | 189 |   | 
|---|
 
| .. | .. | 
|---|
| 81 | 81 |  //         | 
|---|
| 82 | 82 |  //        frameField.setInteger(frameselect.child); | 
|---|
| 83 | 83 |               | 
|---|
| 84 |  | -            frameField = AddSlider(oe.ctrlPanel, "Child: ", 0, switchnode.getNumFrames()-1, switchnode.child);  | 
|---|
| 85 |  | -            Return();  | 
|---|
 | 84 | +            frameField = (cNumberSlider)AddSlider(oe.ctrlPanel, "Child: ", 0, switchnode.getNumFrames()-1, switchnode.child).getComponent(1);  | 
|---|
 | 85 | +        oe.ctrlPanel.Return();  | 
|---|
| 86 | 86 |               | 
|---|
| 87 |  | -            speedField = AddSlider(oe.ctrlPanel, "Damp: ", 0, 500, switchnode.speed);  | 
|---|
| 88 |  | -            Return();  | 
|---|
 | 87 | +            speedField = (cNumberSlider)AddSlider(oe.ctrlPanel, "Damp: ", 0, 500, switchnode.speed).getComponent(1);  | 
|---|
 | 88 | +        oe.ctrlPanel.Return();  | 
|---|
| 89 | 89 |               | 
|---|
| 90 | 90 |  //		oe.aConstraints.gridy += 1; | 
|---|
| 91 | 91 |  //         | 
|---|
 
| .. | .. | 
|---|
| 39 | 39 |  	{ | 
|---|
| 40 | 40 |              super.SetupUI2(oe); | 
|---|
| 41 | 41 |               | 
|---|
| 42 |  | -            majorField = AddSlider(oe.ctrlPanel, "Major Rad:", 0, 10.0, torus.major, 1);  | 
|---|
| 43 |  | -            Return();  | 
|---|
| 44 |  | -            minorField = AddSlider(oe.ctrlPanel, "Minor Rad:", 0, 10.0, torus.minor, 1);  | 
|---|
| 45 |  | -            Return();  | 
|---|
 | 42 | +            majorPanel = AddSlider(oe.ctrlPanel, "Major Rad:", 0, 10.0, torus.major, 1);  | 
|---|
 | 43 | +            majorField = (cNumberSlider)majorPanel.getComponent(1);  | 
|---|
 | 44 | +            oe.ctrlPanel.Return();  | 
|---|
 | 45 | +              | 
|---|
 | 46 | +            minorPanel = AddSlider(oe.ctrlPanel, "Minor Rad:", 0, 10.0, torus.minor, 1);  | 
|---|
 | 47 | +            minorField = (cNumberSlider)minorPanel.getComponent(1);  | 
|---|
 | 48 | +            oe.ctrlPanel.Return();  | 
|---|
| 46 | 49 |  //        oe.ctrlPanel.add(majorLabel = new JLabel("Major Rad"), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2); | 
|---|
| 47 | 50 |  //	oe.aConstraints.gridwidth = ObjEditor.GRIDWIDTH; | 
|---|
| 48 | 51 |  //	oe.aConstraints.gridx += 1; | 
|---|
| .. | .. | 
|---|
| 79 | 82 |  //		oe.ctrlPanel.remove(majorLabel); | 
|---|
| 80 | 83 |  //		oe.ctrlPanel.remove(minorLabel); | 
|---|
| 81 | 84 |  //		//oe.ctrlPanel.repaint(); | 
|---|
| 82 |  | -                Remove(majorField);  | 
|---|
| 83 |  | -                Remove(minorField);  | 
|---|
 | 85 | +//                Remove(majorField);  | 
|---|
 | 86 | +//                Remove(minorField);  | 
|---|
 | 87 | +		oe.ctrlPanel.remove(majorPanel);  | 
|---|
 | 88 | +		oe.ctrlPanel.remove(minorPanel);  | 
|---|
| 84 | 89 |  		 | 
|---|
| 85 | 90 |  		super.closeUI(); | 
|---|
| 86 | 91 |  	} | 
|---|
| .. | .. | 
|---|
| 159 | 164 |      cNumberSlider majorField; | 
|---|
| 160 | 165 |      cNumberSlider minorField; | 
|---|
| 161 | 166 |  	 | 
|---|
 | 167 | +    cGridBag majorPanel;  | 
|---|
 | 168 | +    cGridBag minorPanel;  | 
|---|
| 162 | 169 |  	//BiparamEditor objEditor; | 
|---|
| 163 | 170 |  } | 
|---|
 
| .. | .. | 
|---|
| 1208 | 1208 |                  } | 
|---|
| 1209 | 1209 |                   | 
|---|
| 1210 | 1210 |                  if (edges.size()%2 != 0) | 
|---|
 | 1211 | +                {  | 
|---|
 | 1212 | +                new Exception().printStackTrace();  | 
|---|
| 1211 | 1213 |                      System.exit(0); | 
|---|
 | 1214 | +                }  | 
|---|
| 1212 | 1215 |              } | 
|---|
| 1213 | 1216 |   | 
|---|
| 1214 | 1217 |         //     if (clearsprings) | 
|---|
| .. | .. | 
|---|
| 1516 | 1519 |                      second = springs.get((i+1)%springs.size()); | 
|---|
| 1517 | 1520 |   | 
|---|
| 1518 | 1521 |                      if (first == second) | 
|---|
 | 1522 | +                    {  | 
|---|
 | 1523 | +                new Exception().printStackTrace();  | 
|---|
| 1519 | 1524 |                          System.exit(0); | 
|---|
 | 1525 | +                    }  | 
|---|
| 1520 | 1526 |   | 
|---|
| 1521 | 1527 |                      temp.set(first.GetOther(this).position); | 
|---|
| 1522 | 1528 |                      temp.sub(position); | 
|---|
| .. | .. | 
|---|
| 1646 | 1652 |                  Spring second = springs.get((i+1)%springs.size()); | 
|---|
| 1647 | 1653 |                   | 
|---|
| 1648 | 1654 |                  if (first == second) | 
|---|
 | 1655 | +                {  | 
|---|
 | 1656 | +                    new Exception().printStackTrace();  | 
|---|
| 1649 | 1657 |                      System.exit(0); | 
|---|
 | 1658 | +                }  | 
|---|
| 1650 | 1659 |                   | 
|---|
| 1651 | 1660 |                  temp.set(first.GetOther(this).position); | 
|---|
| 1652 | 1661 |                  temp.sub(position); | 
|---|
| .. | .. | 
|---|
| 3289 | 3298 |               | 
|---|
| 3290 | 3299 |              if (N2.mass == Float.MAX_VALUE) | 
|---|
| 3291 | 3300 |              { | 
|---|
 | 3301 | +                    new Exception().printStackTrace();  | 
|---|
| 3292 | 3302 |                  System.exit(0); | 
|---|
| 3293 | 3303 |                  magnitude *= solidity; // * K; | 
|---|
| 3294 | 3304 |                   | 
|---|
 
| .. | .. | 
|---|
| 8 | 8 |   | 
|---|
| 9 | 9 |  class cSpringEditor extends ObjEditor implements ItemListener, ChangeListener, ObjectUI, ActionListener | 
|---|
| 10 | 10 |  { | 
|---|
| 11 |  | -  | 
|---|
| 12 | 11 |      cSpringEditor(cSpring inBP, GroupEditor callee) | 
|---|
| 13 | 12 |      { | 
|---|
| 14 | 13 |          super(inBP, callee); | 
|---|
| .. | .. | 
|---|
| 53 | 52 |      { | 
|---|
| 54 | 53 |          super.SetupUI2(oe); | 
|---|
| 55 | 54 |   | 
|---|
 | 55 | +        firstrowPanel = new cGridBag();  | 
|---|
 | 56 | +          | 
|---|
| 56 | 57 |  ////        oe.ctrlPanel.add(animate = new JCheckBox("Live", spring.live), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 57 | 58 |  ////        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 58 |  | -            freezeButton = AddButton(oe, "Freeze");  | 
|---|
 | 59 | +            freezeButton = AddButton(firstrowPanel, "Freeze");  | 
|---|
| 59 | 60 |  //	oe.ctrlPanel.add(freezeButton = new cButton("Freeze"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 60 | 61 |  //        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 61 | 62 |  ////	oe.ctrlPanel.add(stepButton = new cButton("Step"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 62 | 63 |  ////        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 63 |  | -            avoiderButton = AddButton(oe, "Avoid");  | 
|---|
 | 64 | +            avoiderButton = AddButton(firstrowPanel, "Avoid");  | 
|---|
| 64 | 65 |  //	oe.ctrlPanel.add(avoiderButton = new cButton("Avoid"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 65 | 66 |  //        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 66 |  | -            autofreeze = AddCheckBox(oe, "Blow", spring.IsAutoFreeze());  | 
|---|
 | 67 | +            autofreeze = AddCheckBox(firstrowPanel, "Blow", spring.IsAutoFreeze());  | 
|---|
| 67 | 68 |  //        oe.ctrlPanel.add(autofreeze = new JCheckBox("Blow", spring.IsAutoFreeze()), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 68 | 69 |  //        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 69 | 70 |  //            Return(); | 
|---|
| .. | .. | 
|---|
| 71 | 72 |  //        ObjEditor.aConstraints.gridx = 0; | 
|---|
| 72 | 73 |  ////	oe.ctrlPanel.add(resetButton = new cButton("Reset"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 73 | 74 |  ////        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 74 |  | -            fastnormals = AddCheckBox(oe, "Fast", spring.IsFastNormals());  | 
|---|
 | 75 | +            fastnormals = AddCheckBox(firstrowPanel, "Fast", spring.IsFastNormals());  | 
|---|
| 75 | 76 |  //        oe.ctrlPanel.add(fastnormals = new JCheckBox("Fast", spring.IsFastNormals()), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 76 | 77 |  //        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 77 |  | -            springs = AddCheckBox(oe, "Show", spring.showsprings);  | 
|---|
 | 78 | +            springs = AddCheckBox(firstrowPanel, "Show", spring.showsprings);  | 
|---|
| 78 | 79 |  //        oe.ctrlPanel.add(springs = new JCheckBox("Springs", spring.showsprings), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 79 | 80 |  //        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 80 |  | -            info = AddCheckBox(oe, "Info", spring.ShowInfo());  | 
|---|
 | 81 | +            info = AddCheckBox(firstrowPanel, "Info", spring.ShowInfo());  | 
|---|
| 81 | 82 |  //        oe.ctrlPanel.add(info = new JCheckBox("Info", spring.ShowInfo()), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 82 |  | -            Return();  | 
|---|
 | 83 | +        oe.ctrlPanel.add(firstrowPanel);  | 
|---|
 | 84 | +        oe.ctrlPanel.Return();  | 
|---|
| 83 | 85 |  //        ObjEditor.aConstraints.gridy += 1; | 
|---|
| 84 | 86 |  //        ObjEditor.aConstraints.gridx = 0; | 
|---|
 | 87 | +          | 
|---|
 | 88 | +                stiffnessPanel = AddSlider(oe.ctrlPanel, "Stiffness:", 0, 20.0, Math.log(spring.K+1), 1);  | 
|---|
| 85 | 89 |           | 
|---|
| 86 | 90 |  //        ObjEditor.aConstraints.anchor = GridBagConstraints.WEST; | 
|---|
| 87 | 91 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| .. | .. | 
|---|
| 96 | 100 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| 97 | 101 |  //        //ObjEditor.aConstraints.fill = 0; | 
|---|
| 98 | 102 |  //        ObjEditor.aConstraints.gridx -= 1; | 
|---|
| 99 |  | -            stiffnessField = AddSlider(oe.ctrlPanel, "Stiffness:", 0, 20.0, Math.log(spring.K+1), 1);  | 
|---|
| 100 |  | -            Return();  | 
|---|
 | 103 | +            stiffnessField = (cNumberSlider)stiffnessPanel.getComponent(1);  | 
|---|
 | 104 | +        oe.ctrlPanel.Return();  | 
|---|
 | 105 | +                massPanel = AddSlider(oe.ctrlPanel, "Mass:", 0, 20.0, Math.log(spring.M+1), 1);  | 
|---|
| 101 | 106 |           | 
|---|
| 102 | 107 |  //        oe.ctrlPanel.add(massLabel = new JLabel("Mass"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 103 | 108 |  //	massLabel.setHorizontalAlignment(SwingConstants.TRAILING); | 
|---|
| .. | .. | 
|---|
| 109 | 114 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| 110 | 115 |  //        //ObjEditor.aConstraints.fill = 0; | 
|---|
| 111 | 116 |  //        ObjEditor.aConstraints.gridx -= 1; | 
|---|
| 112 |  | -            massField = AddSlider(oe.ctrlPanel, "Mass:", 0, 20.0, Math.log(spring.M+1), 1);  | 
|---|
| 113 |  | -            Return();  | 
|---|
 | 117 | +            massField = (cNumberSlider)massPanel.getComponent(1);  | 
|---|
 | 118 | +        oe.ctrlPanel.Return();  | 
|---|
 | 119 | +                gravityPanel = AddSlider(oe.ctrlPanel, "Gravity:", 0, 20.0, Math.log(spring.G.acceleration+1), 1);  | 
|---|
| 114 | 120 |           | 
|---|
| 115 | 121 |  //        oe.ctrlPanel.add(gravityLabel = new JLabel("Gravity"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 116 | 122 |  //	gravityLabel.setHorizontalAlignment(SwingConstants.TRAILING); | 
|---|
| .. | .. | 
|---|
| 122 | 128 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| 123 | 129 |  //        //ObjEditor.aConstraints.fill = 0; | 
|---|
| 124 | 130 |  //        ObjEditor.aConstraints.gridx -= 1; | 
|---|
| 125 |  | -            gravityField = AddSlider(oe.ctrlPanel, "Gravity:", 0, 20.0, Math.log(spring.G.acceleration+1), 1);  | 
|---|
| 126 |  | -            Return();  | 
|---|
 | 131 | +            gravityField = (cNumberSlider)gravityPanel.getComponent(1);  | 
|---|
 | 132 | +        oe.ctrlPanel.Return();  | 
|---|
 | 133 | +                normalPanel = AddSlider(oe.ctrlPanel, "Normal:", 0, 20.0, Math.log(spring.normalpush+1), 1);  | 
|---|
| 127 | 134 |    | 
|---|
| 128 | 135 |  //        oe.ctrlPanel.add(normalLabel = new JLabel("Normal"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 129 | 136 |  //	normalLabel.setHorizontalAlignment(SwingConstants.TRAILING); | 
|---|
| .. | .. | 
|---|
| 135 | 142 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| 136 | 143 |  //        //ObjEditor.aConstraints.fill = 0; | 
|---|
| 137 | 144 |  //        ObjEditor.aConstraints.gridx -= 1; | 
|---|
| 138 |  | -            normalField = AddSlider(oe.ctrlPanel, "Normal:", 0, 20.0, Math.log(spring.normalpush+1), 1);  | 
|---|
| 139 |  | -            Return();  | 
|---|
 | 145 | +            normalField = (cNumberSlider)normalPanel.getComponent(1);  | 
|---|
 | 146 | +        oe.ctrlPanel.Return();  | 
|---|
 | 147 | +                restlengthPanel = AddSlider(oe.ctrlPanel, "Restlength:", 0, 2.0, spring.restlengthFactor, 1);  | 
|---|
| 140 | 148 |    | 
|---|
| 141 | 149 |          /**/ | 
|---|
| 142 | 150 |  //        oe.ctrlPanel.add(thicknessLabel = new JLabel("Restlength"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| .. | .. | 
|---|
| 149 | 157 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| 150 | 158 |  //        //ObjEditor.aConstraints.fill = 0; | 
|---|
| 151 | 159 |  //        ObjEditor.aConstraints.gridx -= 1; | 
|---|
| 152 |  | -            restlengthField = AddSlider(oe.ctrlPanel, "Restlength:", 0, 2.0, spring.restlengthFactor, 1);  | 
|---|
| 153 |  | -            Return();  | 
|---|
 | 160 | +            restlengthField = (cNumberSlider)restlengthPanel.getComponent(1);  | 
|---|
 | 161 | +        oe.ctrlPanel.Return();  | 
|---|
 | 162 | +                distortionPanel = AddSlider(oe.ctrlPanel, "Distortion:", 0, 2.0, spring.distortion, 1);  | 
|---|
| 154 | 163 |   | 
|---|
| 155 | 164 |  //        oe.ctrlPanel.add(distortionLabel = new JLabel("Distortion"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 156 | 165 |  //	distortionLabel.setHorizontalAlignment(SwingConstants.TRAILING); | 
|---|
| .. | .. | 
|---|
| 162 | 171 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| 163 | 172 |  //        //ObjEditor.aConstraints.fill = 0; | 
|---|
| 164 | 173 |  //        ObjEditor.aConstraints.gridx -= 1; | 
|---|
| 165 |  | -            distortionField = AddSlider(oe.ctrlPanel, "Distortion:", 0, 2.0, spring.distortion, 1);  | 
|---|
| 166 |  | -            Return();  | 
|---|
 | 174 | +            distortionField = (cNumberSlider)distortionPanel.getComponent(1);  | 
|---|
 | 175 | +        oe.ctrlPanel.Return();  | 
|---|
| 167 | 176 |          /**/ | 
|---|
 | 177 | +                limitPanel = AddSlider(oe.ctrlPanel, "Limit:", 0, 20.0, Math.log(spring.limit+1), 1);  | 
|---|
| 168 | 178 |           | 
|---|
| 169 | 179 |  //        oe.ctrlPanel.add(limitLabel = new JLabel("Limit"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 170 | 180 |  //	limitLabel.setHorizontalAlignment(SwingConstants.TRAILING); | 
|---|
| .. | .. | 
|---|
| 176 | 186 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| 177 | 187 |  //        //ObjEditor.aConstraints.fill = 0; | 
|---|
| 178 | 188 |  //        ObjEditor.aConstraints.gridx -= 1; | 
|---|
| 179 |  | -            limitField = AddSlider(oe.ctrlPanel, "Limit:", 0, 20.0, Math.log(spring.limit+1), 1);  | 
|---|
| 180 |  | -            Return();  | 
|---|
 | 189 | +            limitField = (cNumberSlider)limitPanel.getComponent(1);  | 
|---|
 | 190 | +        oe.ctrlPanel.Return();  | 
|---|
 | 191 | +                viscosityPanel = AddSlider(oe.ctrlPanel, "Viscosity:", 0, 20.0, Math.log(spring.W.wind+1), 1);  | 
|---|
| 181 | 192 |           | 
|---|
| 182 | 193 |  //        oe.ctrlPanel.add(viscosityLabel = new JLabel("Viscosity"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 183 | 194 |  //	viscosityLabel.setHorizontalAlignment(SwingConstants.TRAILING); | 
|---|
| .. | .. | 
|---|
| 189 | 200 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| 190 | 201 |  //        //ObjEditor.aConstraints.fill = 0; | 
|---|
| 191 | 202 |  //        ObjEditor.aConstraints.gridx -= 1; | 
|---|
| 192 |  | -            viscosityField = AddSlider(oe.ctrlPanel, "Viscosity:", 0, 20.0, Math.log(spring.W.wind+1), 1);  | 
|---|
| 193 |  | -            Return();  | 
|---|
 | 203 | +            viscosityField = (cNumberSlider)viscosityPanel.getComponent(1);  | 
|---|
 | 204 | +        oe.ctrlPanel.Return();  | 
|---|
 | 205 | +                fluidspeedPanel = AddSlider(oe.ctrlPanel, "Speed:", 0, 20.0, Math.log(spring.W.speed+1), 1);  | 
|---|
| 194 | 206 |    | 
|---|
| 195 | 207 |  //        oe.ctrlPanel.add(fluidspeedLabel = new JLabel("Speed"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 196 | 208 |  //	fluidspeedLabel.setHorizontalAlignment(SwingConstants.TRAILING); | 
|---|
| .. | .. | 
|---|
| 202 | 214 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| 203 | 215 |  //        //ObjEditor.aConstraints.fill = 0; | 
|---|
| 204 | 216 |  //        ObjEditor.aConstraints.gridx -= 1; | 
|---|
| 205 |  | -            fluidspeedField = AddSlider(oe.ctrlPanel, "Speed:", 0, 20.0, Math.log(spring.W.speed+1), 1);  | 
|---|
| 206 |  | -            Return();  | 
|---|
 | 217 | +            fluidspeedField = (cNumberSlider)fluidspeedPanel.getComponent(1);  | 
|---|
 | 218 | +        oe.ctrlPanel.Return();  | 
|---|
 | 219 | +                liftPanel = AddSlider(oe.ctrlPanel, "Lift:", 0, 1.0, spring.W.lift, 1);  | 
|---|
| 207 | 220 |    | 
|---|
| 208 | 221 |  //        oe.ctrlPanel.add(liftLabel = new JLabel("Lift"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 209 | 222 |  //	liftLabel.setHorizontalAlignment(SwingConstants.TRAILING); | 
|---|
| .. | .. | 
|---|
| 215 | 228 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| 216 | 229 |  //        //ObjEditor.aConstraints.fill = 0; | 
|---|
| 217 | 230 |  //        ObjEditor.aConstraints.gridx -= 1; | 
|---|
| 218 |  | -            liftField = AddSlider(oe.ctrlPanel, "Lift:", 0, 1.0, spring.W.lift, 1);  | 
|---|
| 219 |  | -            Return();  | 
|---|
 | 231 | +            liftField = (cNumberSlider)liftPanel.getComponent(1);  | 
|---|
 | 232 | +        oe.ctrlPanel.Return();  | 
|---|
 | 233 | +                frictionPanel = AddSlider(oe.ctrlPanel, "Friction:", 0, 1.0, spring.friction, 1);  | 
|---|
| 220 | 234 |           | 
|---|
| 221 | 235 |  //        oe.ctrlPanel.add(frictionLabel = new JLabel("Friction"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 222 | 236 |  //	frictionLabel.setHorizontalAlignment(SwingConstants.TRAILING); | 
|---|
| .. | .. | 
|---|
| 228 | 242 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| 229 | 243 |  //        //ObjEditor.aConstraints.fill = 0; | 
|---|
| 230 | 244 |  //        ObjEditor.aConstraints.gridx -= 1; | 
|---|
| 231 |  | -            frictionField = AddSlider(oe.ctrlPanel, "Friction:", 0, 1.0, spring.friction, 1);  | 
|---|
| 232 |  | -            Return();  | 
|---|
 | 245 | +            frictionField = (cNumberSlider)frictionPanel.getComponent(1);  | 
|---|
 | 246 | +        oe.ctrlPanel.Return();  | 
|---|
 | 247 | +                timestepPanel = AddSlider(oe.ctrlPanel, "Timestep:", 0, 1.0, spring.timestep, 1);  | 
|---|
| 233 | 248 |           | 
|---|
| 234 | 249 |  //        oe.ctrlPanel.add(timestepLabel = new JLabel("Timestep"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 235 | 250 |  //	timestepLabel.setHorizontalAlignment(SwingConstants.TRAILING); | 
|---|
| .. | .. | 
|---|
| 241 | 256 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| 242 | 257 |  //        //ObjEditor.aConstraints.fill = 0; | 
|---|
| 243 | 258 |  //        ObjEditor.aConstraints.gridx -= 1; | 
|---|
| 244 |  | -            timestepField = AddSlider(oe.ctrlPanel, "Timestep:", 0, 1.0, spring.timestep, 1);  | 
|---|
| 245 |  | -            Return();  | 
|---|
 | 259 | +            timestepField = (cNumberSlider)timestepPanel.getComponent(1);  | 
|---|
 | 260 | +        oe.ctrlPanel.Return();  | 
|---|
 | 261 | +                poseslownessPanel = AddSlider(oe.ctrlPanel, "Slowness:", 0, 100.0, spring.slowness, 1);  | 
|---|
| 246 | 262 |           | 
|---|
| 247 | 263 |  //        oe.ctrlPanel.add(poseslownessLabel = new JLabel("Slowness"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 248 | 264 |  //	timestepLabel.setHorizontalAlignment(SwingConstants.TRAILING); | 
|---|
| .. | .. | 
|---|
| 254 | 270 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| 255 | 271 |  //        //ObjEditor.aConstraints.fill = 0; | 
|---|
| 256 | 272 |  //        ObjEditor.aConstraints.gridx -= 1; | 
|---|
| 257 |  | -            poseslownessField = AddSlider(oe.ctrlPanel, "Slowness:", 0, 100.0, spring.slowness, 1);  | 
|---|
| 258 |  | -            Return();  | 
|---|
 | 273 | +            poseslownessField = (cNumberSlider)poseslownessPanel.getComponent(1);  | 
|---|
 | 274 | +        oe.ctrlPanel.Return();  | 
|---|
 | 275 | +                dampingPanel = AddSlider(oe.ctrlPanel, "Damping:", 0, 20.0, -Math.log(spring.damping)*10, 1);  | 
|---|
| 259 | 276 |           | 
|---|
| 260 | 277 |  //        oe.ctrlPanel.add(dampingLabel = new JLabel("Damping"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 261 | 278 |  //	dampingLabel.setHorizontalAlignment(SwingConstants.TRAILING); | 
|---|
| .. | .. | 
|---|
| 267 | 284 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| 268 | 285 |  //        //ObjEditor.aConstraints.fill = 0; | 
|---|
| 269 | 286 |  //        ObjEditor.aConstraints.gridx -= 1; | 
|---|
| 270 |  | -            dampingField = AddSlider(oe.ctrlPanel, "Damping:", 0, 20.0, -Math.log(spring.damping)*10, 1);  | 
|---|
| 271 |  | -            Return();  | 
|---|
 | 287 | +            dampingField = (cNumberSlider)dampingPanel.getComponent(1);  | 
|---|
 | 288 | +        oe.ctrlPanel.Return();  | 
|---|
 | 289 | +                solidityPanel = AddSlider(oe.ctrlPanel, "Solidity:", 0, 20.0, Math.log(spring.solidity+1), 1);  | 
|---|
| 272 | 290 |           | 
|---|
| 273 | 291 |  //        oe.ctrlPanel.add(solidityLabel = new JLabel("Solidity"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 274 | 292 |  //	solidityLabel.setHorizontalAlignment(SwingConstants.TRAILING); | 
|---|
| .. | .. | 
|---|
| 280 | 298 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| 281 | 299 |  //        //ObjEditor.aConstraints.fill = 0; | 
|---|
| 282 | 300 |  //        ObjEditor.aConstraints.gridx -= 1; | 
|---|
| 283 |  | -            solidityField = AddSlider(oe.ctrlPanel, "Solidity:", 0, 20.0, Math.log(spring.solidity+1), 1);  | 
|---|
| 284 |  | -            Return();  | 
|---|
 | 301 | +            solidityField = (cNumberSlider)solidityPanel.getComponent(1);  | 
|---|
 | 302 | +        oe.ctrlPanel.Return();  | 
|---|
| 285 | 303 |           | 
|---|
| 286 | 304 |              //System.out.println("K = " + spring.K + "; G = " + spring.G.acceleration + "; H = " + spring.H + "; V = " + spring.W.wind); | 
|---|
| 287 | 305 |           | 
|---|
| .. | .. | 
|---|
| 316 | 334 |  //        solidityField.setFloat(Math.log(spring.solidity+1)); | 
|---|
| 317 | 335 |  //        solidityField.addChangeListener(this); | 
|---|
| 318 | 336 |           | 
|---|
 | 337 | +        secondrowPanel = new cGridBag();  | 
|---|
 | 338 | +          | 
|---|
| 319 | 339 |  //        ObjEditor.aConstraints.gridwidth = 1; | 
|---|
| 320 | 340 |  //        ObjEditor.aConstraints.anchor = GridBagConstraints.WEST; | 
|---|
| 321 | 341 |  //	oe.ctrlPanel.add(revertButton = new cButton("Revert"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 322 | 342 |  //        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 323 |  | -            revertButton = AddButton(oe, "Revert");  | 
|---|
 | 343 | +            revertButton = AddButton(secondrowPanel, "Revert");  | 
|---|
| 324 | 344 |  //        oe.ctrlPanel.add(epsequal = new JCheckBox("Eps", spring.IsEpsEqual()), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 325 | 345 |  //        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 326 |  | -            epsequal = AddCheckBox(oe, "Eps", spring.IsEpsEqual());  | 
|---|
 | 346 | +            epsequal = AddCheckBox(secondrowPanel, "Eps", spring.IsEpsEqual());  | 
|---|
| 327 | 347 |  //        oe.ctrlPanel.add(linkUV = new JCheckBox("link UV", spring.IsLinkUV()), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 328 | 348 |  //        ObjEditor.aConstraints.gridy += 1; | 
|---|
| 329 | 349 |  //        ObjEditor.aConstraints.gridx = 0; | 
|---|
| 330 |  | -            linkUV = AddCheckBox(oe, "UV", spring.IsLinkUV());  | 
|---|
 | 350 | +            linkUV = AddCheckBox(secondrowPanel, "UV", spring.IsLinkUV());  | 
|---|
| 331 | 351 |  //        oe.ctrlPanel.add(poseCB = new JCheckBox("Change:", spring.IsPoseMesh()), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 332 | 352 |  //        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 333 |  | -            poseCB = AddCheckBox(oe, "Loop", spring.IsPoseMesh());  | 
|---|
 | 353 | +            poseCB = AddCheckBox(secondrowPanel, "Loop", spring.IsPoseMesh());  | 
|---|
| 334 | 354 |  //	oe.ctrlPanel.add(poseButton = new cButton("Pose"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 335 | 355 |  //        ObjEditor.aConstraints.gridy += 1; | 
|---|
| 336 | 356 |  //        ObjEditor.aConstraints.gridx = 0; | 
|---|
| 337 |  | -            poseButton = AddButton(oe, "Pose");  | 
|---|
| 338 |  | -            Return();  | 
|---|
| 339 |  | -          | 
|---|
| 340 |  | -            poseField = AddSlider(oe.ctrlPanel, "Pose:", 0, spring.posegroup==null?0:spring.posegroup.size()-1, spring.poseid);  | 
|---|
| 341 |  | -            Return();  | 
|---|
 | 357 | +            poseButton = AddButton(secondrowPanel, "Pose");  | 
|---|
| 342 | 358 |               | 
|---|
 | 359 | +        oe.ctrlPanel.add(secondrowPanel);  | 
|---|
 | 360 | +        oe.ctrlPanel.Return();  | 
|---|
 | 361 | +          | 
|---|
 | 362 | +                posePanel = AddSlider(oe.ctrlPanel, "Pose:", 0, spring.posegroup==null?0:spring.posegroup.size()-1, spring.poseid);  | 
|---|
 | 363 | +          | 
|---|
 | 364 | +            poseField = (cNumberSlider)posePanel.getComponent(1);  | 
|---|
 | 365 | +        oe.ctrlPanel.Return();  | 
|---|
 | 366 | +              | 
|---|
 | 367 | +        thirdrowPanel = new cGridBag();  | 
|---|
 | 368 | +          | 
|---|
| 343 | 369 |  //        oe.ctrlPanel.add(solid = new JCheckBox("Solid", spring.IsSolid()), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 344 | 370 |  //        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 345 |  | -            solid = AddCheckBox(oe, "3D", spring.IsSolid());  | 
|---|
 | 371 | +            solid = AddCheckBox(thirdrowPanel, "3D", spring.IsSolid());  | 
|---|
| 346 | 372 |  //        oe.ctrlPanel.add(soft = new JCheckBox("Soft", spring.IsSoft()), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 347 | 373 |  //        ObjEditor.aConstraints.gridy += 1; | 
|---|
| 348 | 374 |  //        ObjEditor.aConstraints.gridx = 0; | 
|---|
| 349 |  | -            soft = AddCheckBox(oe, "Soft", spring.IsSoft());  | 
|---|
 | 375 | +            soft = AddCheckBox(thirdrowPanel, "Soft", spring.IsSoft());  | 
|---|
| 350 | 376 |  //        oe.ctrlPanel.add(fold = new JCheckBox("Fold", spring.IsFold()), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 351 | 377 |  //        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 352 |  | -            fold = AddCheckBox(oe, "Fold", spring.IsFold());  | 
|---|
 | 378 | +            fold = AddCheckBox(thirdrowPanel, "Fold", spring.IsFold());  | 
|---|
| 353 | 379 |  //        oe.ctrlPanel.add(unfold = new JCheckBox("Unfold", spring.IsUnfold()), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 354 | 380 |  //        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 355 |  | -            unfold = AddCheckBox(oe, "Unf", spring.IsUnfold());  | 
|---|
 | 381 | +            unfold = AddCheckBox(thirdrowPanel, "Unf", spring.IsUnfold());  | 
|---|
| 356 | 382 |  //        oe.ctrlPanel.add(normalizeCounts = new JCheckBox("Counts", spring.IsNormalize()), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 357 | 383 |  //        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 358 | 384 |  //        ObjEditor.aConstraints.gridy += 1; | 
|---|
| 359 | 385 |  //        ObjEditor.aConstraints.gridx = 0; | 
|---|
| 360 |  | -            normalizeCounts = AddCheckBox(oe, "Cnt", spring.IsNormalize());  | 
|---|
 | 386 | +            normalizeCounts = AddCheckBox(thirdrowPanel, "Cnt", spring.IsNormalize());  | 
|---|
| 361 | 387 |  // Invariants?...        oe.ctrlPanel.add(updatehandles = new JCheckBox("Update handles", spring.IsUpdateHandles()), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 362 | 388 |  //        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 363 | 389 |   | 
|---|
| 364 |  | -            Return();  | 
|---|
 | 390 | +        oe.ctrlPanel.add(thirdrowPanel);  | 
|---|
 | 391 | +        oe.ctrlPanel.Return();  | 
|---|
| 365 | 392 |  //	oe.ctrlPanel.add(freezeButton = new cButton(" Freeze "), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| 366 | 393 |  //        ObjEditor.aConstraints.gridx += 1; | 
|---|
| 367 | 394 |  //	oe.ctrlPanel.add(stepButton = new cButton(" Step "), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2); | 
|---|
| .. | .. | 
|---|
| 595 | 622 |      { | 
|---|
| 596 | 623 |          ObjEditor oe = objEditor; | 
|---|
| 597 | 624 |   | 
|---|
| 598 |  | -                Remove(stiffnessField);  | 
|---|
| 599 |  | -                Remove(massField);  | 
|---|
| 600 |  | -                Remove(gravityField);  | 
|---|
| 601 |  | -                Remove(normalField);  | 
|---|
| 602 |  | -                Remove(limitField);  | 
|---|
| 603 |  | -                Remove(restlengthField);  | 
|---|
| 604 |  | -                Remove(distortionField);  | 
|---|
| 605 |  | -                Remove(viscosityField);  | 
|---|
| 606 |  | -                Remove(fluidspeedField);  | 
|---|
| 607 |  | -                Remove(liftField);  | 
|---|
| 608 |  | -                Remove(frictionField);  | 
|---|
| 609 |  | -                Remove(timestepField);  | 
|---|
| 610 |  | -                Remove(poseslownessField);  | 
|---|
| 611 |  | -                Remove(dampingField);  | 
|---|
| 612 |  | -                Remove(solidityField);  | 
|---|
 | 625 | +//                Remove(stiffnessField);  | 
|---|
 | 626 | +//                Remove(massField);  | 
|---|
 | 627 | +//                Remove(gravityField);  | 
|---|
 | 628 | +//                Remove(normalField);  | 
|---|
 | 629 | +//                Remove(limitField);  | 
|---|
 | 630 | +//                Remove(restlengthField);  | 
|---|
 | 631 | +//                Remove(distortionField);  | 
|---|
 | 632 | +//                Remove(viscosityField);  | 
|---|
 | 633 | +//                Remove(fluidspeedField);  | 
|---|
 | 634 | +//                Remove(liftField);  | 
|---|
 | 635 | +//                Remove(frictionField);  | 
|---|
 | 636 | +//                Remove(timestepField);  | 
|---|
 | 637 | +//                Remove(poseslownessField);  | 
|---|
 | 638 | +//                Remove(dampingField);  | 
|---|
 | 639 | +//                Remove(solidityField);  | 
|---|
 | 640 | +                objEditor.ctrlPanel.remove(firstrowPanel);  | 
|---|
 | 641 | +                objEditor.ctrlPanel.remove(secondrowPanel);  | 
|---|
 | 642 | +                objEditor.ctrlPanel.remove(thirdrowPanel);  | 
|---|
 | 643 | +                objEditor.ctrlPanel.remove(stiffnessPanel);  | 
|---|
 | 644 | +                objEditor.ctrlPanel.remove(massPanel);  | 
|---|
 | 645 | +                objEditor.ctrlPanel.remove(gravityPanel);  | 
|---|
 | 646 | +                objEditor.ctrlPanel.remove(normalPanel);  | 
|---|
 | 647 | +                objEditor.ctrlPanel.remove(limitPanel);  | 
|---|
 | 648 | +                objEditor.ctrlPanel.remove(restlengthPanel);  | 
|---|
 | 649 | +                objEditor.ctrlPanel.remove(distortionPanel);  | 
|---|
 | 650 | +                objEditor.ctrlPanel.remove(viscosityPanel);  | 
|---|
 | 651 | +                objEditor.ctrlPanel.remove(fluidspeedPanel);  | 
|---|
 | 652 | +                objEditor.ctrlPanel.remove(liftPanel);  | 
|---|
 | 653 | +                objEditor.ctrlPanel.remove(frictionPanel);  | 
|---|
 | 654 | +                objEditor.ctrlPanel.remove(timestepPanel);  | 
|---|
 | 655 | +                objEditor.ctrlPanel.remove(poseslownessPanel);  | 
|---|
 | 656 | +                objEditor.ctrlPanel.remove(dampingPanel);  | 
|---|
 | 657 | +                objEditor.ctrlPanel.remove(solidityPanel);  | 
|---|
 | 658 | +                objEditor.ctrlPanel.remove(posePanel);  | 
|---|
| 613 | 659 |  //        stiffnessField.removeChangeListener(this); | 
|---|
| 614 | 660 |  //        massField.removeChangeListener(this); | 
|---|
| 615 | 661 |  //        gravityField.removeChangeListener(this); | 
|---|
| .. | .. | 
|---|
| 754 | 800 |      cNumberSlider massField; | 
|---|
| 755 | 801 |      cNumberSlider gravityField; | 
|---|
| 756 | 802 |      cNumberSlider normalField; | 
|---|
| 757 |  | -    cNumberSlider mgravityField;  | 
|---|
| 758 | 803 |      cNumberSlider fluidspeedField; | 
|---|
| 759 | 804 |      cNumberSlider viscosityField; | 
|---|
| 760 |  | -    cNumberSlider floorField;  | 
|---|
| 761 | 805 |      cNumberSlider limitField; | 
|---|
| 762 | 806 |      cNumberSlider restlengthField; | 
|---|
| 763 | 807 |      cNumberSlider distortionField; | 
|---|
| .. | .. | 
|---|
| 770 | 814 |   | 
|---|
| 771 | 815 |      cNumberSlider poseField; | 
|---|
| 772 | 816 |       | 
|---|
 | 817 | +    cGridBag firstrowPanel;  | 
|---|
 | 818 | +    cGridBag secondrowPanel;  | 
|---|
 | 819 | +    cGridBag thirdrowPanel;  | 
|---|
 | 820 | +      | 
|---|
 | 821 | +        cGridBag stiffnessPanel;  | 
|---|
 | 822 | +        cGridBag massPanel;  | 
|---|
 | 823 | +        cGridBag gravityPanel;  | 
|---|
 | 824 | +        cGridBag normalPanel;  | 
|---|
 | 825 | +        cGridBag fluidspeedPanel;  | 
|---|
 | 826 | +        cGridBag viscosityPanel;  | 
|---|
 | 827 | +        cGridBag limitPanel;  | 
|---|
 | 828 | +        cGridBag restlengthPanel;  | 
|---|
 | 829 | +        cGridBag distortionPanel;  | 
|---|
 | 830 | +        cGridBag dampingPanel;  | 
|---|
 | 831 | +        cGridBag frictionPanel;  | 
|---|
 | 832 | +        cGridBag liftPanel;  | 
|---|
 | 833 | +        cGridBag poseslownessPanel;  | 
|---|
 | 834 | +        cGridBag solidityPanel;  | 
|---|
 | 835 | +        cGridBag timestepPanel;  | 
|---|
 | 836 | +        cGridBag posePanel;  | 
|---|
 | 837 | +          | 
|---|
| 773 | 838 |  //    JCheckBox animate; | 
|---|
| 774 | 839 |      JCheckBox thick; | 
|---|
| 775 | 840 |      JCheckBox single; | 
|---|