Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxTransformEigenAddons.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
13 /*
14  * sscTransformEigenAddons.h
15  *
16  * Plugin extension for the eigen::Transform type
17  *
18  *
19  * Created on: Apr 24, 2011
20  * Author: christiana
21  */
22 
23 Vector3d vector(const Vector3d& v) const;
24 Vector3d unitVector(const Vector3d& v) const;
25 Vector3d coord(const Vector3d& v) const;
26 Transform inv()
27 const;
28 boost::array<double, 16> flatten() const;
29 explicit Transform(vtkMatrix4x4* m);
30 explicit Transform(double* m);
32 const;
34 const;
35 std::ostream& put(std::ostream& s, int indent=0, char newline='\n') const;
36 static Transform fromString(const QString& text, bool* ok=0);
37 static Transform fromVtkMatrix(vtkMatrix4x4Ptr m);
38 static Transform fromFloatArray(float m[4][4]);
39 
vtkSmartPointer< class vtkMatrix4x4 > vtkMatrix4x4Ptr
Definition: cxMathBase.h:37
std::ostream & put(const Eigen::Affine3d *self, std::ostream &s, int indent, char newline)
boost::array< double, 16 > flatten(const Eigen::Affine3d *self)
Vector3D unitVector(double thetaXY, double thetaZ)
compute a unit vector given angles xy in the xy plane and z meaning the elevation from the xy plane...
Definition: cxVector3D.cpp:56
vtkSmartPointer< class vtkTransform > vtkTransformPtr
Definition: cxMathBase.h:41
vtkMatrix4x4Ptr getVtkMatrix(const Eigen::Affine3d *self)
Eigen::Affine3d fromString(const QString &text, bool *_ok)
vtkTransformPtr getVtkTransform(const Eigen::Affine3d *self)