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