| 1056 | } |
| 1057 | |
| 1058 | void vtkScatterPlotMatrix::SetPlotMarkerStyle(int plotType, int style) |
| 1059 | { |
| 1060 | if (plotType >= 0 && plotType < NOPLOT && |
| 1061 | style != this->Private->ChartSettings[plotType]->MarkerStyle) |
| 1062 | { |
| 1063 | this->Private->ChartSettings[plotType]->MarkerStyle = style; |
| 1064 | |
| 1065 | if (plotType == ACTIVEPLOT) |
| 1066 | { |
| 1067 | vtkChart* chart = this->Private->BigChart; |
| 1068 | if (chart) |
| 1069 | { |
| 1070 | vtkPlotPoints* plot = vtkPlotPoints::SafeDownCast(chart->GetPlot(0)); |
| 1071 | if (plot) |
| 1072 | { |
| 1073 | plot->SetMarkerStyle(style); |
| 1074 | } |
| 1075 | } |
| 1076 | this->Modified(); |
| 1077 | } |
| 1078 | else if (plotType == SCATTERPLOT) |
| 1079 | { |
| 1080 | int plotCount = this->GetSize().GetX(); |
| 1081 | for (int i = 0; i < plotCount - 1; ++i) |
| 1082 | { |
| 1083 | for (int j = 0; j < plotCount - 1; ++j) |
| 1084 | { |
| 1085 | if (this->GetPlotType(i, j) == SCATTERPLOT && this->GetChart(vtkVector2i(i, j))) |
| 1086 | { |
| 1087 | vtkChart* chart = this->GetChart(vtkVector2i(i, j)); |
| 1088 | vtkPlotPoints* plot = vtkPlotPoints::SafeDownCast(chart->GetPlot(0)); |
| 1089 | if (plot) |
| 1090 | { |
| 1091 | plot->SetMarkerStyle(style); |
| 1092 | } |
| 1093 | } |
| 1094 | } |
| 1095 | } |
| 1096 | this->Modified(); |
| 1097 | } |
| 1098 | } |
| 1099 | } |
| 1100 | |
| 1101 | void vtkScatterPlotMatrix::SetPlotMarkerSize(int plotType, float size) |
| 1102 | { |