MCPcopy Create free account
hub / github.com/Kitware/VTK / SetPlotMarkerSize

Method SetPlotMarkerSize

Charts/Core/vtkScatterPlotMatrix.cxx:1101–1144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1099}
1100
1101void 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
1146bool vtkScatterPlotMatrix::Hit(const vtkContextMouseEvent&)
1147{

Callers

nothing calls this directly

Calls 7

GetPlotTypeMethod · 0.95
vtkVector2iClass · 0.50
GetPlotMethod · 0.45
ModifiedMethod · 0.45
GetXMethod · 0.45
GetSizeMethod · 0.45
GetChartMethod · 0.45

Tested by

no test coverage detected