Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkOrientedImageData.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
4  Queen's University, Kingston, ON, Canada. All Rights Reserved.
5 
6  See COPYRIGHT.txt
7  or http://www.slicer.org/copyright/copyright.txt for details.
8 
9  Unless required by applicable law or agreed to in writing, software
10  distributed under the License is distributed on an "AS IS" BASIS,
11  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  See the License for the specific language governing permissions and
13  limitations under the License.
14 
15  This file was originally developed by Csaba Pinter, PerkLab, Queen's University
16  and was supported through the Applied Cancer Research Unit program of Cancer Care
17  Ontario with funds provided by the Ontario Ministry of Health and Long-Term Care
18 
19 ==============================================================================*/
20 
21 #ifndef __vtkOrientedImageData_h
22 #define __vtkOrientedImageData_h
23 
24 // Segmentation includes
25 #include "vtkSegmentationCoreConfigure.h"
26 
27 #include "vtkImageData.h"
28 
29 class vtkMatrix4x4;
30 
36 class vtkSegmentationCore_EXPORT vtkOrientedImageData : public vtkImageData
37 {
38 public:
39  static vtkOrientedImageData *New();
40  vtkTypeMacro(vtkOrientedImageData,vtkImageData);
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44  void ShallowCopy(vtkDataObject *src) override;
46  void DeepCopy(vtkDataObject *src) override;
48  virtual void CopyDirections(vtkDataObject *src);
49 
50 public:
52  void SetDirections(double dirs[3][3]);
54  void SetDirections(double ir, double ia, double is,
55  double jr, double ja, double js,
56  double kr, double ka, double ks);
57 
58  void GetDirections(double dirs[3][3]);
59 
61  double GetMinSpacing();
62 
64  double GetMaxSpacing();
65 
67  using vtkImageData::GetDirectionMatrix;
68  void GetDirectionMatrix(vtkMatrix4x4* mat);
69 
71  using vtkImageData::SetDirectionMatrix;
72  void SetDirectionMatrix(vtkMatrix4x4* mat);
73 
75  void GetImageToWorldMatrix(vtkMatrix4x4* mat);
77  void SetImageToWorldMatrix(vtkMatrix4x4* mat);
79  void SetGeometryFromImageToWorldMatrix(vtkMatrix4x4* mat);
80 
82  void ComputeBounds() override;
83 
85  void GetWorldToImageMatrix(vtkMatrix4x4* mat);
86 
88  bool IsEmpty();
89 
90 protected:
92  ~vtkOrientedImageData() override;
93 
94 protected:
97  double Directions[3][3];
98 
99 private:
101  void operator=(const vtkOrientedImageData&) = delete;
102 };
103 
104 #endif
Image data containing orientation information.