35 for (
unsigned int i = 0; i < childrenNumber; ++i) {
52 const QString &containerName,
60 if (containerName.isEmpty()) {
71 app->
addToDB(container,
false,
true,
false,
false);
79 unsigned int pointIdx) {
80 if (labelText.isEmpty()) {
100 static_cast<float>(clickPoint.x() + 20) /
size.width(),
101 static_cast<float>(clickPoint.y() + 20) /
size.height());
bool compareObjects(QString name, ccHObject *object, CC_ITEM_TREE::CC_TYPES_MAP type)
2D label (typically attached to points)
bool addPickedPoint(ccGenericPointCloud *cloud, unsigned pointIndex, bool entityCenter=false)
Adds a point to this label.
void setCollapsed(bool state)
Whether to collapse label or not.
void setDisplayedIn2D(bool state)
Whether to display the label in 2D.
void setPosition(float x, float y)
Sets relative position.
void displayPointLegend(bool state)
Whether to display the point(s) legend (title only)
virtual void setVisible(bool state)
Sets entity visibility.
Hierarchical CLOUDVIEWER Object.
unsigned getChildrenNumber() const
Returns the number of children.
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
virtual void redrawDisplay(bool forceRedraw=true, bool only2D=false)
Redraws associated display.
ccHObject * getChild(unsigned childPos) const
Returns the ith child.
virtual QString getName() const
Returns object name.
virtual void setName(const QString &name)
Sets object name.
bool isKindOf(CV_CLASS_ENUM type) const
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Main application interface (for plugins)
virtual void addToDB(ccHObject *obj, bool updateZoom=false, bool autoExpandDBTree=true, bool checkDimensions=false, bool autoRedraw=true)=0
ccHObject * findItemInHierarchy(ccHObject *root, CC_TYPES_MAP itemType, QString itemName=nullptr)
ccHObject * findOrCreateContainer(ccHObject *parent, const QString &containerName, ecvMainAppInterface *app)
cc2DLabel * createPointLabel2D(QString labelText, ccPointCloud *parentCloud, QPoint clickPoint, unsigned int pointIdx)