ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccItemTree.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 // std
11 #include <array>
12 
13 // Qt
14 #include "ecv2DLabel.h"
15 #include "ecvHObject.h"
16 #include "ecvMainAppInterface.h"
17 #include "ecvPointCloud.h"
18 
19 namespace CC_ITEM_TREE {
24 };
25 
38  CC_TYPES_MAP itemType,
39  QString itemName = nullptr);
40 
55  const QString &containerName,
56  ecvMainAppInterface *app);
57 
67 cc2DLabel *createPointLabel2D(QString labelText,
68  ccPointCloud *parentCloud,
69  QPoint clickPoint,
70  unsigned int pointIdx);
71 } // namespace CC_ITEM_TREE
cc2DLabel::addPickedPoint
bool addPickedPoint(ccGenericPointCloud *cloud, unsigned pointIndex, bool entityCenter=false)
Adds a point to this label.
Definition: ecv2DLabel.cpp:400
CC_ITEM_TREE::PLANE
@ PLANE
Definition: ccItemTree.h:22
ccObject::isKindOf
bool isKindOf(CV_CLASS_ENUM type) const
Definition: ecvObject.h:128
cc2DLabel::setDisplayedIn2D
void setDisplayedIn2D(bool state)
Whether to display the label in 2D.
Definition: ecv2DLabel.h:114
cc2DLabel::displayPointLegend
void displayPointLegend(bool state)
Whether to display the point(s) legend (title only)
Definition: ecv2DLabel.h:108
CC_ITEM_TREE::createPointLabel2D
cc2DLabel * createPointLabel2D(QString labelText, ccPointCloud *parentCloud, QPoint clickPoint, unsigned int pointIdx)
Definition: ccItemTree.cpp:76
ccObject::setName
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
ecvDisplayTools.h
CC_ITEM_TREE
Definition: ccItemTree.h:19
ccPointCloud
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
cc2DLabel
2D label (typically attached to points)
Definition: ecv2DLabel.h:22
ecvMainAppInterface.h
ccItemTree.h
cc2DLabel::setPosition
void setPosition(float x, float y)
Sets relative position.
Definition: ecv2DLabel.cpp:225
ecvDisplayTools::GetCurrentScreen
static QWidget * GetCurrentScreen()
Definition: ecvDisplayTools.h:666
size
int size
Definition: FileIOFactory.cpp:130
ecvMainAppInterface
Main application interface (for plugins)
Definition: ecvMainAppInterface.h:24
cc2DLabel::setCollapsed
void setCollapsed(bool state)
Whether to collapse label or not.
Definition: ecv2DLabel.h:102
CC_ITEM_TREE::LABEL2D
@ LABEL2D
Definition: ccItemTree.h:23
ccMPlaneErrors.h
ecv2DLabel.h
CV_TYPES::PLANE
@ PLANE
Definition: CVTypes.h:120
ccHObject::redrawDisplay
virtual void redrawDisplay(bool forceRedraw=true, bool only2D=false)
Redraws associated display.
Definition: ecvHObject.cpp:1734
CV_TYPES::LABEL_2D
@ LABEL_2D
Definition: CVTypes.h:140
ccDrawableObject::setVisible
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
CC_ITEM_TREE::CC_TYPES_MAP
CC_TYPES_MAP
Definition: ccItemTree.h:20
CC_ITEM_TREE::findItemInHierarchy
ccHObject * findItemInHierarchy(ccHObject *root, CC_TYPES_MAP itemType, QString itemName=nullptr)
Definition: ccItemTree.cpp:28
ecvMainAppInterface::addToDB
virtual void addToDB(ccHObject *obj, bool updateZoom=false, bool autoExpandDBTree=true, bool checkDimensions=false, bool autoRedraw=true)=0
ccHObject::getChildrenNumber
unsigned getChildrenNumber() const
Returns the number of children.
Definition: ecvHObject.h:312
CV_TYPES::HIERARCHY_OBJECT
@ HIERARCHY_OBJECT
Definition: CVTypes.h:103
CC_ITEM_TREE::HIERARCHY_OBJECT
@ HIERARCHY_OBJECT
Definition: ccItemTree.h:21
ccHObject::getChild
ccHObject * getChild(unsigned childPos) const
Returns the ith child.
Definition: ecvHObject.h:325
sourceCloud
ccGenericPointCloud * sourceCloud
Definition: qCanupoTools.cpp:36
ccHObject
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
ccObject::getName
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
MplaneInvalidArgument
Definition: ccMPlaneErrors.h:13
ccHObject::addChild
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
Definition: ecvHObject.cpp:534
ecvHObject.h
type
char type
Definition: FileIOFactory.cpp:131
ecvDisplayTools::GetScreenSize
static QSize GetScreenSize()
Definition: ecvDisplayTools.h:886
ecvPointCloud.h
CC_ITEM_TREE::findOrCreateContainer
ccHObject * findOrCreateContainer(ccHObject *parent, const QString &containerName, ecvMainAppInterface *app)
Definition: ccItemTree.cpp:51
compareObjects
bool compareObjects(QString name, ccHObject *object, CC_ITEM_TREE::CC_TYPES_MAP type)
Definition: ccItemTree.cpp:15
name
std::string name
Definition: FileIOFactory.cpp:129