//! Updates everything based on the points void VtkColorTable::updateFromPoints() { while (points.size() < mainTable->rowCount()) mainTable->removeRow(mainTable->rowCount() - 1); colorFunction->RemoveAllPoints(); for (int a = 0; a < points.size(); a++) { const Point & currPoint = points.at(a); if (a == mainTable->rowCount()) addTableRow(a, currPoint); else updateTableRow(a, currPoint); colorFunction->AddRGBPoint(currPoint.scalarValue, currPoint.color.red()/255.0f, currPoint.color.green()/255.0f, currPoint.color.blue()/255.0f,currPoint.midpoint,currPoint.sharpness); } emit functionUpdated(); }
void KinectCalibration::on_nodeTableModel_dataChanged(int row, int column, const QVariant value) { updateTableRow(row, column, value); }