CustusX  15.3.4-beta
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cxTransformEigenAddons.h File Reference

Go to the source code of this file.

Functions

Vector3d vector (const Vector3d &v) const
 transform a free vector [x,y,z,0] More...
 
Vector3d unitVector (const Vector3d &v) const
 transform a unit vector [x,y,z,0], force |v|=1 after transform. More...
 
Vector3d coord (const Vector3d &v) const
 transform a coordinate [x,y,z,1]. More...
 
Transform inv () const
 return an inverted transform M^-1 More...
 
boost::array< double, 16 > flatten () const
 return matrix as a flat array, vtk ordering More...
 
 Transform (vtkMatrix4x4 *m)
 
 Transform (double *m)
 
vtkMatrix4x4Ptr getVtkMatrix () const
 
vtkTransformPtr getVtkTransform () const
 
std::ostream & put (std::ostream &s, int indent=0, char newline='\n') const
 

Function Documentation

Vector3d coord ( const Vector3d &  v) const

transform a coordinate [x,y,z,1].

boost::array<double, 16> flatten ( ) const

return matrix as a flat array, vtk ordering

vtkMatrix4x4Ptr getVtkMatrix ( ) const
vtkTransformPtr getVtkTransform ( ) const
Transform inv ( ) const

return an inverted transform M^-1

std::ostream& put ( std::ostream &  s,
int  indent = 0,
char  newline = '\n' 
) const
Transform ( vtkMatrix4x4 *  m)
explicit
Transform ( double *  m)
explicit
Vector3d unitVector ( const Vector3d &  v) const

transform a unit vector [x,y,z,0], force |v|=1 after transform.

Vector3d vector ( const Vector3d &  v) const

transform a free vector [x,y,z,0]