------------------------------------------------------------------------------
| 27 | |
| 28 | //------------------------------------------------------------------------------ |
| 29 | vtkImageData::vtkImageData() |
| 30 | { |
| 31 | for (int idx = 0; idx < 3; ++idx) |
| 32 | { |
| 33 | this->Increments[idx] = 0; |
| 34 | this->Origin[idx] = 0.0; |
| 35 | this->Spacing[idx] = 1.0; |
| 36 | } |
| 37 | |
| 38 | this->DirectionMatrix = vtkMatrix3x3::New(); |
| 39 | this->DirectionMatrixIsIdentity = true; |
| 40 | this->IndexToPhysicalMatrix = vtkMatrix4x4::New(); |
| 41 | this->PhysicalToIndexMatrix = vtkMatrix4x4::New(); |
| 42 | this->DirectionMatrix->Identity(); |
| 43 | this->ComputeTransforms(); |
| 44 | } |
| 45 | |
| 46 | //------------------------------------------------------------------------------ |
| 47 | vtkImageData::~vtkImageData() |