| 1 |
//########################################################################## |
| 2 |
//# # |
| 3 |
//# CLOUDCOMPARE PLUGIN: qMPlane # |
| 4 |
//# # |
| 5 |
//# This program is free software; you can redistribute it and/or modify # |
| 6 |
//# it under the terms of the GNU General Public License as published by # |
| 7 |
//# the Free Software Foundation; version 2 of the License. # |
| 8 |
//# # |
| 9 |
//# This program is distributed in the hope that it will be useful, # |
| 10 |
//# but WITHOUT ANY WARRANTY; without even the implied warranty of # |
| 11 |
//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # |
| 12 |
//# GNU General Public License for more details. # |
| 13 |
//# # |
| 14 |
//# COPYRIGHT: AIT Austrian Institute of Technology GmbH # |
| 15 |
//# # |
| 16 |
//########################################################################## |
| 17 |
|
| 18 |
|
| 19 |
// CC |
| 20 |
#include "ccGenericPointCloud.h" |
| 21 |
|
| 22 |
// Local dependencies |
| 23 |
#include "ccMPlanePoint.h" |
| 24 |
|
| 25 |
unsigned int ccMPlanePoint::getIndex() const { |
| 26 |
return m_label->getPickedPoint(0).index; |
| 27 |
} |
| 28 |
|
| 29 |
const CCVector3& ccMPlanePoint::getCoordinates() const { |
| 30 |
return *m_label->getPickedPoint(0).cloudOrVertices()->getPoint(getIndex()); |
| 31 |
} |
| 32 |
|
| 33 |
cc2DLabel* ccMPlanePoint::getLabel() { |
| 34 |
return m_label; |
| 35 |
} |
| 36 |
|
| 37 |
QString ccMPlanePoint::getName() const { |
| 38 |
return m_label->getName(); |
| 39 |
} |
| 40 |
|
| 41 |
void ccMPlanePoint::setName(const QString& newName) { |
| 42 |
m_label->setName(newName); |
| 43 |
} |
| 44 |
|
| 45 |
float ccMPlanePoint::getDistance() const |
| 46 |
{ |
| 47 |
return m_distance; |
| 48 |
} |
| 49 |
|
| 50 |
void ccMPlanePoint::setDistance(float distance) |
| 51 |
{ |
| 52 |
m_distance = distance; |
| 53 |
} |