Segment interface. More...
#include "ISegmentManager.hpp"
Public Member Functions | |
virtual unsigned | getID () const =0 |
returns id of segment | |
virtual size_t | sizePoints () const =0 |
number of points that have been assigned to segment | |
virtual int64_t | getPoint (int64_t index) const =0 |
get point id at index position of the point vector | |
virtual opals::Vector< int64_t > | getPoints () const =0 |
get point id vector of segment | |
virtual const DM::PointHandle & | getCoG () const =0 |
get center of gravity of segment points | |
virtual const DM::BoxHandle & | getBBox () const =0 |
get bounding box of segment points | |
virtual const opals::Vector< double > & | getPlaneParams () const =0 |
get plane parameters (a,b,c,d and sigma0) of the extracted plane (in plane extraction mode only. plane equation: a*x + b*y + c*z + d == 0) | |
virtual const opals::Vector< double > & | getPlaneMoments () const =0 |
get plane moments (Mxx, Myy, Mzz, Mxy, Mxz, Myz) of the extracted plane (in plane extraction mode only) | |
virtual const DM::PolylineHandle & | getAlphaShape () const =0 |
get alpha shape of segment (only available in plane extraction mode and set alpha radius) | |
Segment interface.
A segment objects provides an objects representation of the segments that have been created by ModuleSegmentation. Plane parameters and plane moments are only available if the plane extraction mode was applied. Alpha shape objects additionally required the alphaRadius parameter being set.