Ignore:
Timestamp:
01/09/13 00:09:10 (11 years ago)
Author:
psniegowski
Message:

Add f0 parsing and f0->Model transformation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/model/Part.java

    r77 r78  
    77 * The Class Part.
    88 */
    9 public class Part {
    10 
    11         /** x, y, z*/
    12         public final Point3d position = new Point3d();
     9public class Part extends BasePart {
    1310
    1411        /** rx, ry, rz*/
    15         public final Point3d rotation = new Point3d();
     12        public double rx, ry, rz;
    1613
    17         /** m */
    18         public Double mass;
    19 
    20         /** s */
    21         public Double size;
     14        public Point3d getRotation() { return new Point3d(rx, ry, rz); }
     15        public void setRotation(Point3d r) { rx = r.x; ry = r.y; rz = r.z; }
    2216
    2317        /** dn */
    2418        public Double density;
    25 
    26         /** fr */
    27         public Double friction;
    2819
    2920        /** ing */
     
    3930        public String visualizationStyle;
    4031
    41         public Double getX() { return position.x; }
    42         public void setX(Double x) { position.x = x; }
    43 
    44         public Double getY() { return position.y; }
    45         public void setY(Double y) { position.y = y; }
    46 
    47         public Double getZ() { return position.z; }
    48         public void setZ(Double z) { position.z = z; }
    49 
    50         public Double getM() { return mass; }
    51         public void setM(Double m) { mass = m; }
    52 
    53         public Double getS() { return size; }
    54         public void setS(Double s) { size = s; }
    55 
    5632        public Double getDn() { return density; }
    5733        public void setDn(Double dn) { density = dn; }
    5834
    59         public Double getFr() { return friction; }
    60         public void setFr(Double fr) { friction = fr; }
    6135
    6236        public Double getIng() { return ingestion; }
     
    6539        public Double getAs() { return assimilation; }
    6640        public void setAs(Double as) { assimilation = as; }
    67 
    68         public Double getRx() { return rotation.x; }
    69         public void setRx(Double rx) { rotation.x = rx; }
    70 
    71         public Double getRy() { return rotation.y; }
    72         public void setRy(Double ry) { rotation.y = ry; }
    73 
    74         public Double getRz() { return rotation.z; }
    75         public void setRz(Double rz) { rotation.z = rz; }
    7641
    7742        public String getI() { return info; }
Note: See TracChangeset for help on using the changeset viewer.