------------------------------------------------------------------------------
| 1832 | |
| 1833 | //------------------------------------------------------------------------------ |
| 1834 | void vtkStructuredAMRGridConnectivity::GetOrientationVector( |
| 1835 | int dataDescription, int orient[3], int& ndim) |
| 1836 | { |
| 1837 | switch (dataDescription) |
| 1838 | { |
| 1839 | case vtkStructuredData::VTK_STRUCTURED_X_LINE: |
| 1840 | ndim = 1; |
| 1841 | orient[0] = 0; |
| 1842 | orient[1] = -1; |
| 1843 | orient[2] = -1; |
| 1844 | break; |
| 1845 | case vtkStructuredData::VTK_STRUCTURED_Y_LINE: |
| 1846 | ndim = 1; |
| 1847 | orient[0] = 1; |
| 1848 | orient[1] = -1; |
| 1849 | orient[2] = -1; |
| 1850 | break; |
| 1851 | case vtkStructuredData::VTK_STRUCTURED_Z_LINE: |
| 1852 | ndim = 1; |
| 1853 | orient[0] = 2; |
| 1854 | orient[1] = -1; |
| 1855 | orient[2] = -1; |
| 1856 | break; |
| 1857 | case vtkStructuredData::VTK_STRUCTURED_XY_PLANE: |
| 1858 | ndim = 2; |
| 1859 | orient[0] = 0; |
| 1860 | orient[1] = 1; |
| 1861 | orient[2] = -1; |
| 1862 | break; |
| 1863 | case vtkStructuredData::VTK_STRUCTURED_YZ_PLANE: |
| 1864 | ndim = 2; |
| 1865 | orient[0] = 1; |
| 1866 | orient[1] = 2; |
| 1867 | orient[2] = -1; |
| 1868 | break; |
| 1869 | case vtkStructuredData::VTK_STRUCTURED_XZ_PLANE: |
| 1870 | ndim = 2; |
| 1871 | orient[0] = 0; |
| 1872 | orient[1] = 2; |
| 1873 | orient[2] = -1; |
| 1874 | break; |
| 1875 | case vtkStructuredData::VTK_STRUCTURED_XYZ_GRID: |
| 1876 | ndim = 3; |
| 1877 | orient[0] = 0; |
| 1878 | orient[1] = 1; |
| 1879 | orient[2] = 2; |
| 1880 | break; |
| 1881 | default: |
| 1882 | vtkErrorMacro("Undefined data-description!"); |
| 1883 | } |
| 1884 | } |
| 1885 | |
| 1886 | //------------------------------------------------------------------------------ |
| 1887 | void vtkStructuredAMRGridConnectivity::GetCoarsenedExtent( |
no outgoing calls
no test coverage detected