add Scatter3D::removeGraphic
This commit is contained in:
@@ -109,6 +109,14 @@ void Scatter3D::addGraphic(const QColor & color, float pointSize, Mesh mesh, boo
|
||||
}
|
||||
|
||||
|
||||
void Scatter3D::removeGraphic(int index) {
|
||||
if (index < 0 || index >= graphics.size()) return;
|
||||
canvas->removeSeries(graphics[index].series);
|
||||
delete graphics[index].series;
|
||||
graphics.remove(index);
|
||||
}
|
||||
|
||||
|
||||
void Scatter3D::setLabelAutoRotation(bool on) {
|
||||
if (on) {
|
||||
canvas->axisX()->setLabelAutoRotation(90);
|
||||
|
||||
Reference in New Issue
Block a user