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

Method SetInputData

Charts/Core/vtkPlotParallelCoordinates.cxx:260–285  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

258
259//------------------------------------------------------------------------------
260void vtkPlotParallelCoordinates::SetInputData(vtkTable* table)
261{
262 if (table == this->Data->GetInput() && (!table || table->GetMTime() < this->BuildTime))
263 {
264 return;
265 }
266
267 bool updateVisibility = table != this->Data->GetInput();
268 this->vtkPlot::SetInputData(table);
269 vtkChartParallelCoordinates* parent = vtkChartParallelCoordinates::SafeDownCast(this->Parent);
270
271 if (parent && table && updateVisibility)
272 {
273 parent->SetColumnVisibilityAll(false);
274 // By default make the first 10 columns visible in a plot.
275 for (vtkIdType i = 0; i < table->GetNumberOfColumns() && i < 10; ++i)
276 {
277 parent->SetColumnVisibility(table->GetColumnName(i), true);
278 }
279 }
280 else if (parent && updateVisibility)
281 {
282 // No table, therefore no visible columns
283 parent->GetVisibleColumns()->SetNumberOfTuples(0);
284 }
285}
286
287//------------------------------------------------------------------------------
288bool vtkPlotParallelCoordinates::UpdateCache()

Callers 1

UpdateCacheMethod · 0.45

Calls 8

GetInputMethod · 0.45
GetMTimeMethod · 0.45
GetNumberOfColumnsMethod · 0.45
SetColumnVisibilityMethod · 0.45
GetColumnNameMethod · 0.45
SetNumberOfTuplesMethod · 0.45
GetVisibleColumnsMethod · 0.45

Tested by

no test coverage detected