Commit in GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd/util on MAIN | |||
PhysVol.java | +7 | 1.2 -> 1.3 |
Add capability to set position of PhysVol.
diff -u -r1.2 -r1.3 --- PhysVol.java 8 Mar 2005 01:45:37 -0000 1.2 +++ PhysVol.java 25 Aug 2005 07:53:48 -0000 1.3 @@ -46,6 +46,13 @@
} position.setZ(z); }
+ + public void setPosition(Position pos) + { + Element positionRef = getChild("positionref"); + positionRef.setAttribute("ref", pos.getRefName()); + } +
public void setRotation(Rotation rot) { Element rotationRef = getChild("rotationref");