Commit c91a56ea authored by Bill Lorensen's avatar Bill Lorensen

COMP: Remove all of the debug junk.

parent 7693d37a
......@@ -39,7 +39,6 @@
int main (int argc, char *argv[])
{
cout << "Starting...\n";
if (argc < 2)
{
cout << "Usage: " << argv[0] << " DATADIR/headsq/quarter" << endl;
......@@ -70,7 +69,6 @@ int main (int argc, char *argv[])
// reader uses the FilePrefix in combination with the slice number to
// construct filenames using the format FilePrefix.%d. (In this case
// the FilePrefix is the root name of the file: quarter.)
cout << "Begin v61\n";
vtkSmartPointer<vtkVolume16Reader> v16 =
vtkSmartPointer<vtkVolume16Reader>::New();
v16->SetDataDimensions(64,64);
......@@ -78,7 +76,6 @@ int main (int argc, char *argv[])
v16->SetDataByteOrderToLittleEndian();
v16->SetFilePrefix (argv[1]);
v16->SetDataSpacing (3.2, 3.2, 1.5);
cout << "Updating v16\n";
v16->Update();
// An isosurface, or contour value of 500 is known to correspond to
......@@ -91,20 +88,17 @@ int main (int argc, char *argv[])
vtkSmartPointer<vtkContourFilter>::New();
skinExtractor->SetInputConnection( v16->GetOutputPort());
skinExtractor->SetValue(0, 500);
cout << "Updating skinExtractor\n";
skinExtractor->Update();
vtkSmartPointer<vtkPolyDataNormals> skinNormals =
vtkSmartPointer<vtkPolyDataNormals>::New();
skinNormals->SetInputConnection(skinExtractor->GetOutputPort());
skinNormals->SetFeatureAngle(60.0);
cout << "Updating skinNormals\n";
skinNormals->Update();
vtkSmartPointer<vtkStripper> skinStripper =
vtkSmartPointer<vtkStripper>::New();
skinStripper->SetInputConnection(skinNormals->GetOutputPort());
cout << "Updating skinStripper\n";
skinStripper->Update();
vtkSmartPointer<vtkPolyDataMapper> skinMapper =
......@@ -154,7 +148,6 @@ int main (int argc, char *argv[])
vtkSmartPointer<vtkOutlineFilter> outlineData =
vtkSmartPointer<vtkOutlineFilter>::New();
outlineData->SetInputConnection(v16->GetOutputPort());
cout << "Updating outlineData\n";
outlineData->Update();
vtkSmartPointer<vtkPolyDataMapper> mapOutline =
......@@ -177,7 +170,6 @@ int main (int argc, char *argv[])
bwLut->SetSaturationRange (0, 0);
bwLut->SetHueRange (0, 0);
bwLut->SetValueRange (0, 1);
cout << "Building bwLut\n";
bwLut->Build(); //effective built
// Now create a lookup table that consists of the full hue circle
......@@ -188,7 +180,6 @@ int main (int argc, char *argv[])
hueLut->SetHueRange (0, 1);
hueLut->SetSaturationRange (1, 1);
hueLut->SetValueRange (1, 1);
cout << "Building hueLut\n";
hueLut->Build(); //effective built
// Finally, create a lookup table with a single hue but having a range
......@@ -199,7 +190,6 @@ int main (int argc, char *argv[])
satLut->SetHueRange (.6, .6);
satLut->SetSaturationRange (0, 1);
satLut->SetValueRange (1, 1);
cout << "Building satLut\n";
satLut->Build(); //effective built
// Create the first of the three planes. The filter vtkImageMapToColors
......@@ -214,7 +204,6 @@ int main (int argc, char *argv[])
vtkSmartPointer<vtkImageMapToColors>::New();
sagittalColors->SetInputConnection(v16->GetOutputPort());
sagittalColors->SetLookupTable(bwLut);
cout << "Updating sagittalColors\n";
sagittalColors->Update();
vtkSmartPointer<vtkImageActor> sagittal =
......@@ -228,7 +217,6 @@ int main (int argc, char *argv[])
vtkSmartPointer<vtkImageMapToColors>::New();
axialColors->SetInputConnection(v16->GetOutputPort());
axialColors->SetLookupTable(hueLut);
cout << "Updating axialColors\n";
axialColors->Update();
vtkSmartPointer<vtkImageActor> axial =
......@@ -242,7 +230,6 @@ int main (int argc, char *argv[])
vtkSmartPointer<vtkImageMapToColors>::New();
coronalColors->SetInputConnection(v16->GetOutputPort());
coronalColors->SetLookupTable(satLut);
cout << "Updating coronalColors\n";
coronalColors->Update();
vtkSmartPointer<vtkImageActor> coronal =
......@@ -294,15 +281,11 @@ int main (int argc, char *argv[])
// near plane clips out objects in front of the plane; the far plane
// clips out objects behind the plane. This way only what is drawn
// between the planes is actually rendered.
cout << "ResetCameraClippingRange\n";
aRenderer->ResetCameraClippingRange ();
// interact with data
cout << "Initialize\n";
iren->Initialize();
cout << "Start\n";
iren->Start();
cout << "Done\n";
return EXIT_SUCCESS;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment