forked from dgobbi/ToolCursor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvtkResliceMath.h
58 lines (44 loc) · 1.61 KB
/
vtkResliceMath.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*=========================================================================
Program: ToolCursor
Module: vtkResliceMath.h
Copyright (c) 2010 David Gobbi
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkResliceMath - Helper math functions
// .SECTION Description
// This class provides some math functions that are useful for the
// vtkToolCursor classes.
#ifndef __vtkResliceMath_h
#define __vtkResliceMath_h
#include "vtkObject.h"
class vtkImageReslice;
class VTK_EXPORT vtkResliceMath : public vtkObject
{
public:
// Description:
// Instantiate the object.
static vtkResliceMath *New();
// Description:
// Standard vtkObject methods
vtkTypeMacro(vtkResliceMath,vtkObject);
// Description:
// Given a plane as a 4-vector, set the axes and other information
// for a vtkImageReslice filter so that the slice will be extracted.
static void SetReslicePlane(
vtkImageReslice *reslice, const double plane[4]);
// Description:
// Given a plane as a 4-vector, generate a 4x4 matrix that can be
// used for slicing an image at that plane.
static void ConvertPlaneToResliceAxes(
const double plane[4], double matrix[16]);
protected:
vtkResliceMath() {};
~vtkResliceMath() {};
private:
vtkResliceMath(const vtkResliceMath&); //Not implemented
void operator=(const vtkResliceMath&); //Not implemented
};
#endif