11import { mat3 , mat4 , quat , vec3 } from "gl-matrix" ;
2+ import { Nullable } from "../../../types" ;
3+ import { vtkOutputPort } from "../../../interfaces" ;
4+ import vtkAbstractMapper3D , { IAbstractMapper3DInitialValues } from "../AbstractMapper3D" ;
25import vtkDataArray from "../../../Common/Core/DataArray" ;
36import vtkImageData from "../../../Common/DataModel/ImageData" ;
47import vtkPolyData from "../../../Common/DataModel/PolyData" ;
5- import { vtkOutputPort } from "../../../interfaces" ;
6- import vtkAbstractMapper3D , { IAbstractMapper3DInitialValues } from "../AbstractMapper3D" ;
78import vtkPolyLine from "../../../Common/DataModel/PolyLine" ;
89
910interface ICoincidentTopology {
@@ -18,7 +19,7 @@ export interface IImageCPRMapperInitialValues extends IAbstractMapper3DInitialVa
1819 uniformOrientation : TOrientation ; // Don't use vec3 if possible
1920 useUniformOrientation : boolean ;
2021 preferSizeOverAccuracy : boolean ; // Whether to use halfFloat representation of float, when it is inaccurate
21- orientationArrayName : string | null ;
22+ orientationArrayName : Nullable < string > ;
2223 tangentDirection : vec3 ;
2324 bitangentDirection : vec3 ;
2425 normalDirection : vec3 ;
@@ -83,13 +84,13 @@ export interface vtkImageCPRMapper extends vtkAbstractMapper3D {
8384 * The data array should be an array of mat4, mat3, quat or vec3 but using vec3 makes the CPRInteractor unusable
8485 * Default to null.
8586 */
86- getOrientationArrayName ( ) : string | null ;
87+ getOrientationArrayName ( ) : Nullable < string > ;
8788
8889 /**
8990 * @see getOrientationArrayName
9091 * @param arrayName
9192 */
92- setOrientationArrayName ( arrayName : string | null ) : boolean ;
93+ setOrientationArrayName ( arrayName : Nullable < string > ) : boolean ;
9394
9495 /**
9596 * For each point on the oriented centerline, the tangent direction is the direction in which the mapper will sample
@@ -144,7 +145,7 @@ export interface vtkImageCPRMapper extends vtkAbstractMapper3D {
144145 /**
145146 * Find the data array to use for orientation in the input polydata ( @see getOrientationArrayName )
146147 */
147- getOrientationDataArray ( ) : null | vtkDataArray ;
148+ getOrientationDataArray ( ) : Nullable < vtkDataArray > ;
148149
149150 /**
150151 * Recompute the oriented centerline from the input polydata if needed and return the result
0 commit comments