qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
Public Member Functions | Public Attributes | List of all members
cc2DLabel::PickedPoint Struct Reference

Picked point descriptor. More...

#include <cc2DLabel.h>

Collaboration diagram for cc2DLabel::PickedPoint:
Collaboration graph
[legend]

Public Member Functions

CCVector3 getPointPosition () const
 Returns the point position (3D)
 
ccGenericPointCloudcloudOrVertices () const
 Returns the cloud or the mesh vertices.
 
unsigned getUniqueID () const
 Returns the cloud or the mesh unique ID.
 
ccHObjectentity () const
 Returns the associated entity (cloud or mesh)
 
QString itemTitle () const
 Returns the item 'title' (either its index or 'Center' if it's a center point)
 
QString prefix (const char *pointTag) const
 Returns the point prefix ('Point' or 'Point@Tri' or 'IDXX Center')
 
 PickedPoint ()
 Default constructor.
 
 PickedPoint (ccGenericPointCloud *_cloud, unsigned pointIndex, bool centerPoint=false)
 Constructor from a point and its index.
 
 PickedPoint (ccGenericMesh *_mesh, unsigned triIindex, const CCVector2d &_uv, bool centerPoint=false)
 Constructor from a triangle, its index and barycentric coordinates.
 

Public Attributes

ccGenericPointCloud_cloud
 Cloud.
 
ccGenericMesh_mesh
 Mesh.
 
unsigned index
 Point/triangle index.
 
CCVector3d pos2D
 Last known '2D' position (i.e. in screen space) More...
 
float markerScale
 Last known marker scale.
 
CCVector2d uv
 Barycentric coordinates (for triangles)
 
bool entityCenterPoint
 Entity center mode (index will be invalid)
 

Detailed Description

Picked point descriptor.

Label 'points' can be shared between multiple entities

Member Data Documentation

◆ pos2D

CCVector3d cc2DLabel::PickedPoint::pos2D

Last known '2D' position (i.e. in screen space)

This position is updated on each call to drawMeOnly3D


The documentation for this struct was generated from the following files: