fix Scatter3D::clear
This commit is contained in:
@@ -117,6 +117,12 @@ void Scatter3D::removeGraphic(int index) {
|
||||
}
|
||||
|
||||
|
||||
void Scatter3D::clear() {
|
||||
for (auto g: graphics)
|
||||
g.data->resetArray(nullptr);
|
||||
}
|
||||
|
||||
|
||||
void Scatter3D::setLabelAutoRotation(bool on) {
|
||||
if (on) {
|
||||
canvas->axisX()->setLabelAutoRotation(90);
|
||||
|
||||
@@ -75,7 +75,7 @@ public slots:
|
||||
void setGraphicMeshSmooth(bool smooth) { setGraphicMeshSmooth(smooth, curGraphic); }
|
||||
void addGraphic(const QColor & color = Qt::darkBlue, float pointSize = 1.f, Mesh mesh = Mesh::MeshSphere, bool meshSmooth = true);
|
||||
void removeGraphic(int index);
|
||||
void clear() { setGraphicsCount(0); }
|
||||
void clear();
|
||||
void setLabelAutoRotation(bool on);
|
||||
void setGraphicData(const QVector<QVector3D> & points, int index);
|
||||
void setGraphicData(const QVector<QVector3D> & points) { setGraphicData(points, curGraphic); }
|
||||
|
||||
Reference in New Issue
Block a user