[vtk-developers] No new checkins - Dashboards

Dean Inglis dean.inglis at on.aibn.com
Thu Apr 25 14:58:03 EDT 2002


Hi all,

> Please help us out. Can you keep a log of your questions, any
> answers that
> you come up with, etc. Just a simple list is enough for now. We can use
> this in the future to extend the programming guidelines and/or fix
> documentation.

ok, I am happy to do that.

>TestSetGet is not meant to verify that the Set or Get method produces the
>"correct" results, just that it doesn't crash.

>Before checking in code, you should run ctest or an Experimental Dart
dashboard.
>The Set/Get test calls Set and Get for everything blindly if the functions
are on
>the class.   This often causes crashes because the object has not been
initialized
>like the author was expecting.

oops, it slipped my mind about using the experimental dashboard.  I think I
get the TestSetGet now.

I just did an experimental and still get a fail on PrintSelf:

Standard Output: Ivar DEFECTS: vtkImagePlaneWidget does not print ivar:
RestrictPlaneToVolume Standard Error:</

what am I missing here? If I explicitly do a PrintSelf(cout,0) in a test app
the call echoes the int value for RestrictPlaneToVolume, which has one of 3
possible values.  This ivar is no different than PlaneOrientation which
appears to have no pb in PrintSelf ?

in vtkImagePlaneWidget.h:

  // Description:
  // Get the interpolation to use when texturing the plane.
  vtkGetMacro(ResliceInterpolate,int);
  void SetResliceInterpolateToNearestNeighbour();
  void SetResliceInterpolateToLinear();
  void SetResliceInterpolateToCubic();

in vtkImagePlaneWidget.cxx, PrintSelf:

  os << indent << "Plane Orientation: " << this->PlaneOrientation << "\n";
  os << indent << "Reslice Interpolate: " << this->ResliceInterpolate <<
"\n";

adding a vtkSetMacro(ResliceInterpolate,int) does not fix this pb.  If i run
c:/TCL/BIN/tclsh.exe c:/Builder/Vtk/Common/Testing/Tcl/PrintSelfCheck.tcl
c:/Builder/Vtk/Hybrid I still get
 Ivar DEFECTS:
    vtkImagePlaneWidget does not print ivar: RestrictPlaneToVolume

thanks,
Dean





More information about the vtk-developers mailing list