Dialog for managing a clipping box.
More...
#include <ccClippingBoxTool.h>
|
| ccClippingBoxTool (QWidget *parent) |
| Default constructor.
|
|
virtual | ~ccClippingBoxTool () |
| Default destructor.
|
|
virtual bool | linkWith (ccGLWindow *win) override |
|
virtual bool | start () override |
|
virtual void | stop (bool state) override |
|
const ccClipBox * | box () const |
| Returns box.
|
|
bool | addAssociatedEntity (ccHObject *anObject) |
| Adds an entity. More...
|
|
unsigned | getNumberOfAssociatedEntity () const |
| Returns the current number of associated entities.
|
|
|
static bool | ExtractSlicesAndContours (const std::vector< ccGenericPointCloud * > &clouds, const std::vector< ccGenericMesh * > &meshes, ccClipBox &clipBox, bool singleSliceMode, bool processDimensions[3], std::vector< ccHObject * > &outputSlices, bool extractEnvelopes, PointCoordinateType maxEdgeLength, ccEnvelopeExtractor::EnvelopeType envelopeType, std::vector< ccPolyline * > &outputEnvelopes, bool extractLevelSet, double levelSetGridStep, int levelSetMinVertCount, std::vector< ccPolyline * > &levelSet, PointCoordinateType gap=0, bool multiPass=false, bool splitEnvelopes=false, bool projectOnBestFitPlane=false, bool visualDebugMode=false, bool generateRandomColors=false, ccProgressDialog *progressDialog=0) |
| Extract slices and optionally envelopes from various clouds and/or clouds. More...
|
|
|
void | toggleInteractors (bool) |
|
void | toggleBox (bool) |
|
void | editBox () |
|
void | restoreLastBox () |
|
void | reset () |
|
void | closeDialog () |
|
void | extractContour () |
|
void | removeLastContour () |
|
void | exportSlice () |
|
void | exportMultSlices () |
|
void | onBoxModified (const ccBBox *box) |
|
void | thicknessChanged (double) |
|
void | shiftXMinus () |
|
void | shiftXPlus () |
|
void | shiftYMinus () |
|
void | shiftYPlus () |
|
void | shiftZMinus () |
|
void | shiftZPlus () |
|
void | setFrontView () |
|
void | setBottomView () |
|
void | setTopView () |
|
void | setBackView () |
|
void | setLeftView () |
|
void | setRightView () |
|
void | extractSlicesAndContours (bool singleSliceMode) |
| Extracts slices and/or contours.
|
|
void | shiftBox (unsigned char dim, bool minus) |
| Shift box.
|
|
void | setView (CC_VIEW_ORIENTATION orientation) |
| Sets predefined view.
|
|
|
ccClipBox * | m_clipBox |
| Clipping box.
|
|
Dialog for managing a clipping box.
◆ addAssociatedEntity()
bool ccClippingBoxTool::addAssociatedEntity |
( |
ccHObject * |
anObject | ) |
|
Adds an entity.
- Returns
- success, if the entity is eligible for clipping
◆ ExtractSlicesAndContours()
bool ccClippingBoxTool::ExtractSlicesAndContours |
( |
const std::vector< ccGenericPointCloud * > & |
clouds, |
|
|
const std::vector< ccGenericMesh * > & |
meshes, |
|
|
ccClipBox & |
clipBox, |
|
|
bool |
singleSliceMode, |
|
|
bool |
processDimensions[3], |
|
|
std::vector< ccHObject * > & |
outputSlices, |
|
|
bool |
extractEnvelopes, |
|
|
PointCoordinateType |
maxEdgeLength, |
|
|
ccEnvelopeExtractor::EnvelopeType |
envelopeType, |
|
|
std::vector< ccPolyline * > & |
outputEnvelopes, |
|
|
bool |
extractLevelSet, |
|
|
double |
levelSetGridStep, |
|
|
int |
levelSetMinVertCount, |
|
|
std::vector< ccPolyline * > & |
levelSet, |
|
|
PointCoordinateType |
gap = 0 , |
|
|
bool |
multiPass = false , |
|
|
bool |
splitEnvelopes = false , |
|
|
bool |
projectOnBestFitPlane = false , |
|
|
bool |
visualDebugMode = false , |
|
|
bool |
generateRandomColors = false , |
|
|
ccProgressDialog * |
progressDialog = 0 |
|
) |
| |
|
static |
Extract slices and optionally envelopes from various clouds and/or clouds.
- Parameters
-
clouds | input clouds (may be empty if meshes are defined) |
meshes | input meshes (may be empty if clouds are defined) |
clipBox | clipping box |
singleSliceMode | if true, a single cut is made (the process is not repeated) and only the envelope is extracted (not the slice) |
processDimensions | If singleSliceMode is true: the dimension normal to the slice should be true (and the others false). Otherwise: the dimensions along which to repeat the cuting process should be true. |
outputSlices | output slices (if successful) |
extractEnvelopes | whether to extract envelopes or not |
maxEdgeLength | max envelope edge length (the smaller, the tighter the envelope will be) |
envelopeType | envelope type |
outputEnvelopes | output envelopes (if successful) |
extractLevelSet | whether to extract the level set or not |
levelSetGridStep | the step of the grid from which the level set will be extraced |
levelSetMinVertCount | minimum number of vertex count per contour |
levelSet | level set (contour) lines (if any) |
gap | optional gap between each slice |
multiPass | multi-pass envelope extraction |
splitEnvelopes | whether to split the envelope(s) when the segment can't be smaller than the specified 'maxEdgeLength' |
projectOnBestFitPlane | to project the points on the slice best fitting plane (otherwise the plane normal to the |
visualDebugMode | displays a 'debugging' window during the envelope extraction process |
generateRandomColors | randomly colors the extracted slices |
progressDialog | optional progress dialog |
The documentation for this class was generated from the following files:
- ccClippingBoxTool.h
- ccClippingBoxTool.cpp