![]() |
OpenWalnut
1.5.0dev
|
this class to contain a seed voxel coordinate. More...
#include <WHcoord.h>
Collaboration diagram for WHcoord:Public Member Functions | |
| WHcoord () | |
| Constructor. More... | |
| WHcoord (coord_t x_init, coord_t y_init, coord_t z_init) | |
| Constructor. More... | |
| WHcoord (const WHcoord &object) | |
| Constructor. More... | |
| ~WHcoord () | |
| Destructor. More... | |
| WHcoord & | operator= (const WHcoord &rhs) |
| = member operator More... | |
| float | getPhysDist (const WHcoord voxel) const |
| returns the euclidean distance between this voxel and the input voxel More... | |
| std::vector< WHcoord > | getPhysNbs (const WHcoord dataSize, const unsigned int nbLevel) const |
| returns a vector containing the coordinates of the physical neighbours adjacent to the voxel, the neighbourhood level is defined by nb_level More... | |
| std::string | getNameString () const |
| returns a string with the coordinates of the voxel in the form "xxx_yyy_zzz" More... | |
| WHcoord | nifti2vista (const WHcoord dataSize) const |
| transform coordinates to vista format More... | |
| WHcoord | surf2vista (const WHcoord dataSize) const |
| transform coordinates to vista format More... | |
| WHcoord | vista2nifti (const WHcoord dataSize) const |
| transform coordinates to vista format More... | |
Public Attributes | |
| coord_t | m_x |
| x coordinate More... | |
| coord_t | m_y |
| y coordinate More... | |
| coord_t | m_z |
| z coordinate More... | |
this class to contain a seed voxel coordinate.
consisting on x,y,z also implements coordinate gird changes and physical neighbor search
| WHcoord::WHcoord | ( | ) |
Constructor.
Definition at line 60 of file WHcoord.cpp.
| WHcoord::WHcoord | ( | coord_t | x_init, |
| coord_t | y_init, | ||
| coord_t | z_init | ||
| ) |
Constructor.
| x_init | x coordinate initializer |
| y_init | y coordinate initializer |
| z_init | z coordinate initializer |
Definition at line 64 of file WHcoord.cpp.
| WHcoord::WHcoord | ( | const WHcoord & | object | ) |
| WHcoord::~WHcoord | ( | ) |
Destructor.
Definition at line 72 of file WHcoord.cpp.
| std::string WHcoord::getNameString | ( | ) | const |
returns a string with the coordinates of the voxel in the form "xxx_yyy_zzz"
Definition at line 205 of file WHcoord.cpp.
Referenced by WHtree::getReport().
Here is the caller graph for this function:| float WHcoord::getPhysDist | ( | const WHcoord | voxel | ) | const |
returns the euclidean distance between this voxel and the input voxel
| voxel | coordinate to calculate distance to |
Definition at line 82 of file WHcoord.cpp.
| std::vector< WHcoord > WHcoord::getPhysNbs | ( | const WHcoord | dataSize, |
| const unsigned int | nbLevel | ||
| ) | const |
returns a vector containing the coordinates of the physical neighbours adjacent to the voxel, the neighbourhood level is defined by nb_level
| dataSize | dataset limits |
| nbLevel | neighborhood value |
Definition at line 91 of file WHcoord.cpp.
transform coordinates to vista format
| dataSize | dataset size |
Definition at line 215 of file WHcoord.cpp.
Referenced by WHtree::convert2grid(), and WHtree::writeTree().
Here is the caller graph for this function:= member operator
| rhs | object to copy |
Definition at line 248 of file WHcoord.cpp.
transform coordinates to vista format
| dataSize | dataset size |
Definition at line 224 of file WHcoord.cpp.
transform coordinates to vista format
| dataSize | dataset size |
Definition at line 233 of file WHcoord.cpp.
Referenced by WHtree::convert2grid(), WHtree::writeTree(), and WHtree::writeTreeOldWalnut().
Here is the caller graph for this function:| coord_t WHcoord::m_x |
x coordinate
Definition at line 154 of file WHcoord.h.
Referenced by WHtreeProcesser::coarseTree(), WHtree::getMeanCoordinate4node(), getNameString(), getPhysDist(), getPhysNbs(), nifti2vista(), operator=(), surf2vista(), vista2nifti(), WHtree::writeTree(), and WHtree::writeTreeOldWalnut().
| coord_t WHcoord::m_y |
y coordinate
Definition at line 155 of file WHcoord.h.
Referenced by WHtreeProcesser::coarseTree(), WHtree::getMeanCoordinate4node(), getNameString(), getPhysDist(), getPhysNbs(), nifti2vista(), operator=(), surf2vista(), vista2nifti(), WHtree::writeTree(), and WHtree::writeTreeOldWalnut().
| coord_t WHcoord::m_z |
z coordinate
Definition at line 156 of file WHcoord.h.
Referenced by WHtreeProcesser::coarseTree(), WHtree::getMeanCoordinate4node(), getNameString(), getPhysDist(), getPhysNbs(), nifti2vista(), operator=(), surf2vista(), vista2nifti(), WHtree::writeTree(), and WHtree::writeTreeOldWalnut().