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 };
ccMPlanePoint::setDistance
void setDistance(float)
Definition: ccMPlanePoint.cpp:31
ccMPlanePoint::getName
QString getName() const
Definition: ccMPlanePoint.cpp:23
cc2DLabel::PickedPoint::cloudOrVertices
ccGenericPointCloud * cloudOrVertices() const
Returns the cloud or the mesh vertices.
Definition: ecv2DLabel.cpp:104
ccObject::setName
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
cc2DLabel
2D label (typically attached to points)
Definition: ecv2DLabel.h:22
ccMPlanePoint::getDistance
float getDistance() const
Definition: ccMPlanePoint.cpp:29
cc2DLabel::getPickedPoint
const PickedPoint & getPickedPoint(unsigned index) const
Returns a given point.
Definition: ecv2DLabel.h:194
ccMPlanePoint::getCoordinates
const CCVector3 & getCoordinates() const
Definition: ccMPlanePoint.cpp:17
Vector3Tpl< PointCoordinateType >
ccMPlanePoint.h
ecv2DLabel.h
ecvGenericPointCloud.h
cc2DLabel::PickedPoint::index
unsigned index
Point/triangle index.
Definition: ecv2DLabel.h:128
ccMPlanePoint
Definition: ccMPlanePoint.h:13
cc2DLabel::getName
virtual QString getName() const override
Returns object name.
Definition: ecv2DLabel.cpp:196
ccMPlanePoint::getLabel
cc2DLabel * getLabel()
Definition: ccMPlanePoint.cpp:21
ccMPlanePoint::ccMPlanePoint
ccMPlanePoint(cc2DLabel *label)
Definition: ccMPlanePoint.h:15
cloudViewer::GenericIndexedCloud::getPoint
virtual const CCVector3 * getPoint(unsigned index) const =0
Returns the ith point.
ccMPlanePoint::setName
void setName(const QString &newName)
Definition: ccMPlanePoint.cpp:25
ccMPlanePoint::getIndex
unsigned int getIndex() const
Definition: ccMPlanePoint.cpp:13
Utils::distance
static double distance(T *pot1, T *pot2)
Definition: utils.h:111