ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccMPlanePoint.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 // CV_DB_LIB
11 #include "ecv2DLabel.h"
12 
14 public:
15  explicit ccMPlanePoint(cc2DLabel* label)
16  : m_label(label), m_distance(0.0) {}
17 
18  unsigned int getIndex() const;
19  const CCVector3& getCoordinates() const;
21  QString getName() const;
22  void setName(const QString& newName);
23  float getDistance() const;
24  void setDistance(float);
25 
26 private:
27  cc2DLabel* m_label;
28  float m_distance;
29 };
2D label (typically attached to points)
Definition: ecv2DLabel.h:22
void setDistance(float)
float getDistance() const
unsigned int getIndex() const
ccMPlanePoint(cc2DLabel *label)
Definition: ccMPlanePoint.h:15
cc2DLabel * getLabel()
const CCVector3 & getCoordinates() const
void setName(const QString &newName)
QString getName() const