Program: bbtk
Module: $RCSfile: bbitkImageProperties.cxx,v $
Language: C++
- Date: $Date: 2009/07/23 12:27:35 $
- Version: $Revision: 1.9 $
+ Date: $Date: 2009/12/18 14:00:05 $
+ Version: $Revision: 1.10 $
=========================================================================*/
/* ---------------------------------------------------------------------
for (unsigned int i=0;i<dim;++i)
vsz.push_back(sz[i]);
- // brute hack to avoid failure of most black boxes that expects 3D images. // JPR
- if (dim<3)
- vsz.push_back(1);
+ // brute hack to avoid failure of most black boxes that expects 3D images. // JPR
+ // if (dim<3)
+ // vsz.push_back(1);
bbSetOutputSize(vsz);
for (unsigned int i=0;i<dim;++i)
vsp.push_back(sp[i]);
- // brute hack to avoid failure of most black boxes that expects 3D images. // JPR
- if (dim<3)
- vsp.push_back(1);
+ // brute hack to avoid failure of most black boxes that expects 3D images. // JPR
+ // if (dim<3)
+ // vsp.push_back(1);
bbSetOutputSpacing(vsp);
#include "vtkRenderWindowInteractor.h"
#include "vtkRenderer.h"
-vtkCxxRevisionMacro(wxvtkImageViewer2, "$Revision: 1.2 $");
+vtkCxxRevisionMacro(wxvtkImageViewer2, "$Revision: 1.3 $");
vtkStandardNewMacro(wxvtkImageViewer2);
//----------------------------------------------------------------------------
double range = fabs(spos - cpos);
double *spacing = input->GetSpacing();
double avg_spacing =
- (spacing[0] + spacing[1] + spacing[2]) / 3.0;
+ //(spacing[0] + spacing[1] + spacing[2]) / 3.0;
+ spacing[2]; // JPR??
cam->SetClippingRange(
range - avg_spacing * 3.0, range + avg_spacing * 3.0);
}