25 #ifndef WCOORDCONVERTER_H
26 #define WCOORDCONVERTER_H
31 #include "WTalairachConverter.h"
32 #include "core/common/WBoundingBox.h"
33 #include "core/common/math/WMatrix.h"
34 #include "core/common/math/linearAlgebra/WPosition.h"
Class to provide conversion for a given coordinate in 3D space.
std::shared_ptr< WTalairachConverter > getTalairachConverter()
getter for the talairach converter pointer
WVector3d worldCoordTransformed(WPosition point)
Transforms world coordinates.
int numberToCsZ(int number)
converts a number on the z axis according to the currently selected coordinate system
WVector3d w2t(WVector3d in)
transforms a vector from the world coordinate system to the talairach system
WVector3d operator()(WVector3d in)
Operator ()
WMatrix< double > m_rotMat
the rotation matrix to use
WBoundingBox m_boundingBox
bounding box of the wholy volume as provided by the dataset
int numberToCsX(int number)
converts a number on the x axis according to the currently selected coordinate system
std::shared_ptr< WTalairachConverter > m_talairachConverter
pointer to talairach convert for easy access
void setBoundingBox(WBoundingBox boundingBox)
Sets the bounding box of the volume.
coordinateSystemMode getCoordinateSystemMode()
getter for coordinate system mode
WVector3d m_scale
scaling of voxels
WVector3d c2w(WVector3d in)
transforms a vector from the canonical to the world coordinate system system
WVector3d w2c(WVector3d in)
transforms a vector from the world coordinate system to the canonical system
void setTalairachConverter(std::shared_ptr< WTalairachConverter > tc)
setter for the talairach converter pointer
WVector3d m_origin
the offset to the point of origin
int numberToCsY(int number)
converts a number on the y axis according to the currently selected coordinate system
void setCoordinateSystemMode(coordinateSystemMode mode)
setter for coordinate system mode
WBoundingBox getBoundingBox()
Gets the bounding box.
WVector3d t2w(WVector3d in)
transforms a vector from the canonical system to the world coordinate system
coordinateSystemMode m_coordinateSystemMode
the currently selected coordinate system mode
WCoordConverter(WMatrix< double > rotMat, WVector3d origin=WVector3d(0, 0, 0), WVector3d scale=WVector3d(1.0, 1.0, 1.0))
standard constructor
virtual ~WCoordConverter()
destructor
This only is a 3d double vector.