------------------------------------------------------------------------------ Returns the data description given the dimensions (eg. VTK_STRUCTURED_SINGLE_POINT, VTK_STRUCTURED_X_LINE, VTK_STRUCTURED_XY_PLANE etc.)
| 67 | // Returns the data description given the dimensions (eg. VTK_STRUCTURED_SINGLE_POINT, |
| 68 | // VTK_STRUCTURED_X_LINE, VTK_STRUCTURED_XY_PLANE etc.) |
| 69 | int vtkStructuredData::GetDataDescription(int dims[3]) |
| 70 | { |
| 71 | int tempDims[3]; |
| 72 | // It is essential that dims != tempDims, then alone will SetDimensions() |
| 73 | // return the correct data description. |
| 74 | tempDims[0] = dims[0] + 1; |
| 75 | tempDims[1] = dims[1] + 1; |
| 76 | tempDims[2] = dims[2] + 1; |
| 77 | |
| 78 | return vtkStructuredData::SetDimensions(dims, tempDims); |
| 79 | } |
| 80 | |
| 81 | //------------------------------------------------------------------------------ |
| 82 | // Given the extent, returns the data description given the dimensions |