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

Function NcTypeToVtkType

IO/NetCDF/vtkMPASReader.cxx:73–94  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

71
72//------------------------------------------------------------------------------
73inline int NcTypeToVtkType(nc_type type)
74{
75 switch (type)
76 {
77 case NC_BYTE:
78 return VTK_SIGNED_CHAR;
79 case NC_CHAR:
80 return VTK_CHAR;
81 case NC_SHORT:
82 return VTK_SHORT;
83 case NC_INT:
84 return VTK_INT;
85 case NC_FLOAT:
86 return VTK_FLOAT;
87 case NC_DOUBLE:
88 return VTK_DOUBLE;
89 case NC_NAT:
90 default: // Shouldn't happen...
91 vtkGenericWarningMacro(<< "Invalid NcType: " << type);
92 return VTK_VOID;
93 }
94}
95
96template <typename T>
97int nc_get_vara(int ncid, int varid, size_t start[], size_t count[], T* data);

Callers 3

LoadDataArrayMethod · 0.85
LoadPointVarDataMethod · 0.85
LoadCellVarDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected