]> Creatis software - bbtk.git/commitdiff
load vs include
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 18 Dec 2009 14:00:05 +0000 (14:00 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 18 Dec 2009 14:00:05 +0000 (14:00 +0000)
packages/itk/src/bbitkImageProperties.cxx
packages/vtk/bbs/boxes/bbIsoSurfaceExtractor.bbs
packages/wxvtk/bbs/boxes/bbIsoSurfaceWidget.bbs
packages/wxvtk/src/wxvtkImageViewer2.cxx

index 4acf845f0f04b459068ec8b8837c4a4cf696983c..eed32093bde524554e78f053467d0e34624f510e 100644 (file)
@@ -2,8 +2,8 @@
   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 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -98,9 +98,9 @@ namespace bbitk
     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);
 
@@ -109,9 +109,9 @@ namespace bbitk
     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);
 
index a4eabf17ad92b1b271f32f5d7ef2161355153999..7f0719e87844871a8eab061da32b72c2d67bc9ed 100644 (file)
@@ -1,4 +1,4 @@
-load vtk
+include vtk
 
 # --- Box Description ---
 define IsoSurfaceExtractor vtk
index 6b9af87e7ba39a801e07c958b8b61445a2b22a2d..5655f82bf32a81625d81f908b68c9666d33c4282 100644 (file)
@@ -1,7 +1,7 @@
-load wx
-load vtk
-load std
-load wxvtk
+include wx
+include vtk
+include std
+include wxvtk
 
 define IsoSurfaceWidget wxvtk
   author "laurent.guigues@creatis.insa-lyon.fr"
index 81b022914304d6d345a41d1811d1ac53d1600f11..e0fca3a565c3ee6ebad91f7d4253ac71b9ae7480 100644 (file)
@@ -26,7 +26,7 @@
 #include "vtkRenderWindowInteractor.h"
 #include "vtkRenderer.h"
 
-vtkCxxRevisionMacro(wxvtkImageViewer2, "$Revision: 1.2 $");
+vtkCxxRevisionMacro(wxvtkImageViewer2, "$Revision: 1.3 $");
 vtkStandardNewMacro(wxvtkImageViewer2);
 
 //----------------------------------------------------------------------------
@@ -401,7 +401,8 @@ void wxvtkImageViewer2::UpdateDisplayExtent()
         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);
         }