MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / copyProperties

Method copyProperties

apps/cloud_composer/src/properties_model.cpp:107–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void
108pcl::cloud_composer::PropertiesModel::copyProperties(const PropertiesModel* to_copy)
109{
110 for (int i = 0; i < to_copy->rowCount(); ++i) {
111 QList<QStandardItem*> new_row;
112 QStandardItem* parent = to_copy->item(i, 0);
113 qDebug() << "Copying " << parent->text() << " cols =" << to_copy->columnCount();
114 new_row.append(parent->clone());
115 for (int j = 1; j < to_copy->columnCount(); ++j) {
116 if (to_copy->item(i, j)) {
117 new_row.append(to_copy->item(i, j)->clone());
118 }
119 }
120 appendRow(new_row);
121 }
122}
123
124void
125pcl::cloud_composer::PropertiesModel::propertyChanged(QStandardItem*)

Callers 5

cloneMethod · 0.80
cloneMethod · 0.80
cloneMethod · 0.80
cloneMethod · 0.80
AbstractToolMethod · 0.80

Calls 2

appendMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected