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
|
Rev | Line | |
---|
[77] | 1 | package com.framsticks.model; |
---|
| 2 | |
---|
| 3 | |
---|
[86] | 4 | import com.framsticks.params.annotations.FramsClassAnnotation; |
---|
| 5 | import com.framsticks.params.annotations.ParamAnnotation; |
---|
[84] | 6 | import com.framsticks.util.math.Point3d; |
---|
[77] | 7 | |
---|
| 8 | /** |
---|
| 9 | * The Class Part. |
---|
| 10 | */ |
---|
[86] | 11 | @FramsClassAnnotation(id = "p") |
---|
[90] | 12 | public class Part extends BasePart implements ModelComponent { |
---|
[77] | 13 | |
---|
[105] | 14 | @ParamAnnotation(id = "rx") |
---|
| 15 | public double rotationX; |
---|
[77] | 16 | |
---|
[105] | 17 | @ParamAnnotation(id = "ry") |
---|
| 18 | public double rotationY; |
---|
[86] | 19 | |
---|
[105] | 20 | @ParamAnnotation(id = "rz") |
---|
| 21 | public double rotationZ; |
---|
[77] | 22 | |
---|
[105] | 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 | |
---|
[86] | 26 | @ParamAnnotation(id = "dn") |
---|
| 27 | public double density; |
---|
[77] | 28 | |
---|
[86] | 29 | @ParamAnnotation(id = "ing") |
---|
| 30 | public double ingestion; |
---|
[77] | 31 | |
---|
[86] | 32 | @ParamAnnotation(id = "as") |
---|
| 33 | public double assimilation; |
---|
[77] | 34 | |
---|
[86] | 35 | @ParamAnnotation(id = "i") |
---|
[77] | 36 | public String info; |
---|
| 37 | |
---|
[86] | 38 | @ParamAnnotation(id = "Vstyle") |
---|
[77] | 39 | public String visualizationStyle; |
---|
| 40 | |
---|
[86] | 41 | @ParamAnnotation(id = "vs") |
---|
| 42 | public double visualThickness; |
---|
[77] | 43 | |
---|
[86] | 44 | @ParamAnnotation |
---|
| 45 | public double vr, vg, vb; |
---|
[77] | 46 | |
---|
| 47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.