MITK point type extending itk::Point with additional constructors and utility methods.
More...
|
| | Point () |
| | Default constructor. More...
|
| |
| template<typename TPointValueType > |
| | Point (const Point< TPointValueType, NPointDimension > &r) |
| | Pass-through constructors for the Array base class. More...
|
| |
| template<typename TPointValueType > |
| | Point (const TPointValueType r[NPointDimension]) |
| |
| template<typename TPointValueType > |
| | Point (const TPointValueType &v) |
| |
| | Point (const mitk::Point< TCoordRep, NPointDimension > &r) |
| |
| Point & | operator= (const mitk::Point< TCoordRep, NPointDimension > &)=default |
| |
| | Point (const TCoordRep r[NPointDimension]) |
| |
| | Point (const TCoordRep &v) |
| |
| | Point (const itk::Point< TCoordRep, NPointDimension > &p) |
| |
| template<typename... Args, typename = std::enable_if_t<(sizeof...(Args) == NPointDimension)>> |
| | Point (Args... args) |
| |
| template<typename ArrayType > |
| void | FillPoint (const ArrayType &array) |
| | Copy elements from an array into this point. More...
|
| |
| template<typename ArrayType > |
| void | ToArray (ArrayType array) const |
| | Copy the values stored in this point into an array. More...
|
| |
template<class TCoordRep, unsigned int NPointDimension = 3>
class mitk::Point< TCoordRep, NPointDimension >
MITK point type extending itk::Point with additional constructors and utility methods.
Provides constructors for various input types and utility methods for copying to/from array types.
- Template Parameters
-
| TCoordRep | Coordinate representation type (e.g. double, float). |
| NPointDimension | Number of dimensions (default: 3). |
Definition at line 48 of file mitkPoint.h.
template<class TCoordRep , unsigned int NPointDimension = 3>
template<typename ArrayType >
| void mitk::Point< TCoordRep, NPointDimension >::FillPoint |
( |
const ArrayType & |
array | ) |
|
|
inline |
Copy elements from an array into this point.
Note that this method will assign doubles to floats without complaining!
- Parameters
-
| [in] | array | The array whose values shall be copied. Must overload [] operator. |
Definition at line 97 of file mitkPoint.h.