------------------------------------------------------------------------------
| 71 | |
| 72 | //------------------------------------------------------------------------------ |
| 73 | inline 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 | |
| 96 | template <typename T> |
| 97 | int nc_get_vara(int ncid, int varid, size_t start[], size_t count[], T* data); |
no outgoing calls
no test coverage detected