Attach the arraybuffer of ajax-loaded data as the X.object.filedata property.
Add a getter/setter for the textureCoordinateMap.
XY2IJK coordinates work in progress.
X.renderer2D.xy2ijk(x,y) to convert from canvas coordinates to volume coordinates works.

TODO: Strange offset after panning.
WIP for IJK coords when the image was rotated.
Enhance the xy2ijk conversion code and enable SliceNavigators.

It is now possible to hold 'shift' while moving over a 2D renderer to control the perpendicular slices as well. This is accompanied by "slice navigators" which are shown as a cross-hair.

Unfortunately, the ijk2xy conversion (the heart of this commit) still has problems when a sliceview was rotated or panned.
Fix padding in connection with the xy2ijk functionality.
Reduce code duplication by adjusting the array indices depending on the renderer orientation.
Fix compilation and clean-up code.

Note: Rotating a 2D viewer is not working in connection with the xy2ijk function and won't be fixed because rotating soon will be deprecated.
Merge branch 'ijk'
Remove object from renderer.
Always clear canvas (also after last object was removed).
Allow to remove objects that just group other objects.
Fixed some minor issues and cleanup.
Merge pull request #113 from medihack/remove

Allow to remove objects from running renderer.
Export the X.renderer3D.remove(object) function and some minor clean-up.
Setting the visibility of X.volumes did not work properly.

The reason was that injects in the constructor overwrote any prototype defined getters/setters and therefor the special case of the visible-setter for X.volumes was fully ignored. The inject functionality now checks if a setter was previously defined on the prototype and then does not replace it.
Also add X.volume.visible getter since the inject method does not inject getters if a setter was defined.
Enable filtering of labelmaps to show only one label.

Example:

var v = new X.volume();
v.file = 'test.nrrd';
v.labelmap.file = 'seg.nrrd';
v.labelmap.colortable.file = 'colors.txt';

v.labelmap.showOnly = 3; // show only label value 3
// or
v.labelmap.showOnly = [1,0,0,1]; // show only the fully red label
Support the X.volume.labelmap.showOnly property in a X.renderer2D.