ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvDBRoot.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 // Qt
11 #include <QAbstractItemModel>
12 #include <QPoint>
13 #include <QTreeView>
14 
15 // CV_DB_LIB
16 #include <ecvHObject.h>
17 
18 // System
19 #include <unordered_set>
20 
21 class QAction;
22 class QStandardItemModel;
23 
25 class ccHObject;
26 
29  size_t selCount;
30  size_t sfCount;
31  size_t colorCount;
32  size_t normalsCount;
33  size_t octreeCount;
34  size_t cloudCount;
35  size_t gridCound;
36  size_t groupCount;
37  size_t polylineCount;
38  size_t planeCount;
39  size_t circleCount;
40  size_t meshCount;
41  size_t imageCount;
42  size_t sensorCount;
45  size_t kdTreeCount;
46 
47  void reset() { memset(this, 0, sizeof(dbTreeSelectionInfo)); }
48 };
49 
51 class ccCustomQTreeView : public QTreeView {
52  Q_OBJECT
53 
54 public:
56  explicit ccCustomQTreeView(QWidget* parent) : QTreeView(parent) {}
57 
58 protected:
59  // inherited from QTreeView
60  virtual QItemSelectionModel::SelectionFlags selectionCommand(
61  const QModelIndex& index, const QEvent* event = nullptr) const;
62 };
63 
65 class ccDBRoot : public QAbstractItemModel {
66  Q_OBJECT
67 
68 public:
70 
74  ccDBRoot(ccCustomQTreeView* dbTreeWidget,
75  QTreeView* propertiesTreeWidget,
76  QObject* parent = nullptr);
77 
79  virtual ~ccDBRoot() override;
80 
81  void hide();
82  void show();
83 
86 
88  void hidePropertiesView();
90  void updatePropertiesView();
91 
94  return m_ccPropDelegate;
95  }
96 
98  void addElement(ccHObject* object, bool autoExpand = true);
99 
101 
103  void removeElement(ccHObject* object);
104 
106 
110  void removeElements(ccHObject::Container& objects);
111 
113  ccHObject* find(int uniqueID) const;
114 
118 
121  size_t getSelectedEntities(ccHObject::Container& selectedEntities,
123  dbTreeSelectionInfo* info = nullptr);
124 
126  void expandElement(ccHObject* object, bool state);
127 
129  void unselectEntity(ccHObject* obj);
130 
132  void unselectAllEntities();
133 
135  void unloadAll();
136 
137  // inherited from QAbstractItemModel
138  virtual QVariant data(const QModelIndex& index, int role) const override;
139  virtual QModelIndex index(
140  int row,
141  int column,
142  const QModelIndex& parentIndex = QModelIndex()) const override;
143  QModelIndex index(ccHObject* object);
144  virtual QModelIndex parent(const QModelIndex& index) const override;
145  virtual int rowCount(
146  const QModelIndex& parent = QModelIndex()) const override;
147  virtual int columnCount(
148  const QModelIndex& parent = QModelIndex()) const override;
149  virtual Qt::ItemFlags flags(const QModelIndex& index) const override;
150  virtual bool setData(const QModelIndex& index,
151  const QVariant& value,
152  int role = Qt::EditRole) override;
153  virtual Qt::DropActions supportedDropActions() const override;
154  virtual bool dropMimeData(const QMimeData* data,
155  Qt::DropAction action,
156  int row,
157  int column,
158  const QModelIndex& parent) override;
159  virtual QMap<int, QVariant> itemData(
160  const QModelIndex& index) const override;
161  virtual Qt::DropActions supportedDragActions() const override {
162  return Qt::MoveAction;
163  }
164 
165 public slots:
166  void changeSelection(const QItemSelection& selected,
167  const QItemSelection& deselected);
169  void redrawCCObject(ccHObject* object, bool forceRedraw = true);
170  void redrawCCObjectAndChildren(ccHObject* object, bool forceRedraw = true);
171  void updateCCObject(ccHObject* object);
172  void deleteSelectedEntities();
173 
175 
181  void selectEntity(ccHObject* obj, bool forceAdditiveSelection = false);
182 
184 
186  void selectEntities(std::unordered_set<int> entIDs);
187 
189 
193  void selectEntities(const ccHObject::Container& entities,
194  bool incremental = false);
195 
196 protected:
206  };
207 
211 
212 protected slots:
213  void showContextMenu(const QPoint&);
214 
215  void expandBranch();
216  void collapseBranch();
218  void sortChildrenAZ();
219  void sortChildrenZA();
220  void sortChildrenType();
221  void selectByTypeAndName();
222  void exportImages();
223 
224  inline void toggleSelectedEntities() {
226  }
229  }
232  }
235  }
236  inline void toggleSelectedEntitiesSF() {
238  }
241  }
244  }
245 
246  void addEmptyGroup();
249  void enableBubbleViewMode();
250  void editLabelScalarValue();
251 
252 signals:
253  void selectionChanged();
254  void dbIsEmpty();
255  void dbIsNotEmptyAnymore();
256 
257 protected:
259 
262  void alignCameraWithEntity(bool reverse);
263 
265  void showPropertiesView(ccHObject* obj);
266 
269 
272 
274  void expandOrCollapseHoveredBranch(bool expand);
275 
278  bool typeIsExclusive = true,
279  QString name = QString(),
280  bool nameIsRegex = false);
281 
284 
286  QTreeView* m_dbTreeWidget;
287 
290 
292  QStandardItemModel* m_propertiesModel;
295 
297  QAction* m_expandBranch;
311  QAction* m_exportImages;
329  QAction* m_addEmptyGroup;
338 
341 };
WIDGET_T2D
@ WIDGET_T2D
Definition: ecvDrawContext.h:95
ccHObjectCaster::ToImage
static ccImage * ToImage(ccHObject *obj)
Definition: ecvHObjectCaster.cpp:257
ecvFacet.h
ccHObject::removeDependencyFlag
void removeDependencyFlag(ccHObject *otherObject, DEPENDENCY_FLAGS flag)
Removes a given dependency flag.
Definition: ecvHObject.cpp:506
ccDrawableObject::toggleVisibility
virtual void toggleVisibility()
Toggles visibility.
Definition: ecvDrawableObject.h:43
ccDBRoot::hide
void hide()
Definition: ecvDBRoot.cpp:388
CV_TYPES::EXTRU
@ EXTRU
Definition: CVTypes.h:130
ccDBRoot::itemData
virtual QMap< int, QVariant > itemData(const QModelIndex &index) const override
Definition: ecvDBRoot.cpp:1389
ccPointCloud::hasColors
bool hasColors() const override
Returns whether colors are enabled or not.
Definition: ecvPointCloud.cpp:1689
CV_TYPES::IMAGE
@ IMAGE
Definition: CVTypes.h:114
ccHObject::filterChildren
unsigned filterChildren(Container &filteredChildren, bool recursive=false, CV_CLASS_ENUM filter=CV_TYPES::OBJECT, bool strict=false) const
Collects the children corresponding to a certain pattern.
Definition: ecvHObject.cpp:611
ccMesh::hasTriNormals
bool hasTriNormals() const override
Returns whether the mesh has per-triangle normals.
Definition: ecvMesh.cpp:3589
filename
std::string filename
Definition: PointCloudIO.cpp:47
ccGLMatrixTpl::getColumnAsVec3D
Vector3Tpl< T > getColumnAsVec3D(unsigned index) const
Returns a copy of a given column as a CCVector3.
Definition: ecvGLMatrixTpl.h:919
cc2DViewportLabel
2D viewport label
Definition: ecv2DViewportLabel.h:14
ccObject::isKindOf
bool isKindOf(CV_CLASS_ENUM type) const
Definition: ecvObject.h:128
dbTreeSelectionInfo::kdTreeCount
size_t kdTreeCount
Definition: ecvDBRoot.h:45
CV_TYPES::VIEWPORT_2D_LABEL
@ VIEWPORT_2D_LABEL
Definition: CVTypes.h:142
ccDBRoot::expandElement
void expandElement(ccHObject *object, bool state)
Expands tree at a given node.
Definition: ecvDBRoot.cpp:477
ccDBRoot::selectChildrenByTypeAndName
void selectChildrenByTypeAndName(CV_CLASS_ENUM type, bool typeIsExclusive=true, QString name=QString(), bool nameIsRegex=false)
Selects objects by type and/or name.
Definition: ecvDBRoot.cpp:1971
c_propViewLeftColumnWidth
static const int c_propViewLeftColumnWidth
Definition: ecvDBRoot.cpp:60
CV_TYPES::CAMERA_SENSOR
@ CAMERA_SENSOR
Definition: CVTypes.h:118
ccDBRoot::m_deleteSelectedEntities
QAction * m_deleteSelectedEntities
Context menu action: delete selected entities.
Definition: ecvDBRoot.h:313
QtCompat.h
ccHObject::getIndex
int getIndex() const
Returns index relatively to its parent or -1 if no parent.
Definition: ecvHObject.cpp:695
ccScalarField::computeMinAndMax
void computeMinAndMax() override
Determines the min and max values.
Definition: ecvScalarField.cpp:145
ccDBRoot::m_dbTreeWidget
QTreeView * m_dbTreeWidget
Associated widget for DB tree.
Definition: ecvDBRoot.h:286
cloudViewer::BoundingBoxTpl::getCenter
Vector3Tpl< T > getCenter() const
Returns center.
Definition: BoundingBox.h:164
ecvPropertiesTreeDelegate.h
ecvDisplayTools::RemoveWidgets
static void RemoveWidgets(const WIDGETS_PARAMETER &param, bool update=false)
Definition: ecvDisplayTools.cpp:3978
CV_TYPES::QUADRIC
@ QUADRIC
Definition: CVTypes.h:131
CV_TYPES::TEX_COORDS_ARRAY
@ TEX_COORDS_ARRAY
Definition: CVTypes.h:139
ccDBRoot::m_selectByTypeAndName
QAction * m_selectByTypeAndName
Context menu action: select object by type and/or by name.
Definition: ecvDBRoot.h:309
ccHObjectCaster::To2DViewportLabel
static cc2DViewportLabel * To2DViewportLabel(ccHObject *obj)
Converts current object to cc2DViewportLabel (if possible)
Definition: ecvHObjectCaster.cpp:267
ccDBRoot::expandOrCollapseHoveredBranch
void expandOrCollapseHoveredBranch(bool expand)
Expands or collapses hovered item.
Definition: ecvDBRoot.cpp:1590
ccDBRoot::TG_COLOR
@ TG_COLOR
Definition: ecvDBRoot.h:201
DBRootIcons
Definition: ecvDBRoot.cpp:88
ccHObject::getParent
ccHObject * getParent() const
Returns parent object.
Definition: ecvHObject.h:245
ccDBRoot::deleteSelectedEntities
void deleteSelectedEntities()
Definition: ecvDBRoot.cpp:593
ccDBRoot::TG_ENABLE
@ TG_ENABLE
Definition: ecvDBRoot.h:199
ccDBRoot::m_toggleSelectedEntities
QAction * m_toggleSelectedEntities
Context menu action: enabled/disable selected entities.
Definition: ecvDBRoot.h:315
cc2DLabel::updateLabel
void updateLabel()
Definition: ecv2DLabel.cpp:312
ccDBRoot::showPropertiesView
void showPropertiesView(ccHObject *obj)
Shows properties view for a given element.
Definition: ecvDBRoot.cpp:1201
ccMesh::size
virtual unsigned size() const override
Returns the number of triangles.
Definition: ecvMesh.cpp:2143
CV_TYPES::RGB_COLOR_ARRAY
@ RGB_COLOR_ARRAY
Definition: CVTypes.h:137
ccMesh::getOwnBB
ccBBox getOwnBB(bool withGLFeatures=false) override
Returns the entity's own bounding-box.
Definition: ecvMesh.cpp:2413
ccDBRoot::index
virtual QModelIndex index(int row, int column, const QModelIndex &parentIndex=QModelIndex()) const override
Definition: ecvDBRoot.cpp:921
ccDBRoot::sortChildrenAZ
void sortChildrenAZ()
Definition: ecvDBRoot.cpp:1828
ccPropertiesTreeDelegate::unbind
virtual void unbind()
Definition: ecvPropertiesTreeDelegate.cpp:189
ccHObject::getChildIndex
int getChildIndex(const ccHObject *aChild) const
Returns child index.
Definition: ecvHObject.cpp:639
ccHObjectCaster::ToPolyline
static ccPolyline * ToPolyline(ccHObject *obj)
Converts current object to ccPolyline (if possible)
Definition: ecvHObjectCaster.cpp:141
cloudViewer::ScalarField::getValue
ScalarType & getValue(std::size_t index)
Definition: ScalarField.h:92
CV_TYPES::GBL_SENSOR
@ GBL_SENSOR
Definition: CVTypes.h:117
ccDBRoot::toggleSelectedEntitiesVisibility
void toggleSelectedEntitiesVisibility()
Definition: ecvDBRoot.h:227
data
GraphType data
Definition: graph_cut.cc:138
ccDBRoot::addEmptyGroup
void addEmptyGroup()
Definition: ecvDBRoot.cpp:2074
ccHObjectCaster::ToPointCloud
static ccPointCloud * ToPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccPointCloud.
Definition: ecvHObjectCaster.cpp:54
ccDBRoot::reflectObjectPropChange
void reflectObjectPropChange(ccHObject *obj)
Definition: ecvDBRoot.cpp:1216
CV_TYPES::MESH
@ MESH
Definition: CVTypes.h:105
ccHObject::removeChild
void removeChild(ccHObject *child)
Definition: ecvHObject.cpp:1056
ccGLMatrixd
Double version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:56
signals
#define signals
Definition: PythonPlugin.cpp:26
ccHObject::setRedrawFlagRecursive
void setRedrawFlagRecursive(bool redraw=false)
Definition: ecvHObject.cpp:772
ccObject::setName
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
ccDBRoot::dbIsEmpty
void dbIsEmpty()
ecvDisplayTools::UpdateScreen
static void UpdateScreen()
Definition: ecvDisplayTools.h:1242
ccHObject::getChildCountRecursive
unsigned int getChildCountRecursive() const
Returns the total number of children under this object recursively.
Definition: ecvHObject.cpp:584
ccObject::isA
bool isA(CV_CLASS_ENUM type) const
Definition: ecvObject.h:131
cloudViewer::PointCloudTpl::getNumberOfScalarFields
unsigned getNumberOfScalarFields() const
Returns the number of associated (and active) scalar fields.
Definition: PointCloudTpl.h:345
CVLog::Print
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
ccGLMatrixTpl::setTranslation
void setTranslation(const Vector3Tpl< float > &Tr)
Sets translation (float version)
Definition: ecvGLMatrixTpl.h:836
ccDBRoot::supportedDropActions
virtual Qt::DropActions supportedDropActions() const override
Definition: ecvDBRoot.cpp:1338
ccDBRoot::m_propertiesModel
QStandardItemModel * m_propertiesModel
Selected entity's properties data model.
Definition: ecvDBRoot.h:292
CV_TYPES::POINT_CLOUD
@ POINT_CLOUD
Definition: CVTypes.h:104
ccDBRoot::updatePropertiesView
void updatePropertiesView()
Updates properties view.
Definition: ecvDBRoot.cpp:1225
ecvDisplayTools::SetRemoveAllFlag
static void SetRemoveAllFlag(bool state)
Definition: ecvDisplayTools.h:727
ecvProgressDialog::start
virtual void start() override
Definition: ecvProgressDialog.cpp:70
ccSelectChildrenDlg::getSelectedName
QString getSelectedName()
Returns the selected name (if any)
Definition: ecvSelectChildrenDlg.cpp:66
ccDBRoot::alignCameraWithEntityDirect
void alignCameraWithEntityDirect()
Definition: ecvDBRoot.h:247
ccGenericMesh::getAssociatedCloud
virtual ccGenericPointCloud * getAssociatedCloud() const =0
Returns the vertices cloud.
ccDBRoot::redrawCCObjectAndChildren
void redrawCCObjectAndChildren(ccHObject *object, bool forceRedraw=true)
Definition: ecvDBRoot.cpp:1250
CV_TYPES::FACET
@ FACET
Definition: CVTypes.h:109
ccDBRoot::m_enableBubbleViewMode
QAction * m_enableBubbleViewMode
Context menu action: enable bubble-view (on a sensor)
Definition: ecvDBRoot.h:335
ecvDisplayTools.h
ccDBRoot::ccDBRoot
ccDBRoot(ccCustomQTreeView *dbTreeWidget, QTreeView *propertiesTreeWidget, QObject *parent=nullptr)
Default constructor.
Definition: ecvDBRoot.cpp:262
dbTreeSelectionInfo::groupCount
size_t groupCount
Definition: ecvDBRoot.h:36
CVLog.h
cloudViewer::PointCloudTpl::size
unsigned size() const override
Definition: PointCloudTpl.h:38
ccPointCloud
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
ccHObject::swapChildren
void swapChildren(unsigned firstChildIndex, unsigned secondChildIndex)
Swaps two children.
Definition: ecvHObject.cpp:687
ccDBRoot::toggleSelectedEntities
void toggleSelectedEntities()
Definition: ecvDBRoot.h:224
ccDrawableObject::toggleNormals
virtual void toggleNormals()
Toggles normals display state.
Definition: ecvDrawableObject.h:95
cc2DLabel
2D label (typically attached to points)
Definition: ecv2DLabel.h:22
ccPropertiesTreeDelegate
GUI properties list dialog element.
Definition: ecvPropertiesTreeDelegate.h:45
ccHObjectCaster::To2DLabel
static cc2DLabel * To2DLabel(ccHObject *obj)
Converts current object to cc2DLabel (if possible)
Definition: ecvHObjectCaster.cpp:262
ccDrawableObject::setSelected
virtual void setSelected(bool state)
Selects/Unselects entity.
Definition: ecvDrawableObject.h:70
CV_TYPES::CYLINDER
@ CYLINDER
Definition: CVTypes.h:126
ccDBRoot::toggleSelectedEntitiesColor
void toggleSelectedEntitiesColor()
Definition: ecvDBRoot.h:230
ccSelectChildrenDlg::getSelectedType
CV_CLASS_ENUM getSelectedType()
Returns the selected type.
Definition: ecvSelectChildrenDlg.cpp:56
ccDBRoot::expandBranch
void expandBranch()
Definition: ecvDBRoot.cpp:1586
ccSensor::hideShowDrawings
virtual void hideShowDrawings(CC_DRAW_CONTEXT &context)
Definition: ecvSensor.cpp:56
ccPlane::getNormal
CCVector3 getNormal() const override
Returns the entity normal.
Definition: ecvPlane.h:73
AxesGridProperties
Data Axes Grid properties structure Encapsulates all properties for vtkCubeAxesActor configuration.
Definition: ecvDisplayTools.h:54
ccDBRoot::~ccDBRoot
virtual ~ccDBRoot() override
Destructor.
Definition: ecvDBRoot.cpp:382
ccGenericPrimitive::getTransformation
virtual ccGLMatrix & getTransformation()
Returns the transformation that is currently applied to the vertices.
Definition: ecvGenericPrimitive.h:77
ccDBRoot::TOGGLE_PROPERTY
TOGGLE_PROPERTY
Entity property that can be toggled.
Definition: ecvDBRoot.h:198
ccDBRoot::supportedDragActions
virtual Qt::DropActions supportedDragActions() const override
Definition: ecvDBRoot.h:161
ccDBRoot::exportImages
void exportImages()
Definition: ecvDBRoot.cpp:2159
CV_TYPES::DISC
@ DISC
Definition: CVTypes.h:146
cc2DLabel::getPickedPoint
const PickedPoint & getPickedPoint(unsigned index) const
Returns a given point.
Definition: ecv2DLabel.h:194
ccDrawableObject::toggleSF
virtual void toggleSF()
Toggles SF display state.
Definition: ecvDrawableObject.h:114
dbTreeSelectionInfo::octreeCount
size_t octreeCount
Definition: ecvDBRoot.h:33
cloudViewer::utility::swap
void swap(optional< T > &x, optional< T > &y) noexcept(noexcept(x.swap(y)))
Definition: Optional.h:890
ccDBRoot::removeElement
void removeElement(ccHObject *object)
Removes an element from the DB tree.
Definition: ecvDBRoot.cpp:554
dbTreeSelectionInfo::cameraSensorCount
size_t cameraSensorCount
Definition: ecvDBRoot.h:44
ccObject::isEnabled
virtual bool isEnabled() const
Returns whether the object is enabled or not.
Definition: ecvObject.h:97
ccDBRoot::updateCCObject
void updateCCObject(ccHObject *object)
Definition: ecvDBRoot.cpp:1237
CV_TYPES::CALIBRATED_IMAGE
@ CALIBRATED_IMAGE
Definition: CVTypes.h:115
ecvPlane.h
ccHObject::Container
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
ccSelectChildrenDlg
Minimal dialog to pick one element in a list (combo box)
Definition: ecvSelectChildrenDlg.h:21
MainWindow::TheInstance
static MainWindow * TheInstance()
Returns the unique instance of this object.
Definition: MainWindow.cpp:2037
ccDrawableObject::hasScalarFields
virtual bool hasScalarFields() const
Returns whether one or more scalar fields are instantiated.
Definition: ecvDrawableObject.h:105
ccDrawableObject::hasNormals
virtual bool hasNormals() const
Returns whether normals are enabled or not.
Definition: ecvDrawableObject.h:89
CV_TYPES::SENSOR
@ SENSOR
Definition: CVTypes.h:116
ccSelectChildrenDlg::getTypeIsUsed
bool getTypeIsUsed() const
Definition: ecvSelectChildrenDlg.cpp:78
CanDetachCloud
static bool CanDetachCloud(const ccHObject *obj)
Definition: ecvDBRoot.cpp:63
ccDrawableObject::isSelected
virtual bool isSelected() const
Returns whether entity is selected or not.
Definition: ecvDrawableObject.h:68
CVMiscTools.h
CV_TYPES::POINT_OCTREE
@ POINT_OCTREE
Definition: CVTypes.h:110
ccGenericPointCloud::getOctree
virtual ccOctree::Shared getOctree() const
Returns the associated octree (if any)
Definition: ecvGenericPointCloud.cpp:97
ccHObject::getDependencyFlagsWith
int getDependencyFlagsWith(const ccHObject *otherObject)
Returns the dependency flags with a given object.
Definition: ecvHObject.cpp:487
ccDBRoot::enableBubbleViewMode
void enableBubbleViewMode()
Definition: ecvDBRoot.cpp:2088
ccHObject::getClassID
CV_CLASS_ENUM getClassID() const override
Returns class ID.
Definition: ecvHObject.h:232
CV_TYPES::MATERIAL_SET
@ MATERIAL_SET
Definition: CVTypes.h:132
ccDBRoot::TG_NORMAL
@ TG_NORMAL
Definition: ecvDBRoot.h:203
CVLog::Error
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
CV_CLASS_ENUM
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Definition: CVTypes.h:97
context
ImGuiContext * context
Definition: Window.cpp:76
ccDBRoot::rowCount
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: ecvDBRoot.cpp:983
CV_TYPES::MESH_GROUP
@ MESH_GROUP
Definition: CVTypes.h:107
ccDBRoot::TG_VISIBLE
@ TG_VISIBLE
Definition: ecvDBRoot.h:200
ccDBRoot::editLabelScalarValue
void editLabelScalarValue()
Definition: ecvDBRoot.cpp:2106
slots
#define slots
Definition: PythonPlugin.cpp:25
ecv2DViewportLabel.h
size
int size
Definition: FileIOFactory.cpp:130
ccDBRoot::TG_MATERIAL
@ TG_MATERIAL
Definition: ecvDBRoot.h:204
CV_TYPES::SPHERE
@ SPHERE
Definition: CVTypes.h:121
dbTreeSelectionInfo::normalsCount
size_t normalsCount
Definition: ecvDBRoot.h:32
ccFacet::getNormal
CCVector3 getNormal() const override
Returns the entity normal.
Definition: ecvFacet.h:63
ccDBRoot::m_sortChildrenType
QAction * m_sortChildrenType
Context menu action: sort children by type.
Definition: ecvDBRoot.h:307
ccDBRoot::setData
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
Definition: ecvDBRoot.cpp:777
ccDrawableObject::toggleColors
virtual void toggleColors()
Toggles colors display state.
Definition: ecvDrawableObject.h:86
ccDBRoot::changeSelection
void changeSelection(const QItemSelection &selected, const QItemSelection &deselected)
Definition: ecvDBRoot.cpp:999
event
MouseEvent event
Definition: BitmapWindowSystem.cpp:61
ccHObjectCaster::ToSensor
static ccSensor * ToSensor(ccHObject *obj)
Converts current object to ccSensor (if possible)
Definition: ecvHObjectCaster.cpp:240
ccGenericPointCloud
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
ecvProgressDialog::isCancelRequested
virtual bool isCancelRequested() override
Checks if the process should be canceled.
Definition: ecvProgressDialog.h:55
ccDBRoot::m_editLabelScalarValue
QAction * m_editLabelScalarValue
Context menu action: change current scalar value (via a 2D label)
Definition: ecvDBRoot.h:337
ccDBRoot::selectEntities
void selectEntities(std::unordered_set< int > entIDs)
Selects multiple entities at once (shortcut to the other version)
Definition: ecvDBRoot.cpp:1109
cc2DViewportLabel::updateLabel
void updateLabel()
Definition: ecv2DViewportLabel.cpp:78
Vector3Tpl< double >
ccHObject::getIcon
virtual QIcon getIcon() const
Returns the icon associated to this entity.
Definition: ecvHObject.cpp:248
ccDBRoot::unselectEntity
void unselectEntity(ccHObject *obj)
Unselects a given entity.
Definition: ecvDBRoot.cpp:1035
ecvDisplayTools::SetRedrawRecursive
static void SetRedrawRecursive(bool redraw=false)
Definition: ecvDisplayTools.cpp:1992
ccDBRoot::gatherRecursiveInformation
void gatherRecursiveInformation()
Definition: ecvDBRoot.cpp:1699
cloudViewer::ScalarField::getName
const char * getName() const
Returns scalar field name.
Definition: ScalarField.h:43
ccDBRoot::m_alignCameraWithEntityReverse
QAction * m_alignCameraWithEntityReverse
Context menu action: reverse of m_alignCameraWithEntity.
Definition: ecvDBRoot.h:333
ccSensor
Generic sensor interface.
Definition: ecvSensor.h:27
ccDBRoot::unloadAll
void unloadAll()
Unloads all entities.
Definition: ecvDBRoot.cpp:398
CV_TYPES::CONE
@ CONE
Definition: CVTypes.h:123
ccDBRoot::selectByTypeAndName
void selectByTypeAndName()
Definition: ecvDBRoot.cpp:1900
ecv2DLabel.h
CV_TYPES::PLANE
@ PLANE
Definition: CVTypes.h:120
ecvGenericPointCloud.h
ccHObject::hideBB
void hideBB(CC_DRAW_CONTEXT context)
Definition: ecvHObject.cpp:1640
ccHObject::redrawDisplay
virtual void redrawDisplay(bool forceRedraw=true, bool only2D=false)
Redraws associated display.
Definition: ecvHObject.cpp:1734
ccSelectChildrenDlg::getNameMatchIsUsed
bool getNameMatchIsUsed() const
if performing name-match (regex or not)
Definition: ecvSelectChildrenDlg.cpp:86
ccHObject::find
ccHObject * find(unsigned uniqueID)
Finds an entity in this object hierarchy.
Definition: ecvHObject.cpp:594
CV_TYPES::POLY_LINE
@ POLY_LINE
Definition: CVTypes.h:112
ccDrawableObject::nameShownIn3D
virtual bool nameShownIn3D() const
Returns whether name is displayed in 3D or not.
Definition: ecvDrawableObject.h:128
ecvProgressDialog::stop
virtual void stop() override
Notifies the fact that the process has ended.
Definition: ecvProgressDialog.cpp:76
CV_TYPES::TRANS_BUFFER
@ TRANS_BUFFER
Definition: CVTypes.h:144
ccDBRoot::m_ccPropDelegate
ccPropertiesTreeDelegate * m_ccPropDelegate
Selected entity's properties delegate.
Definition: ecvDBRoot.h:294
ccDBRoot::sortChildrenZA
void sortChildrenZA()
Definition: ecvDBRoot.cpp:1830
ecvImage.h
ccHObject::showBB
void showBB(CC_DRAW_CONTEXT context)
Definition: ecvHObject.cpp:1647
CV_TYPES::CUSTOM_H_OBJECT
@ CUSTOM_H_OBJECT
Definition: CVTypes.h:179
cc2DLabel::size
unsigned size() const
Returns current size.
Definition: ecv2DLabel.h:74
ccCustomQTreeView::ccCustomQTreeView
ccCustomQTreeView(QWidget *parent)
Default constructor.
Definition: ecvDBRoot.h:56
ccDBRoot::getRootEntity
ccHObject * getRootEntity()
Returns associated root object.
Definition: ecvDBRoot.cpp:421
ccDBRoot::toggleSelectedEntitiesNormals
void toggleSelectedEntitiesNormals()
Definition: ecvDBRoot.h:233
ecvProgressDialog
Graphical progress indicator (thread-safe)
Definition: ecvProgressDialog.h:27
ccDBRoot::toggleSelectedEntitiesMat
void toggleSelectedEntitiesMat()
Definition: ecvDBRoot.h:239
ccHObject::addDependency
void addDependency(ccHObject *otherObject, int flags, bool additive=true)
Adds a new dependence (additive or not)
Definition: ecvHObject.cpp:455
ccDBRoot::SORT_Z2A
@ SORT_Z2A
Definition: ecvDBRoot.h:268
CV_TYPES::LABEL_2D
@ LABEL_2D
Definition: CVTypes.h:140
ecvMesh.h
ccDBRoot::sortSelectedEntitiesChildren
void sortSelectedEntitiesChildren(SortRules rule)
Sorts selected entities children.
Definition: ecvDBRoot.cpp:1836
ccPointCloud::hasNormals
bool hasNormals() const override
Returns whether normals are enabled or not.
Definition: ecvPointCloud.cpp:1693
dbTreeSelectionInfo::cloudCount
size_t cloudCount
Definition: ecvDBRoot.h:34
ecvScalarField.h
ccSelectChildrenDlg::getNameIsRegex
bool getNameIsRegex() const
if the name must be considered as regex
Definition: ecvSelectChildrenDlg.cpp:82
ccDBRoot::m_alignCameraWithEntity
QAction * m_alignCameraWithEntity
Context menu action: use 3-points labels or planes to orient camera.
Definition: ecvDBRoot.h:331
ccGBLSensor
Ground-based Laser sensor.
Definition: ecvGBLSensor.h:26
ccDBRoot::alignCameraWithEntity
void alignCameraWithEntity(bool reverse)
Aligns the camera with the currently selected entity.
Definition: ecvDBRoot.cpp:1628
ecvProgressDialog.h
WIDGET_RECTANGLE_2D
@ WIDGET_RECTANGLE_2D
Definition: ecvDrawContext.h:85
ccDBRoot::SORT_A2Z
@ SORT_A2Z
Definition: ecvDBRoot.h:268
cc2DLabel::PickedPoint::index
unsigned index
Point/triangle index.
Definition: ecv2DLabel.h:128
ccDBRoot::toggleSelectedEntities3DName
void toggleSelectedEntities3DName()
Definition: ecvDBRoot.h:242
ccDBRoot::countSelectedEntities
int countSelectedEntities(CV_CLASS_ENUM filter=CV_TYPES::OBJECT)
Definition: ecvDBRoot.cpp:1256
ccHObject::setForceRedrawRecursive
void setForceRedrawRecursive(bool redraw=false)
Definition: ecvHObject.cpp:783
ccDBRoot::m_expandBranch
QAction * m_expandBranch
Context menu action: expand tree branch.
Definition: ecvDBRoot.h:297
ccDBRoot::sortChildrenType
void sortChildrenType()
Definition: ecvDBRoot.cpp:1832
ccPropertiesTreeDelegate::ccObjectAppearanceChanged
void ccObjectAppearanceChanged(ccHObject *hObject, bool forceRedraw=true) const
ecvDisplayTools::getDataAxesGridProperties
virtual void getDataAxesGridProperties(const QString &viewID, AxesGridProperties &props, int viewport=0) const
Get Data Axes Grid properties (Virtual interface for derived classes)
Definition: ecvDisplayTools.h:552
ccPropertiesTreeDelegate::ccObjectAndChildrenAppearanceChanged
void ccObjectAndChildrenAppearanceChanged(ccHObject *hObject, bool forceRedraw=true) const
ccDBRoot::m_toggleSelectedEntitiesNormals
QAction * m_toggleSelectedEntitiesNormals
Context menu action: hide/show selected entities normals.
Definition: ecvDBRoot.h:321
AxesGridProperties::visible
bool visible
Definition: ecvDisplayTools.h:56
image
std::shared_ptr< core::Tensor > image
Definition: FilamentRenderer.cpp:184
ccDBRoot::m_sortChildrenAZ
QAction * m_sortChildrenAZ
Context menu action: sort children in alphabetical order.
Definition: ecvDBRoot.h:303
CV_TYPES::BOX
@ BOX
Definition: CVTypes.h:128
ccDBRoot::parent
virtual QModelIndex parent(const QModelIndex &index) const override
Definition: ecvDBRoot.cpp:963
ecvGenericPrimitive.h
ccDBRoot::redrawCCObject
void redrawCCObject(ccHObject *object, bool forceRedraw=true)
Definition: ecvDBRoot.cpp:1245
ccDBRoot::columnCount
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const override
Definition: ecvDBRoot.cpp:994
ccGenericPrimitive::hideShowDrawings
virtual void hideShowDrawings(CC_DRAW_CONTEXT &context)
Definition: ecvGenericPrimitive.cpp:219
ccDBRoot::m_toggleSelectedEntitiesMat
QAction * m_toggleSelectedEntitiesMat
Context menu action: hide/show selected entities materials/textures.
Definition: ecvDBRoot.h:323
ccDBRoot::data
virtual QVariant data(const QModelIndex &index, int role) const override
Definition: ecvDBRoot.cpp:690
ccPropertiesTreeDelegate::ccObjectPropertiesChanged
void ccObjectPropertiesChanged(ccHObject *hObject) const
ccDBRoot::m_collapseBranch
QAction * m_collapseBranch
Context menu action: collapse tree branch.
Definition: ecvDBRoot.h:299
CV_TYPES::POINT_KDTREE
@ POINT_KDTREE
Definition: CVTypes.h:111
dbTreeSelectionInfo::sensorCount
size_t sensorCount
Definition: ecvDBRoot.h:42
ccDBRoot::m_toggleSelectedEntities3DName
QAction * m_toggleSelectedEntities3DName
Context menu action: hide/show selected entities 3D name.
Definition: ecvDBRoot.h:327
ccDBRoot::collapseBranch
void collapseBranch()
Definition: ecvDBRoot.cpp:1588
ccSelectChildrenDlg::addType
void addType(QString typeName, CV_CLASS_ENUM type)
Add an element to the 'type' combo box.
Definition: ecvSelectChildrenDlg.cpp:38
dbTreeSelectionInfo::colorCount
size_t colorCount
Definition: ecvDBRoot.h:31
cc2DLabel::PickedPoint
Picked point descriptor.
Definition: ecv2DLabel.h:122
dbTreeSelectionInfo::meshCount
size_t meshCount
Definition: ecvDBRoot.h:40
ccHObject::getBB_recursive
virtual ccBBox getBB_recursive(bool withGLFeatures=false, bool onlyEnabledChildren=true)
Returns the bounding-box of this entity and it's children.
Definition: ecvHObject.cpp:759
Q_GLOBAL_STATIC
Q_GLOBAL_STATIC(PrivatePluginManager, sPluginManager)
ecvDisplayTools::SetRemoveViewIDs
static void SetRemoveViewIDs(std::vector< removeInfo > &removeinfos)
Definition: ecvDisplayTools.cpp:2113
dbTreeSelectionInfo::imageCount
size_t imageCount
Definition: ecvDBRoot.h:41
ecvDBRoot.h
ecvHObjectCaster.h
DBRootIcons::icon
const QIcon & icon(CV_CLASS_ENUM id, bool locked)
Definition: ecvDBRoot.cpp:90
ccHObject::getChildrenNumber
unsigned getChildrenNumber() const
Returns the number of children.
Definition: ecvHObject.h:312
ccDBRoot::hidePropertiesView
void hidePropertiesView()
Hides properties view.
Definition: ecvDBRoot.cpp:1210
ccPointCloud::gridCount
size_t gridCount() const
Returns the number of associated grids.
Definition: ecvPointCloud.h:441
ccDBRoot::find
ccHObject * find(int uniqueID) const
Finds an element in DB.
Definition: ecvDBRoot.cpp:1197
MainWindow.h
ccDBRoot::TG_SF
@ TG_SF
Definition: ecvDBRoot.h:202
cloudViewer::GenericIndexedCloud::getPoint
virtual const CCVector3 * getPoint(unsigned index) const =0
Returns the ith point.
ccObject::getUniqueID
virtual unsigned getUniqueID() const
Returns object unique ID.
Definition: ecvObject.h:86
ccHObjectCaster::ToPrimitive
static ccGenericPrimitive * ToPrimitive(ccHObject *obj)
Converts current object to ccGenericPrimitive (if possible)
Definition: ecvHObjectCaster.cpp:167
ccDBRoot::getPropertiesDelegate
ccPropertiesTreeDelegate * getPropertiesDelegate()
Get properties tree delegate.
Definition: ecvDBRoot.h:93
CV_TYPES::DISH
@ DISH
Definition: CVTypes.h:129
CV_TYPES::SUB_MESH
@ SUB_MESH
Definition: CVTypes.h:106
MainWindow::refreshAll
void refreshAll(bool only2D=false, bool forceRedraw=true) override
Redraws all GL windows that have the 'refresh' flag on.
Definition: MainWindow.cpp:4391
ccDBRoot::toggleSelectedEntitiesSF
void toggleSelectedEntitiesSF()
Definition: ecvDBRoot.h:236
ecvSelectChildrenDlg.h
count
int count
Definition: FileIOFactory.cpp:132
CV_TYPES::HIERARCHY_OBJECT
@ HIERARCHY_OBJECT
Definition: CVTypes.h:103
CVLog::Warning
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
ecvGBLSensor.h
ccDBRoot::SortRules
SortRules
Entities sorting schemes.
Definition: ecvDBRoot.h:268
ccDBRoot::removeElements
void removeElements(ccHObject::Container &objects)
Removes several elements at once from the DB tree.
Definition: ecvDBRoot.cpp:513
ccDBRoot::m_sortChildrenZA
QAction * m_sortChildrenZA
Context menu action: sort children in reverse alphabetical order.
Definition: ecvDBRoot.h:305
ccDBRoot::showContextMenu
void showContextMenu(const QPoint &)
Definition: ecvDBRoot.cpp:2284
ccPointCloud::getCurrentDisplayedScalarField
ccScalarField * getCurrentDisplayedScalarField() const
Returns the currently displayed scalar (or 0 if none)
Definition: ecvPointCloud.cpp:3218
ecvDisplayTools::TheInstance
static ecvDisplayTools * TheInstance()
Definition: ecvDisplayTools.cpp:237
ecvMaterialSet.h
CV_TYPES::NORMALS_ARRAY
@ NORMALS_ARRAY
Definition: CVTypes.h:134
ccMesh
Triangular mesh.
Definition: ecvMesh.h:35
CV_TYPES::PRIMITIVE
@ PRIMITIVE
Definition: CVTypes.h:119
ccHObject::getChild
ccHObject * getChild(unsigned childPos) const
Returns the ith child.
Definition: ecvHObject.h:325
cloudViewer::CCMiscTools::ComputeBaseVectors
static void ComputeBaseVectors(const CCVector3 &N, CCVector3 &X, CCVector3 &Y)
Computes base vectors for a given 3D plane.
Definition: CVMiscTools.cpp:370
CV_TYPES::TORUS
@ TORUS
Definition: CVTypes.h:122
ccHObject::isAncestorOf
bool isAncestorOf(const ccHObject *anObject) const
Returns true if the current object is an ancestor of the specified one.
Definition: ecvHObject.cpp:699
ccDrawableObject::isVisible
virtual bool isVisible() const
Returns whether entity is visible or not.
Definition: ecvDrawableObject.h:38
ccDBRoot::dbIsNotEmptyAnymore
void dbIsNotEmptyAnymore()
WIDGETS_PARAMETER
Definition: ecvDrawContext.h:533
ccDBRoot::m_addEmptyGroup
QAction * m_addEmptyGroup
Context menu action: add empty group.
Definition: ecvDBRoot.h:329
dbTreeSelectionInfo::sfCount
size_t sfCount
Definition: ecvDBRoot.h:30
ccDrawableObject::hasColors
virtual bool hasColors() const
Returns whether colors are enabled or not.
Definition: ecvDrawableObject.h:80
ccHObject
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
CV_TYPES::NORMAL_INDEXES_ARRAY
@ NORMAL_INDEXES_ARRAY
Definition: CVTypes.h:135
ccObject::getName
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
ccDBRoot::getSelectedEntities
size_t getSelectedEntities(ccHObject::Container &selectedEntities, CV_CLASS_ENUM filter=CV_TYPES::OBJECT, dbTreeSelectionInfo *info=nullptr)
Definition: ecvDBRoot.cpp:1273
ecvPolyline.h
ccDBRoot
GUI database tree root.
Definition: ecvDBRoot.h:65
dbTreeSelectionInfo
Precise statistics about current selection.
Definition: ecvDBRoot.h:28
cloudViewer::ScalarField::setValue
void setValue(std::size_t index, ScalarType value)
Definition: ScalarField.h:96
ccDBRoot::addElement
void addElement(ccHObject *object, bool autoExpand=true)
Adds an element to the DB tree.
Definition: ecvDBRoot.cpp:423
ccDBRoot::m_toggleSelectedEntitiesSF
QAction * m_toggleSelectedEntitiesSF
Context menu action: hide/show selected entities SF.
Definition: ecvDBRoot.h:325
dbTreeSelectionInfo::gblSensorCount
size_t gblSensorCount
Definition: ecvDBRoot.h:43
CV_TYPES::CIRCLE
@ CIRCLE
Definition: CVTypes.h:113
ccDBRoot::unselectAllEntities
void unselectAllEntities()
Unselects all entities.
Definition: ecvDBRoot.cpp:1047
ccPropertiesTreeDelegate::getCurrentObject
ccHObject * getCurrentObject()
Returns currently bound object.
Definition: ecvPropertiesTreeDelegate.cpp:196
ccDBRoot::alignCameraWithEntityIndirect
void alignCameraWithEntityIndirect()
Definition: ecvDBRoot.h:248
ccGLDrawContext
Display context.
Definition: ecvDrawContext.h:365
ccDBRoot::show
void show()
Definition: ecvDBRoot.cpp:393
CV_TYPES::COORDINATESYSTEM
@ COORDINATESYSTEM
Definition: CVTypes.h:145
ccGenericPrimitive
Generic primitive interface.
Definition: ecvGenericPrimitive.h:16
ccDBRoot::selectionChanged
void selectionChanged()
ccDBRoot::m_toggleSelectedEntitiesVisibility
QAction * m_toggleSelectedEntitiesVisibility
Context menu action: hide/show selected entities.
Definition: ecvDBRoot.h:317
ccPropertiesTreeDelegate::fillModel
void fillModel(ccHObject *hObject)
Fill property view with QItems corresponding to object's type.
Definition: ecvPropertiesTreeDelegate.cpp:200
ccDBRoot::TG_3D_NAME
@ TG_3D_NAME
Definition: ecvDBRoot.h:205
ccDBRoot::m_toggleSelectedEntitiesColor
QAction * m_toggleSelectedEntitiesColor
Context menu action: hide/show selected entities color.
Definition: ecvDBRoot.h:319
dbTreeSelectionInfo::planeCount
size_t planeCount
Definition: ecvDBRoot.h:38
Tuple3Tpl::u
Type u[3]
Definition: CVGeom.h:139
ccFacet
Facet.
Definition: ecvFacet.h:25
ccDBRoot::m_treeRoot
ccHObject * m_treeRoot
Associated DB root.
Definition: ecvDBRoot.h:283
ccObject::isLocked
virtual bool isLocked() const
Returns whether the object is locked or not.
Definition: ecvObject.h:112
ccDBRoot::m_gatherInformation
QAction * m_gatherInformation
Context menu action: gather (recursive) information on selected entities.
Definition: ecvDBRoot.h:301
ccDBRoot::SORT_BY_TYPE
@ SORT_BY_TYPE
Definition: ecvDBRoot.h:268
cc2DLabel::PickedPoint::cloud
ccGenericPointCloud * cloud
Cloud.
Definition: ecv2DLabel.h:124
ccHObject::DP_PARENT_OF_OTHER
@ DP_PARENT_OF_OTHER
Definition: ecvHObject.h:266
ecvPickOneElementDlg.h
dbTreeSelectionInfo::circleCount
size_t circleCount
Definition: ecvDBRoot.h:39
ccImage
Generic image.
Definition: ecvImage.h:19
ccHObject::addChild
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
Definition: ecvHObject.cpp:534
ccCustomQTreeView
Custom QTreeView widget (for advanced selection behavior)
Definition: ecvDBRoot.h:51
ccSelectChildrenDlg::getStrictMatchState
bool getStrictMatchState() const
Returns the state of the strict type checkbox.
Definition: ecvSelectChildrenDlg.cpp:74
dbTreeSelectionInfo::polylineCount
size_t polylineCount
Definition: ecvDBRoot.h:37
cloudViewer::ReferenceCloud::getAssociatedCloud
virtual GenericIndexedCloudPersist * getAssociatedCloud()
Returns the associated (source) cloud.
Definition: ReferenceCloud.h:206
CV_TYPES::OBJECT
@ OBJECT
Definition: CVTypes.h:102
ccObject::setEnabled
virtual void setEnabled(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:102
ecvHObject.h
ccDBRoot::toggleSelectedEntitiesProperty
void toggleSelectedEntitiesProperty(TOGGLE_PROPERTY prop)
Definition: ecvDBRoot.cpp:2023
ccHObjectCaster::ToGenericPointCloud
static ccGenericPointCloud * ToGenericPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccGenericPointCloud.
Definition: ecvHObjectCaster.cpp:81
ccDrawableObject::toggleShowName
virtual void toggleShowName()
Toggles name in 3D display state.
Definition: ecvDrawableObject.h:131
Vector3Tpl< double >::fromArray
static Vector3Tpl fromArray(const int a[3])
Constructor from an int array.
Definition: CVGeom.h:268
ccDBRoot::selectEntity
void selectEntity(ccHObject *obj, bool forceAdditiveSelection=false)
Selects a given entity.
Definition: ecvDBRoot.cpp:1054
dbTreeSelectionInfo::reset
void reset()
Definition: ecvDBRoot.h:47
type
char type
Definition: FileIOFactory.cpp:131
ccPlane
Plane (primitive)
Definition: ecvPlane.h:17
ecvPointCloud.h
ccScalarField
A scalar field associated to display-related parameters.
Definition: ecvScalarField.h:19
ccObject::isLeaf
bool isLeaf() const
Definition: ecvObject.h:122
ccDBRoot::flags
virtual Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: ecvDBRoot.cpp:1342
dbTreeSelectionInfo::gridCound
size_t gridCound
Definition: ecvDBRoot.h:35
ccDBRoot::dropMimeData
virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override
Definition: ecvDBRoot.cpp:1401
ccDBRoot::m_propertiesTreeWidget
QTreeView * m_propertiesTreeWidget
Associated widget for selected entity's properties tree.
Definition: ecvDBRoot.h:289
ccCustomQTreeView::selectionCommand
virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex &index, const QEvent *event=nullptr) const
Definition: ecvDBRoot.cpp:2437
ccHObjectCaster::ToGenericMesh
static ccGenericMesh * ToGenericMesh(ccHObject *obj)
Converts current object to ccGenericMesh (if possible)
Definition: ecvHObjectCaster.cpp:123
name
std::string name
Definition: FileIOFactory.cpp:129
ccDBRoot::m_contextMenuPos
QPoint m_contextMenuPos
Last context menu pos.
Definition: ecvDBRoot.h:340
ccPolyline
Colored polyline.
Definition: ecvPolyline.h:23
dbTreeSelectionInfo::selCount
size_t selCount
Definition: ecvDBRoot.h:29
ccHObject::getViewId
QString getViewId() const
Definition: ecvHObject.h:225
ccDBRoot::m_exportImages
QAction * m_exportImages
Context menu action: export images.
Definition: ecvDBRoot.h:311
CV_TYPES::VIEWPORT_2D_OBJECT
@ VIEWPORT_2D_OBJECT
Definition: CVTypes.h:141