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