source: js/viewer-f0/js/Structures/Joint.js @ 134

Last change on this file since 134 was 134, checked in by mmichalski, 10 years ago

First version of viewer without neuron part - fix

File size: 1.3 KB
Line 
1function Joint() {
2    //this.groups = [];//tabliza z nazwami grup
3    //this._properties = {};//obiekt z propertisami
4    //this._context = "";
5}
6
7Joint.prototype = new Model();
8
9Joint.prototype.getType = function()
10{
11    return parseInt(this._properties["sh"]["VALUE"]);
12}
13
14Joint.prototype.getP1 = function()
15{
16    return parseInt(this._properties["p1"]["VALUE"]);
17}
18
19Joint.prototype.getP2 = function()
20{
21    return parseInt(this._properties["p2"]["VALUE"]);
22}
23
24Joint.prototype.getR = function(){
25    return parseFloat(this._properties["vr"]["VALUE"]);
26}
27
28Joint.prototype.getG = function(){
29    return parseFloat(this._properties["vg"]["VALUE"]);
30}
31
32Joint.prototype.getB = function(){
33    return parseFloat(this._properties["vb"]["VALUE"]);
34}
35
36Joint.prototype.getXrot = function()
37{
38    return parseFloat(this._properties["rx"]["VALUE"]);
39}
40
41Joint.prototype.getYrot = function()
42{
43    return parseFloat(this._properties["ry"]["VALUE"]);
44}
45
46Joint.prototype.getZrot = function()
47{
48    return parseFloat(this._properties["rz"]["VALUE"]);
49}
50
51Joint.prototype.getXtran = function()
52{
53    return parseFloat(this._properties["dx"]["VALUE"]);
54}
55
56Joint.prototype.getYtran = function()
57{
58    return parseFloat(this._properties["dy"]["VALUE"]);
59}
60
61Joint.prototype.getZtran = function()
62{
63    return parseFloat(this._properties["dz"]["VALUE"]);
64}
Note: See TracBrowser for help on using the repository browser.