|
Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <mitkPAVector.h>


Public Member Functions | |
| mitkClassMacroItkParent (Vector, itk::LightObject) | |
| double | GetNorm () |
| GetNorm calculates the length of this vector. More... | |
| double | GetElement (unsigned short index) |
| void | SetElement (unsigned short index, double value) |
| void | Normalize () |
| Normalize normalizes this vector. After calling this GetNorm() will return 1. More... | |
| void | SetValue (Vector::Pointer value) |
| void | RandomizeByPercentage (double percentage, double bendingFactor, std::mt19937 *rng) |
| RandomizeByPercentage alters this vector randomly by [-percentage, percentage] of the bendingFactor. More... | |
| void | Randomize (double xLowerLimit, double xUpperLimit, double yLowerLimit, double yUpperLimit, double zLowerLimit, double zUpperLimit, std::mt19937 *rng) |
| Randomize randomizes this vector to be [lowerLimit, upperLimit] in each element. More... | |
| void | Randomize (double xLimit, double yLimit, double zLimit, std::mt19937 *rng) |
| Randomize randomizes this vector to be [0, limit] in each element. More... | |
| void | Randomize (std::mt19937 *rng) |
| Randomize randomizes this vector to be [-1, 1] in each element. More... | |
| void | Rotate (double xAngle, double yAngle) |
| Rotate rotates this Vector around the x, y and z axis with the given angles in radians. More... | |
| void | Scale (double factor) |
| Scale scales this Vector with the given factor. More... | |
| Vector::Pointer | Clone () |
| Clone create a deep copy of this vector. More... | |
| void | Subtract (Vector::Pointer other) |
| void | Add (Vector::Pointer other) |
Static Public Member Functions | |
| static Pointer | New () |
Protected Member Functions | |
| Vector () | |
| ~Vector () override | |
| void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
Definition at line 27 of file mitkPAVector.h.
|
protected |
Definition at line 16 of file mitkPAVector.cpp.
|
overrideprotected |
Definition at line 21 of file mitkPAVector.cpp.
| void mitk::pa::Vector::Add | ( | Vector::Pointer | other | ) |
Definition at line 142 of file mitkPAVector.cpp.
| mitk::pa::Vector::Pointer mitk::pa::Vector::Clone | ( | ) |
Clone create a deep copy of this vector.
Definition at line 126 of file mitkPAVector.cpp.
References GetElement(), and New().
| double mitk::pa::Vector::GetElement | ( | unsigned short | index | ) |
Definition at line 31 of file mitkPAVector.cpp.
| double mitk::pa::Vector::GetNorm | ( | ) |
GetNorm calculates the length of this vector.
Definition at line 26 of file mitkPAVector.cpp.
| mitk::pa::Vector::mitkClassMacroItkParent | ( | Vector | , |
| itk::LightObject | |||
| ) |
|
static |
| void mitk::pa::Vector::Normalize | ( | ) |
Normalize normalizes this vector. After calling this GetNorm() will return 1.
Definition at line 41 of file mitkPAVector.cpp.
|
overrideprotected |
Definition at line 84 of file mitkPAVector.cpp.
| void mitk::pa::Vector::Randomize | ( | double | xLowerLimit, |
| double | xUpperLimit, | ||
| double | yLowerLimit, | ||
| double | yUpperLimit, | ||
| double | zLowerLimit, | ||
| double | zUpperLimit, | ||
| std::mt19937 * | rng | ||
| ) |
Randomize randomizes this vector to be [lowerLimit, upperLimit] in each element.
| xLowerLimit | |
| xUpperLimit | |
| yLowerLimit | |
| yUpperLimit | |
| zLowerLimit | |
| zUpperLimit |
Definition at line 64 of file mitkPAVector.cpp.
Referenced by Randomize().
| void mitk::pa::Vector::Randomize | ( | double | xLimit, |
| double | yLimit, | ||
| double | zLimit, | ||
| std::mt19937 * | rng | ||
| ) |
Randomize randomizes this vector to be [0, limit] in each element.
| xLimit | |
| yLimit | |
| zLimit |
Definition at line 74 of file mitkPAVector.cpp.
References Randomize().
| void mitk::pa::Vector::Randomize | ( | std::mt19937 * | rng | ) |
Randomize randomizes this vector to be [-1, 1] in each element.
Definition at line 79 of file mitkPAVector.cpp.
References Randomize().
| void mitk::pa::Vector::RandomizeByPercentage | ( | double | percentage, |
| double | bendingFactor, | ||
| std::mt19937 * | rng | ||
| ) |
RandomizeByPercentage alters this vector randomly by [-percentage, percentage] of the bendingFactor.
| percentage | |
| bendingFactor |
Definition at line 56 of file mitkPAVector.cpp.
| void mitk::pa::Vector::Rotate | ( | double | xAngle, |
| double | yAngle | ||
| ) |
Rotate rotates this Vector around the x, y and z axis with the given angles in radians.
| thetaChange | rotation of the inclination angle in radians |
| phiChange | rotation of the azimuthal angle in radians |
Definition at line 92 of file mitkPAVector.cpp.
References GetElement(), MITK_DEBUG, and SetElement().
| void mitk::pa::Vector::Scale | ( | double | factor | ) |
Scale scales this Vector with the given factor.
| factor | the scaling factor |
If a negative number is provided, the direction of the vector will be inverted.
Definition at line 119 of file mitkPAVector.cpp.
| void mitk::pa::Vector::SetElement | ( | unsigned short | index, |
| double | value | ||
| ) |
Definition at line 36 of file mitkPAVector.cpp.
Referenced by Rotate().
| void mitk::pa::Vector::SetValue | ( | Vector::Pointer | value | ) |
Definition at line 49 of file mitkPAVector.cpp.
| void mitk::pa::Vector::Subtract | ( | Vector::Pointer | other | ) |
Definition at line 135 of file mitkPAVector.cpp.