source: java/main/src/main/java/com/framsticks/model/Part.java @ 193

Last change on this file since 193 was 193, checked in by Maciej Komosinski, 10 years ago

Set svn:eol-style native for all textual files

  • Property svn:eol-style set to native
File size: 1.0 KB
Line 
1package com.framsticks.model;
2
3
4import com.framsticks.params.annotations.FramsClassAnnotation;
5import com.framsticks.params.annotations.ParamAnnotation;
6import com.framsticks.util.math.Point3d;
7
8/**
9 * The Class Part.
10 */
11@FramsClassAnnotation(id = "p")
12public class Part extends BasePart implements ModelComponent {
13
14        @ParamAnnotation(id = "rx")
15        public double rotationX;
16
17        @ParamAnnotation(id = "ry")
18        public double rotationY;
19
20        @ParamAnnotation(id = "rz")
21        public double rotationZ;
22
23        public Point3d getRotation() { return new Point3d(rotationX, rotationY, rotationZ); }
24        public void setRotation(Point3d r) { rotationX = r.x; rotationY = r.y; rotationZ = r.z; }
25
26        @ParamAnnotation(id = "dn")
27        public double density;
28
29        @ParamAnnotation(id = "ing")
30        public double ingestion;
31
32        @ParamAnnotation(id = "as")
33        public double assimilation;
34
35        @ParamAnnotation(id = "i")
36        public String info;
37
38        @ParamAnnotation(id = "Vstyle")
39        public String visualizationStyle;
40
41        @ParamAnnotation(id = "vs")
42        public double visualThickness;
43
44        @ParamAnnotation
45        public double vr, vg, vb;
46
47}
Note: See TracBrowser for help on using the repository browser.