qCC version 2.13.alpha (Qt) - 31 May 2022
Main CloudCompare application (GUI & command line)
|
Graphical segmentation mechanism (with polyline) More...
#include <ccGraphicalSegmentationTool.h>
Public Member Functions | |
ccGraphicalSegmentationTool (QWidget *parent) | |
Default constructor. | |
virtual | ~ccGraphicalSegmentationTool () |
Destructor. | |
bool | addEntity (ccHObject *anObject, bool silent=false) |
Adds an entity (and/or its children) to the 'to be segmented' pool. More... | |
unsigned | getNumberOfValidEntities () const |
Returns the number of entites currently in the the 'to be segmented' pool. | |
const ccPolyline * | getPolyLine () const |
Get a pointer to the polyline that has been segmented. | |
QSet< ccHObject * > & | entities () |
Returns the active 'to be segmented' set. | |
const QSet< ccHObject * > & | entities () const |
Returns the active 'to be segmented' set (const version) | |
virtual bool | linkWith (ccGLWindow *win) override |
virtual bool | start () override |
virtual void | stop (bool accepted) override |
bool | deleteHiddenParts () const |
Returns whether hidden parts should be delete after segmentation. | |
void | removeAllEntities (bool unallocateVisibilityArrays) |
Remove entities from the 'to be segmented' pool. More... | |
bool | applySegmentation (ccMainAppInterface *app, ccHObject::Container &newEntities) |
Apply segmentation and update the database (helper) | |
Protected Types | |
enum | ProcessStates { POLYLINE = 1 , RECTANGLE = 2 , PAUSED = 32 , STARTED = 64 , RUNNING = 128 } |
Process states. | |
Graphical segmentation mechanism (with polyline)
bool ccGraphicalSegmentationTool::addEntity | ( | ccHObject * | anObject, |
bool | silent = false |
||
) |
Adds an entity (and/or its children) to the 'to be segmented' pool.
Warning: some entities may be rejected if they are locked, or can't be segmented this way.
void ccGraphicalSegmentationTool::removeAllEntities | ( | bool | unallocateVisibilityArrays | ) |
Remove entities from the 'to be segmented' pool.