| 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 |
#ifndef CC_MPLANE_POINT |
| 19 |
#define CC_MPLANE_POINT |
| 20 |
|
| 21 |
// CC |
| 22 |
#include "cc2DLabel.h" |
| 23 |
|
| 24 |
|
| 25 |
class ccMPlanePoint { |
| 26 |
|
| 27 |
public: |
| 28 |
explicit ccMPlanePoint(cc2DLabel *label) : m_label(label), m_distance(0.0) {} |
| 29 |
|
| 30 |
unsigned int getIndex() const; |
| 31 |
const CCVector3& getCoordinates() const; |
| 32 |
cc2DLabel* getLabel(); |
| 33 |
QString getName() const; |
| 34 |
void setName(const QString& newName); |
| 35 |
float getDistance() const; |
| 36 |
void setDistance(float); |
| 37 |
|
| 38 |
private: |
| 39 |
cc2DLabel *m_label; |
| 40 |
float m_distance; |
| 41 |
}; |
| 42 |
|
| 43 |
#endif |