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

Method GetNumberOfScalarComponents

Common/DataModel/vtkCartesianGrid.cxx:514–523  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

512
513//----------------------------------------------------------------------------
514int vtkCartesianGrid::GetNumberOfScalarComponents(vtkInformation* meta_data)
515{
516 vtkInformation* scalarInfo = vtkDataObject::GetActiveFieldInformation(
517 meta_data, FIELD_ASSOCIATION_POINTS, vtkDataSetAttributes::SCALARS);
518 if (scalarInfo && scalarInfo->Has(FIELD_NUMBER_OF_COMPONENTS()))
519 {
520 return scalarInfo->Get(FIELD_NUMBER_OF_COMPONENTS());
521 }
522 return 1;
523}
524
525//----------------------------------------------------------------------------
526int vtkCartesianGrid::GetNumberOfScalarComponents()

Callers 15

vtkImageFooExecuteFunction · 0.45
RequestDataMethod · 0.45
CopyDataMethod · 0.45
RequestDataMethod · 0.45
vtkImageDataCastExecuteFunction · 0.45
ExecuteMethod · 0.45
SetIconMethod · 0.45
SetIconMethod · 0.45

Calls 5

HasMethod · 0.45
GetMethod · 0.45
GetScalarsMethod · 0.45
GetPointDataMethod · 0.45
GetNumberOfComponentsMethod · 0.45

Tested by 2

runMethod · 0.36
RegressionTestMethod · 0.36