Medical Imaging Interaction Toolkit  2024.06.00
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< TCoordRep, NVectorDimension > & operator= (const Vector< TCoordRep, NVectorDimension > &r)
 
 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 30 of file mitkVector.h.

Constructor & Destructor Documentation

◆ Vector() [1/7]

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

Default constructor has nothing to do.

Definition at line 36 of file mitkVector.h.

◆ Vector() [2/7]

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

Copy constructor.

Definition at line 40 of file mitkVector.h.

◆ Vector() [3/7]

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 55 of file mitkVector.h.

◆ Vector() [4/7]

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 65 of file mitkVector.h.

◆ Vector() [5/7]

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 73 of file mitkVector.h.

◆ Vector() [6/7]

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 78 of file mitkVector.h.

◆ Vector() [7/7]

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 94 of file mitkVector.h.

Member Function Documentation

◆ FillVector()

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 110 of file mitkVector.h.

◆ operator vnl_vector< TCoordRep >()

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 133 of file mitkVector.h.

◆ operator=()

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

Pass-through assignment operator for the Vector base class.

Definition at line 46 of file mitkVector.h.

◆ ToArray()

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 123 of file mitkVector.h.


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