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

Method SetPlotMarkerStyle

Charts/Core/vtkScatterPlotMatrix.cxx:1058–1099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056}
1057
1058void 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
1101void vtkScatterPlotMatrix::SetPlotMarkerSize(int plotType, float size)
1102{

Callers 1

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 1