ISegment Class Referenceabstract

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::PointHandlegetCoG () const =0
 get center of gravity of segment points
 
virtual const DM::BoxHandlegetBBox () 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::PolylineHandlegetAlphaShape () const =0
 get alpha shape of segment (only available in plane extraction mode and set alpha radius)
 

Detailed Description

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.

Author
MPOECHTR, JO
Date
29.01.2019
Examples
demoSegmentation.cpp.