|
Volume Cartographer 2.28.0
|
A simple particle class. More...
#include <vc/segmentation/stps/Particle.hpp>
Public Member Functions | |
| Particle ()=default | |
| Default constructor. | |
| Particle (const cv::Vec3d &p) | |
| Constructor with position initialization. More... | |
| Particle & | operator+= (const cv::Vec3d &rhs) |
| Add a vector offset to the particle position. | |
| Particle & | operator*= (const double &rhs) |
| Scale all elements of the particle position. | |
| cv::Vec3d & | pos () |
| Get the particle position. More... | |
| const cv::Vec3d & | pos () const |
| Get the particle position. More... | |
| double & | restingL () |
| Get the resting length between this and the previous particle in the chain. More... | |
| const double & | restingL () const |
| Get the resting length between this and the previous particle in the chain. More... | |
| double & | restingR () |
| Get the resting length between this and the next particle in the chain. More... | |
| const double & | restingR () const |
| Get the resting length between this and the next particle in the chain. More... | |
Private Attributes | |
| cv::Vec3d | pos_ {0, 0, 0} |
| double | restingL_ {0} |
| double | restingR_ {0} |
A simple particle class.
Keeps track of particle position and the resting distance between particles.
Definition at line 17 of file Particle.hpp.
|
inlineexplicit |
Constructor with position initialization.
Definition at line 24 of file Particle.hpp.
|
inline |
Get the particle position.
Definition at line 32 of file Particle.hpp.
|
inline |
Get the particle position.
Definition at line 34 of file Particle.hpp.
|
inline |
Get the resting length between this and the previous particle in the chain.
Definition at line 40 of file Particle.hpp.
|
inline |
Get the resting length between this and the previous particle in the chain.
Definition at line 42 of file Particle.hpp.
|
inline |
Get the resting length between this and the next particle in the chain.
Definition at line 48 of file Particle.hpp.
|
inline |
Get the resting length between this and the next particle in the chain.
Definition at line 50 of file Particle.hpp.
|
private |
Particle position
Definition at line 54 of file Particle.hpp.
|
private |
Resting length to the "left"
Definition at line 56 of file Particle.hpp.
|
private |
Resting length to the "right"
Definition at line 58 of file Particle.hpp.