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

Function CreateDataArray

Filters/Extraction/vtkExtractTensorComponents.cxx:21–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19namespace
20{
21vtkDataArray* CreateDataArray(int type, const char* name)
22{
23 vtkDataArray* da;
24 if (type == VTK_DOUBLE)
25 {
26 da = vtkDoubleArray::New();
27 }
28 else
29 {
30 da = vtkFloatArray::New();
31 }
32 da->SetName(name);
33 return da;
34}
35}
36
37//------------------------------------------------------------------------------

Callers 15

RequestDataMethod · 0.70
RequestDataImplMethod · 0.70
RequestDataMethod · 0.70
RequestDataMethod · 0.50
AllocatePointDataMethod · 0.50
AllocateCellDataMethod · 0.50
InitializeGhostDataMethod · 0.50
RequestDataMethod · 0.50
RequestDataMethod · 0.50
SetupOutputMethod · 0.50

Calls 2

NewFunction · 0.50
SetNameMethod · 0.45

Tested by 2

GenerateRectGridFunction · 0.40
GenerateGridFunction · 0.40