| 1099 | } |
| 1100 | |
| 1101 | void vtkScatterPlotMatrix::SetPlotMarkerSize(int plotType, float size) |
| 1102 | { |
| 1103 | if (plotType >= 0 && plotType < NOPLOT && |
| 1104 | size != this->Private->ChartSettings[plotType]->MarkerSize) |
| 1105 | { |
| 1106 | this->Private->ChartSettings[plotType]->MarkerSize = size; |
| 1107 | |
| 1108 | if (plotType == ACTIVEPLOT) |
| 1109 | { |
| 1110 | // update marker size on current active plot |
| 1111 | vtkChart* chart = this->Private->BigChart; |
| 1112 | if (chart) |
| 1113 | { |
| 1114 | vtkPlotPoints* plot = vtkPlotPoints::SafeDownCast(chart->GetPlot(0)); |
| 1115 | if (plot) |
| 1116 | { |
| 1117 | plot->SetMarkerSize(size); |
| 1118 | } |
| 1119 | } |
| 1120 | this->Modified(); |
| 1121 | } |
| 1122 | else if (plotType == SCATTERPLOT) |
| 1123 | { |
| 1124 | int plotCount = this->GetSize().GetX(); |
| 1125 | |
| 1126 | for (int i = 0; i < plotCount - 1; i++) |
| 1127 | { |
| 1128 | for (int j = 0; j < plotCount - 1; j++) |
| 1129 | { |
| 1130 | if (this->GetPlotType(i, j) == SCATTERPLOT && this->GetChart(vtkVector2i(i, j))) |
| 1131 | { |
| 1132 | vtkChart* chart = this->GetChart(vtkVector2i(i, j)); |
| 1133 | vtkPlotPoints* plot = vtkPlotPoints::SafeDownCast(chart->GetPlot(0)); |
| 1134 | if (plot) |
| 1135 | { |
| 1136 | plot->SetMarkerSize(size); |
| 1137 | } |
| 1138 | } |
| 1139 | } |
| 1140 | } |
| 1141 | this->Modified(); |
| 1142 | } |
| 1143 | } |
| 1144 | } |
| 1145 | |
| 1146 | bool vtkScatterPlotMatrix::Hit(const vtkContextMouseEvent&) |
| 1147 | { |
nothing calls this directly
no test coverage detected