![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Enumerations | |
| enum | CC_TYPES_MAP { HIERARCHY_OBJECT = CV_TYPES::HIERARCHY_OBJECT , PLANE = CV_TYPES::PLANE , LABEL2D = CV_TYPES::LABEL_2D } |
Functions | |
| 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) |
| Enumerator | |
|---|---|
| HIERARCHY_OBJECT | |
| PLANE | |
| LABEL2D | |
Definition at line 20 of file ccItemTree.h.
| cc2DLabel * CC_ITEM_TREE::createPointLabel2D | ( | QString | labelText, |
| ccPointCloud * | parentCloud, | ||
| QPoint | clickPoint, | ||
| unsigned int | pointIdx | ||
| ) |
Create a cc2DLabel associated with a QPoint within a ccPointCloud.
| [in] | labelText | The label text to be displayed. |
| [in] | parentCloud | The associated parent cloud. |
| [in] | clickPoint | The 2D clickPoint which specifies the rendered label positions. |
| [in] | pointIdx | The point index which specifies the 3D point within the parent cloud. |
Definition at line 76 of file ccItemTree.cpp.
References cc2DLabel::addPickedPoint(), cc2DLabel::displayPointLegend(), ecvDisplayTools::GetCurrentScreen(), ecvDisplayTools::GetScreenSize(), ccHObject::redrawDisplay(), cc2DLabel::setCollapsed(), cc2DLabel::setDisplayedIn2D(), ccObject::setName(), cc2DLabel::setPosition(), ccDrawableObject::setVisible(), size, and sourceCloud.
Referenced by ccMeasurementRecorder::addFittingPoint(), and ccMeasurementRecorder::addMeasurementPoint().
| ccHObject * CC_ITEM_TREE::findItemInHierarchy | ( | ccHObject * | root, |
| CC_TYPES_MAP | itemType, | ||
| QString | itemName = nullptr |
||
| ) |
Find an item in the root's hierarchy tree by type and optionally by name. If multiple matching objects exist in the hierarchy, the first one is returned.
| [in] | root | The root of the item tree to be searched. |
| [in] | itemType | The type of items to be found. |
| [in] | itemName | (Optional) name of the searched item. |
| std::invalid_argument | Exception is thrown if root is nullptr |
Definition at line 28 of file ccItemTree.cpp.
References compareObjects(), ccHObject::getChild(), and ccHObject::getChildrenNumber().
Referenced by findOrCreateContainer().
| ccHObject * CC_ITEM_TREE::findOrCreateContainer | ( | ccHObject * | parent, |
| const QString & | containerName, | ||
| ecvMainAppInterface * | app | ||
| ) |
Find a matching container or create a new one if it is not existing in the parent's hierarchy tree. The newly created object is added to the parent object as a child.
| [in] | parent | The parent object of the container. |
| [in] | containerName | The name of the new container object. |
| [in] | app | The ecvMainAppInterface object. |
| std::invalid_argument | Exception is thrown if parent is nullptr |
Definition at line 51 of file ccItemTree.cpp.
References ccHObject::addChild(), ecvMainAppInterface::addToDB(), findItemInHierarchy(), and CV_TYPES::HIERARCHY_OBJECT.