1 | function Part() { |
---|
2 | } |
---|
3 | |
---|
4 | Part.prototype = new Model(); |
---|
5 | |
---|
6 | Part.prototype.getType = function() |
---|
7 | { |
---|
8 | return parseInt(this._properties["sh"]["VALUE"]); |
---|
9 | } |
---|
10 | |
---|
11 | Part.prototype.getX = function() |
---|
12 | { |
---|
13 | return parseFloat(this._properties["x"]["VALUE"]); |
---|
14 | } |
---|
15 | |
---|
16 | Part.prototype.getY = function() |
---|
17 | { |
---|
18 | return parseFloat(this._properties["y"]["VALUE"]); |
---|
19 | } |
---|
20 | |
---|
21 | Part.prototype.getZ = function() |
---|
22 | { |
---|
23 | return parseFloat(this._properties["z"]["VALUE"]); |
---|
24 | } |
---|
25 | |
---|
26 | Part.prototype.getR = function(){ |
---|
27 | return parseFloat(this._properties["vr"]["VALUE"]); |
---|
28 | } |
---|
29 | |
---|
30 | Part.prototype.getG = function(){ |
---|
31 | return parseFloat(this._properties["vg"]["VALUE"]); |
---|
32 | } |
---|
33 | |
---|
34 | Part.prototype.getB = function(){ |
---|
35 | return parseFloat(this._properties["vb"]["VALUE"]); |
---|
36 | } |
---|
37 | |
---|
38 | Part.prototype.getXshape = function() |
---|
39 | { |
---|
40 | return parseFloat(this._properties["sx"]["VALUE"]); |
---|
41 | } |
---|
42 | |
---|
43 | Part.prototype.getYshape = function() |
---|
44 | { |
---|
45 | return parseFloat(this._properties["sy"]["VALUE"]); |
---|
46 | } |
---|
47 | |
---|
48 | Part.prototype.getZshape = function() |
---|
49 | { |
---|
50 | return parseFloat(this._properties["sz"]["VALUE"]); |
---|
51 | } |
---|
52 | |
---|
53 | Part.prototype.getXrot = function() |
---|
54 | { |
---|
55 | return parseFloat(this._properties["rx"]["VALUE"]); |
---|
56 | } |
---|
57 | |
---|
58 | Part.prototype.getYrot = function() |
---|
59 | { |
---|
60 | return parseFloat(this._properties["ry"]["VALUE"]); |
---|
61 | } |
---|
62 | |
---|
63 | Part.prototype.getZrot = function() |
---|
64 | { |
---|
65 | return parseFloat(this._properties["rz"]["VALUE"]); |
---|
66 | } |
---|
67 | |
---|
68 | Part.prototype.getRadius = function() |
---|
69 | { |
---|
70 | return parseFloat(this._properties["s"]["VALUE"]); |
---|
71 | } |
---|