Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::Vector< TCoordRep, NVectorDimension > Class Template Reference

#include <mitkVector.h>

Inheritance diagram for mitk::Vector< TCoordRep, NVectorDimension >:
Collaboration diagram for mitk::Vector< TCoordRep, NVectorDimension >:

Public Member Functions

 Vector ()
 Default constructor has nothing to do. More...
 
 Vector (const mitk::Vector< TCoordRep, NVectorDimension > &r)
 Copy constructor. More...
 
 Vector (const itk::Vector< TCoordRep, NVectorDimension > &r)
 Constructor to convert from itk::Vector to mitk::Vector. More...
 
 Vector (const TCoordRep r[NVectorDimension])
 Constructor to convert an array to mitk::Vector. More...
 
 Vector (const TCoordRep &v)
 
 Vector (const vnl_vector< TCoordRep > &vnlVector)
 Constructor for vnl_vectors. More...
 
 Vector (const vnl_vector_fixed< TCoordRep, NVectorDimension > &vnlVectorFixed)
 Constructor for vnl_vector_fixed. More...
 
template<typename ArrayType >
void FillVector (const ArrayType &array)
 
template<typename ArrayType >
void ToArray (ArrayType array) const
 
 operator vnl_vector< TCoordRep > () const
 User defined conversion of mitk::Vector to vnl_vector. Note: the conversion to mitk::Vector to vnl_vector_fixed has not been implemented since this would collide with the conversion vnl_vector to vnl_vector_fixed provided by vnl. More...
 

Detailed Description

template<class TCoordRep, unsigned int NVectorDimension = 3>
class mitk::Vector< TCoordRep, NVectorDimension >

Definition at line 32 of file mitkVector.h.

Constructor & Destructor Documentation

template<class TCoordRep, unsigned int NVectorDimension = 3>
mitk::Vector< TCoordRep, NVectorDimension >::Vector ( )
inlineexplicit

Default constructor has nothing to do.

Definition at line 38 of file mitkVector.h.

template<class TCoordRep, unsigned int NVectorDimension = 3>
mitk::Vector< TCoordRep, NVectorDimension >::Vector ( const mitk::Vector< TCoordRep, NVectorDimension > &  r)
inlineexplicit

Copy constructor.

Definition at line 42 of file mitkVector.h.

template<class TCoordRep, unsigned int NVectorDimension = 3>
mitk::Vector< TCoordRep, NVectorDimension >::Vector ( const itk::Vector< TCoordRep, NVectorDimension > &  r)
inline

Constructor to convert from itk::Vector to mitk::Vector.

Definition at line 50 of file mitkVector.h.

template<class TCoordRep, unsigned int NVectorDimension = 3>
mitk::Vector< TCoordRep, NVectorDimension >::Vector ( const TCoordRep  r[NVectorDimension])
inline

Constructor to convert an array to mitk::Vector.

Parameters
rthe array.
Attention
must have NVectorDimension valid arguments!

Definition at line 60 of file mitkVector.h.

template<class TCoordRep, unsigned int NVectorDimension = 3>
mitk::Vector< TCoordRep, NVectorDimension >::Vector ( const TCoordRep &  v)
inline

Constructor to initialize entire vector to one value.

Definition at line 68 of file mitkVector.h.

template<class TCoordRep, unsigned int NVectorDimension = 3>
mitk::Vector< TCoordRep, NVectorDimension >::Vector ( const vnl_vector< TCoordRep > &  vnlVector)
inline

Constructor for vnl_vectors.

Exceptions
mitk::Exceptionif vnl_vector.size() != NVectorDimension.

Definition at line 73 of file mitkVector.h.

template<class TCoordRep, unsigned int NVectorDimension = 3>
mitk::Vector< TCoordRep, NVectorDimension >::Vector ( const vnl_vector_fixed< TCoordRep, NVectorDimension > &  vnlVectorFixed)
inline

Constructor for vnl_vector_fixed.

Definition at line 89 of file mitkVector.h.

Member Function Documentation

template<class TCoordRep, unsigned int NVectorDimension = 3>
template<typename ArrayType >
void mitk::Vector< TCoordRep, NVectorDimension >::FillVector ( const ArrayType &  array)
inline

Copies the elements from array array to this. Note that this method will assign doubles to floats without complaining!

Parameters
arraythe array whose values shall be copied. Must overload [] operator.

Definition at line 105 of file mitkVector.h.

template<class TCoordRep, unsigned int NVectorDimension = 3>
mitk::Vector< TCoordRep, NVectorDimension >::operator vnl_vector< TCoordRep > ( ) const
inline

User defined conversion of mitk::Vector to vnl_vector. Note: the conversion to mitk::Vector to vnl_vector_fixed has not been implemented since this would collide with the conversion vnl_vector to vnl_vector_fixed provided by vnl.

Definition at line 128 of file mitkVector.h.

template<class TCoordRep, unsigned int NVectorDimension = 3>
template<typename ArrayType >
void mitk::Vector< TCoordRep, NVectorDimension >::ToArray ( ArrayType  array) const
inline

Copies the values stored in this vector into the array array.d

Parameters
arraythe array which should store the values of this.

Definition at line 118 of file mitkVector.h.


The documentation for this class was generated from the following file: