Permalink
Browse files

Ready for switch to github.

  • Loading branch information...
Daniel Haehn
Daniel Haehn committed Jun 4, 2012
1 parent aad3816 commit b7a69d68a38b1acd31756bd6e19d98f4db076fd7
View
@@ -7,7 +7,7 @@ window.onload = function() {
// create a cube
cube = new X.cube();
// skin it..
cube.texture.file = 'http://lessons.goxtk.com/data/xtk.png';
cube.texture.file = 'http://x.babymri.org/?f=xtk.png';
r.add(cube); // add the cube to the renderer
r.render(); // ..and render it
View
@@ -7,7 +7,7 @@ window.onload = function() {
// create a new X.mesh
var porsche = new X.mesh();
// .. and associate the .stl to it
porsche.file = 'http://lessons.goXTK.com/data/porsche.stl';
porsche.file = 'http://x.babymri.org/?f=porsche.stl';
// activate the magic mode which results in a colorful rendering since the
// point colors are based on the point position
porsche.magicmode = true;
View
@@ -7,7 +7,7 @@ window.onload = function() {
// create a new X.mesh
var skull = new X.mesh();
// .. and associate the .vtk file to it
skull.file = 'http://lessons.goXTK.com/data/skull.vtk';
skull.file = 'http://x.babymri.org/?f=skull.vtk';
// .. make it transparent
skull.opacity = 0.7;
View
@@ -7,7 +7,7 @@ window.onload = function() {
// create a new X.fibers
var fibers = new X.fibers();
// .. associate the TrackVis .TRK file
fibers.file = 'http://lessons.goXTK.com/data/cc_tracks.trk';
fibers.file = 'http://x.babymri.org/?f=cc_tracks.trk';
fibers.caption = 'The Corpus Callosum:<br>connecting the two hemispheres<br>of the human brain.';
// .. add the fibers
View
@@ -22,7 +22,7 @@ window.onload = function() {
// create a new X.mesh and attach a .VTK file
var mesh = new X.mesh();
mesh.file = 'http://lessons.goXTK.com/data/avf.vtk';
mesh.file = 'http://x.babymri.org/?f=avf.vtk';
// .. but add it to only to the first renderer
r1.add(mesh);
View
@@ -7,20 +7,20 @@ window.onload = function() {
// create new X.fibers
var f = new X.fibers();
// .. and attach a file
f.file = 'http://lessons.goXTK.com/data/streamline.trk';
f.file = 'http://x.babymri.org/?f=streamline.trk';
// create the left hemisphere mesh
var lh = new X.mesh();
// .. attach a Freesurfer .smoothwm mesh
lh.file = 'http://lessons.goXTK.com/data/lh.smoothwm';
lh.file = 'http://x.babymri.org/?f=lh.smoothwm';
// change the color to a smooth red
lh.color = [0.7, 0.2, 0.2];
// add some transparency
lh.opacity = 0.6;
// ... and for the right hemisphere
var rh = new X.mesh();
rh.file = 'http://lessons.goXTK.com/data/rh.smoothwm';
rh.file = 'http://x.babymri.org/?f=rh.smoothwm';
// a smooth green color for this one
rh.color = [0, 0.7, 0];
// add some transparency
View
@@ -6,7 +6,7 @@ window.onload = function() {
// create a mesh and associate it to the VTK Point Data
var p = new X.mesh();
p.file = 'http://lessons.goXTK.com/data/pits.vtk';
p.file = 'http://x.babymri.org/?f=pits.vtk';
// add the points
r.add(p);
View
@@ -9,12 +9,12 @@ window.onload = function() {
// .. and attach the single-file dicom in .NRRD format
// this works with gzip/gz/raw encoded NRRD files but XTK also supports other
// formats like MGH/MGZ
volume.file = 'http://lessons.goXTK.com/data/avf.nrrd';
volume.file = 'http://x.babymri.org/?f=avf.nrrd';
// the segmentation is a X.mesh
var mesh = new X.mesh();
// .. and is loaded from a .VTK file
mesh.file = 'http://lessons.goXTK.com/data/avf.vtk';
mesh.file = 'http://x.babymri.org/?f=avf.vtk';
// we set the color to a lighter red
mesh.color = [0.7, 0, 0];
// and also set the visibility to false, since we add a 'load-on-demand'
View
@@ -9,11 +9,11 @@ window.onload = function() {
// .. and attach the single-file dicom in .NRRD format
// this works with gzip/gz/raw encoded NRRD files but XTK also supports other
// formats like MGH/MGZ
volume.file = 'http://lessons.goXTK.com/data/vol.nrrd';
volume.file = 'http://x.babymri.org/?f=vol.nrrd';
// we also attach a label map to show segmentations on a slice-by-slice base
volume.labelmap.file = 'http://lessons.goXTK.com/data/seg.nrrd';
volume.labelmap.file = 'http://x.babymri.org/?f=seg.nrrd';
// .. and use a color table to map the label map values to colors
volume.labelmap.colortable.file = 'http://lessons.goXTK.com/data/genericanatomy.txt';
volume.labelmap.colortable.file = 'http://x.babymri.org/?f=genericanatomy.txt';
// add the volume
r.add(volume);
View
@@ -9,14 +9,14 @@ window.onload = function() {
// change the color to grey
mesh.color = [0.5, 0.5, 0.5];
// and attach a freesurfer mesh
mesh.file = 'http://lessons.goxtk.com/data/lefthemisphere.smoothwm';
mesh.file = 'http://x.babymri.org/?f=lefthemisphere.smoothwm';
// load curvature values from a .crv file
// it would also be possible to create an X.scalars object and
// configure an array using 'X.scalars.array = arr;' to be independent from a
// file format
// in this case we choose the 'C' curvature as the default
mesh.scalars.file = 'http://lessons.goxtk.com/data/lh.smoothwm.C.crv';
mesh.scalars.file = 'http://x.babymri.org/?f=lh.smoothwm.C.crv';
// we want to map the scalars linear between blue and white
mesh.scalars.minColor = [0, 0, 1];
mesh.scalars.maxColor = [1, 1, 1];
@@ -105,7 +105,7 @@ window.onload = function() {
var oldMaxColor = mesh.scalars.maxColor;
// now we (re-)load the selected curvature file
mesh.scalars.file = 'http://lessons.goxtk.com/data/' +
mesh.scalars.file = 'http://x.babymri.org/?f=' +
curvatureFiles[_index];
mesh.modified();
View
@@ -43,11 +43,11 @@ window.onload = function() {
// .. and attach the single-file dicom in .NRRD format
// this works with gzip/gz/raw encoded NRRD files but XTK also supports other
// formats like MGH/MGZ
volume.file = 'http://lessons.goXTK.com/data/vol.nrrd';
volume.file = 'http://x.babymri.org/?f=vol.nrrd';
// we also attach a label map to show segmentations on a slice-by-slice base
volume.labelmap.file = 'http://lessons.goXTK.com/data/seg.nrrd';
volume.labelmap.file = 'http://x.babymri.org/?f=seg.nrrd';
// .. and use a color table to map the label map values to colors
volume.labelmap.colortable.file = 'http://lessons.goXTK.com/data/genericanatomy.txt';
volume.labelmap.colortable.file = 'http://x.babymri.org/?f=genericanatomy.txt';
// add the volume in the main renderer
// we choose the sliceX here, since this should work also on
View
1 CNAME
@@ -0,0 +1 @@
lessons.goxtk.com
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit b7a69d6

Please sign in to comment.