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

Method SelectColorArray

Charts/Core/vtkPlotBar.cxx:962–986  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

960
961//------------------------------------------------------------------------------
962void vtkPlotBar::SelectColorArray(const vtkStdString& arrayName)
963{
964 if (this->ColorArrayName == arrayName)
965 {
966 return;
967 }
968 vtkTable* table = this->Data->GetInput();
969 if (!table)
970 {
971 vtkWarningMacro(<< "SelectColorArray called with no input table set.");
972 return;
973 }
974 for (vtkIdType i = 0; i < table->GetNumberOfColumns(); ++i)
975 {
976 if (arrayName == table->GetColumnName(i))
977 {
978 this->ColorArrayName = arrayName;
979 this->Modified();
980 return;
981 }
982 }
983 vtkDebugMacro(<< "SelectColorArray called with invalid column name.");
984 this->ColorArrayName = "";
985 this->Modified();
986}
987
988//------------------------------------------------------------------------------
989void vtkPlotBar::SelectColorArray(vtkIdType arrayNum)

Callers 15

TestPIOReader.pyFile · 0.45
TestChacoReader.pyFile · 0.45
TestWindBladeReaderFunction · 0.45
TestUSDExporterFunction · 0.45
TestPWindBladeReaderFunction · 0.45
TestVRMLExporterFunction · 0.45
TestMHD.pyFile · 0.45
TestSEPReaderFunction · 0.45
TestGDALVectorReaderFunction · 0.45
TestNetCDFCAMReaderFunction · 0.45

Calls 5

GetInputMethod · 0.45
GetNumberOfColumnsMethod · 0.45
GetColumnNameMethod · 0.45
ModifiedMethod · 0.45
GetColumnMethod · 0.45

Tested by 15

TestWindBladeReaderFunction · 0.36
TestUSDExporterFunction · 0.36
TestPWindBladeReaderFunction · 0.36
TestVRMLExporterFunction · 0.36
TestSEPReaderFunction · 0.36
TestGDALVectorReaderFunction · 0.36
TestNetCDFCAMReaderFunction · 0.36
TestMPASReaderFunction · 0.36
TestNetCDFCFWriterFunction · 0.36
GetActorFunction · 0.36