Commit c103c955 authored by Bill Lorensen's avatar Bill Lorensen
Browse files

ERR: unmodified memory read in constructor. SetGet macros were being used

before ivars were initialized. Replaced with explicit assignments.
parent ba897761
......@@ -48,10 +48,12 @@ MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
// Constructor: Sets default filter to be identity.
vtkImageShrink3D::vtkImageShrink3D()
{
this->SetAxes(VTK_IMAGE_X_AXIS, VTK_IMAGE_Y_AXIS, VTK_IMAGE_Z_AXIS);
this->SetShrinkFactors(1, 1, 1);
this->SetShift(0, 0, 0);
this->AveragingOn();
this->Axes[0] = VTK_IMAGE_X_AXIS;
this->Axes[1] = VTK_IMAGE_Y_AXIS;
this->Axes[2] = VTK_IMAGE_Z_AXIS;
this->ShrinkFactors[0] = this->ShrinkFactors[1] = this->ShrinkFactors[2] = 1;
this->Shift[0] = this->Shift[1] = this->Shift[2] = 1;
this->Averaging = 1;
this->ExecuteDimensionality = 3;
// Other dimesionalities can be simulated with specific shrink factors.
......
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