|
957 | 957 | ARController.prototype.setLogLevel = function (mode) { |
958 | 958 | return artoolkit.setLogLevel(mode); |
959 | 959 | }; |
| 960 | + |
960 | 961 | /** |
961 | 962 | Gets the logging level used by ARToolKit. |
| 963 | + @return {number} return the log level in use. |
962 | 964 | */ |
963 | 965 | ARController.prototype.getLogLevel = function () { |
964 | 966 | return artoolkit.getLogLevel(); |
965 | 967 | }; |
| 968 | + |
966 | 969 | /** |
967 | 970 | Sets the dir (direction) of the marker. Direction that tells about the rotation |
968 | 971 | about the marker (possible values are 0, 1, 2 or 3). |
|
971 | 974 | This is important to compute the transformation matrix in arGetTransMat(). |
972 | 975 | @param {number} markerIndex the index of the marker |
973 | 976 | @param {number} dir direction of the marker (possible values are 0, 1, 2 or 3). |
| 977 | + @return {number} 0 (void) |
974 | 978 | */ |
975 | 979 | ARController.prototype.setMarkerInfoDir = function (markerIndex, dir) { |
976 | 980 | return artoolkit.setMarkerInfoDir(this.id, markerIndex, dir); |
977 | 981 | }; |
978 | 982 |
|
| 983 | + /** |
| 984 | + Sets the value of the near plane of the camera. |
| 985 | + @param {number} value the value of the near plane |
| 986 | + @return {number} 0 (void) |
| 987 | + */ |
979 | 988 | ARController.prototype.setProjectionNearPlane = function (value) { |
980 | 989 | return artoolkit.setProjectionNearPlane(this.id, value); |
981 | 990 | }; |
982 | 991 |
|
| 992 | + /** |
| 993 | + Gets the value of the near plane of the camera with the give id. |
| 994 | + @return {number} the value of the near plane. |
| 995 | + */ |
983 | 996 | ARController.prototype.getProjectionNearPlane = function () { |
984 | 997 | return artoolkit.getProjectionNearPlane(this.id); |
985 | 998 | }; |
986 | 999 |
|
| 1000 | + /** |
| 1001 | + Sets the value of the far plane of the camera. |
| 1002 | + @param {number} value the value of the far plane |
| 1003 | + @return {number} 0 (void) |
| 1004 | + */ |
987 | 1005 | ARController.prototype.setProjectionFarPlane = function (value) { |
988 | 1006 | return artoolkit.setProjectionFarPlane(this.id, value); |
989 | 1007 | }; |
990 | 1008 |
|
| 1009 | + /** |
| 1010 | + Gets the value of the far plane of the camera with the give id. |
| 1011 | + @return {number} the value of the far plane. |
| 1012 | + */ |
991 | 1013 | ARController.prototype.getProjectionFarPlane = function () { |
992 | 1014 | return artoolkit.getProjectionFarPlane(this.id); |
993 | 1015 | }; |
|
0 commit comments