Print

Print


Commit in GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd on MAIN
LCDDDetector.java+1-11.21 -> 1.22
util/LCDDFactory.java+2-21.4 -> 1.5
    /VisAttributes.java+1-11.3 -> 1.4
+4-4
3 modified files
change VisAttributes color settings to float from double

GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd
LCDDDetector.java 1.21 -> 1.22
diff -u -r1.21 -r1.22
--- LCDDDetector.java	15 Sep 2009 00:57:04 -0000	1.21
+++ LCDDDetector.java	3 Dec 2010 01:22:18 -0000	1.22
@@ -151,7 +151,7 @@
         {
         	VisAttributes lcddvis = new VisAttributes(vis.getName());
         	
-        	double rgba[] = vis.getRGBA();
+        	float rgba[] = vis.getRGBA();
         	lcddvis.setColor(rgba[0],rgba[1],rgba[2],rgba[3]);        	
         	lcddvis.setDrawingStyle(vis.getDrawingStyle());
         	lcddvis.setLineStyle(vis.getLineStyle());

GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd/util
LCDDFactory.java 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- LCDDFactory.java	12 Sep 2006 01:21:06 -0000	1.4
+++ LCDDFactory.java	3 Dec 2010 01:22:18 -0000	1.5
@@ -8,7 +8,7 @@
  * in the org.lcsim.geometry.compact.converter.lcdd.util package.
  * 
  * @author jeremym
- * @version $Id: LCDDFactory.java,v 1.4 2006/09/12 01:21:06 jeremy Exp $
+ * @version $Id: LCDDFactory.java,v 1.5 2010/12/03 01:22:18 jeremy Exp $
  */
 public final class LCDDFactory
 {
@@ -438,7 +438,7 @@
 	/** 
 	 * Create a VisAttributes with color settings. 
 	 */
-	public static VisAttributes createVisAttributes(String name, double r, double g, double b, double a)
+	public static VisAttributes createVisAttributes(String name, float r, float g, float b, float a)
 	{
 		VisAttributes vis = new VisAttributes(name);
 		vis.setColor(r,g,b,a);

GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd/util
VisAttributes.java 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- VisAttributes.java	13 Feb 2009 00:21:14 -0000	1.3
+++ VisAttributes.java	3 Dec 2010 01:22:18 -0000	1.4
@@ -58,7 +58,7 @@
 		}
 	}
 		
-	public final void setColor(double r, double g, double b, double a)
+	public final void setColor(float r, float g, float b, float a)
 	{
 		Element color = this.getChild("color");
 		color.setAttribute("R",String.valueOf(r));
CVSspam 0.2.8