![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <ccMeasurementDevice.h>
Public Member Functions | |
| ccMeasurementDevice (ecvMainAppInterface *app) | |
| ccPlane * | fitPlaneToPoints (const std::vector< ccMPlanePoint > &fittingPoints, const QString &planeName) const |
| void | createScalarFieldForCloud (const ccPlane *plane, ccPointCloud *cloud, bool signedMeasurement) const |
| void | deleteScalarFieldFromCloud (ccPointCloud *cloud) const |
| float | measurePointToPlaneDistance (const ccPlane *plane, const CCVector3 &point, bool signedMeasurement) const |
Definition at line 19 of file ccMeasurementDevice.h.
|
inlineexplicit |
Definition at line 21 of file ccMeasurementDevice.h.
| void ccMeasurementDevice::createScalarFieldForCloud | ( | const ccPlane * | plane, |
| ccPointCloud * | cloud, | ||
| bool | signedMeasurement | ||
| ) | const |
Definition at line 37 of file ccMeasurementDevice.cpp.
References ccScalarField::computeMinAndMax(), ccPlane::getEquation(), ccPlane::getNormal(), ccHObject::redrawDisplay(), ccPointCloud::setCurrentDisplayedScalarField(), ccDrawableObject::showSF(), ccPointCloud::showSFColorsScale(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
| void ccMeasurementDevice::deleteScalarFieldFromCloud | ( | ccPointCloud * | cloud | ) | const |
Definition at line 61 of file ccMeasurementDevice.cpp.
References ccPointCloud::deleteScalarField(), cloudViewer::PointCloudTpl< T >::getScalarFieldIndexByName(), MPLANE_SCALARFIELD_NAME, and ccHObject::redrawDisplay().
| ccPlane * ccMeasurementDevice::fitPlaneToPoints | ( | const std::vector< ccMPlanePoint > & | fittingPoints, |
| const QString & | planeName | ||
| ) | const |
Definition at line 16 of file ccMeasurementDevice.cpp.
References ccPlane::Fit(), and ccPointCloud::reserveThePointsTable().
| float ccMeasurementDevice::measurePointToPlaneDistance | ( | const ccPlane * | plane, |
| const CCVector3 & | point, | ||
| bool | signedMeasurement | ||
| ) | const |
Definition at line 70 of file ccMeasurementDevice.cpp.
References abs(), cloudViewer::DistanceComputationTools::computePoint2PlaneDistance(), ccPlane::getEquation(), ccPlane::getNormal(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.