@@ -12,85 +12,101 @@ interface IPrimitiveCount {
12
12
export interface IGlyph3DMapperInitialValues extends IMapperInitialValues {
13
13
orient ?: boolean ;
14
14
orientationMode ?: OrientationModes ;
15
- orientationArray ?: number [ ] ;
15
+ orientationArray ?: string ;
16
16
scaling ?: boolean ;
17
17
scaleFactor ?: number ;
18
18
scaleMode ?: ScaleModes ;
19
- scaleArray ?: number [ ] ;
19
+ scaleArray ?: string ;
20
20
matrixArray ?: number [ ] ;
21
21
normalArray ?: number [ ] ;
22
22
colorArray ?: number [ ] ;
23
23
}
24
24
25
25
export interface vtkGlyph3DMapper extends vtkMapper {
26
26
/**
27
- * An orientation array is a vtkDataArray with 3 components. The first
28
- * component is the angle of rotation along the X axis. The second component
29
- * is the angle of rotation along the Y axis. The third component is the
30
- * angle of rotation along the Z axis. Orientation is specified in X,Y,Z
31
- * order but the rotations are performed in Z,X an Y.
32
- *
33
- * This definition is compliant with SetOrientation method on vtkProp3D.
27
+ * Get the bounds for this mapper as [xmin, xmax, ymin, ymax,zmin, zmax].
28
+ * @return {Bounds } The bounds for the mapper.
29
+ */
30
+ getBounds ( ) : Bounds ;
31
+
32
+ /**
34
33
*
35
- * By using vector or normal there is a degree of freedom or rotation left
36
- * (underconstrained). With the orientation array, there is no degree of
37
- * freedom left.
38
34
*/
39
- getOrientationMode ( ) : OrientationModes ;
35
+ buildArrays ( ) : void ;
40
36
41
37
/**
42
- * Get orientation as string
38
+ *
43
39
*/
44
- getOrientationModeAsString ( ) : string ;
40
+ getPrimitiveCount ( ) : IPrimitiveCount ;
45
41
46
42
/**
47
- * Get orientation as array
43
+ * Get scale mode
44
+ * @default `SCALE_BY_MAGNITUDE`
48
45
*/
49
- getOrientationArrayData ( ) : number [ ] ;
46
+ getScaleMode ( ) : ScaleModes ;
50
47
51
48
/**
52
49
* Get scale factor to scale object by.
53
50
*/
54
51
getScaleFactor ( ) : number ;
55
52
56
53
/**
57
- * Get scale mode
58
- * @default `SCALE_BY_MAGNITUDE`
54
+ * Get scale mode as string
59
55
*/
60
- getScaleMode ( ) : ScaleModes ;
56
+ getScaleModeAsString ( ) : string ;
61
57
62
58
/**
63
- * Get scale mode as string
59
+ * Sets the name of the array to use as scale values.
60
+ * @param {String } arrayName Name of the array
64
61
*/
65
- getScaleModeAsString ( ) : string ;
62
+ setScaleArray ( arrayName : Nullable < string > ) : boolean ;
63
+
64
+ /**
65
+ * Gets the name of the array used as scale values.
66
+ */
67
+ getScaleArray ( ) : string ;
66
68
67
69
/**
68
70
* Get scale mode as array
69
71
*/
70
72
getScaleArrayData ( ) : number [ ] ;
71
73
72
74
/**
73
- * Get the bounds for this mapper as [xmin, xmax, ymin, ymax,zmin, zmax].
74
- * @return {Bounds } The bounds for the mapper.
75
+ * An orientation array is a vtkDataArray with 3 components. The first
76
+ * component is the angle of rotation along the X axis. The second component
77
+ * is the angle of rotation along the Y axis. The third component is the
78
+ * angle of rotation along the Z axis. Orientation is specified in X,Y,Z
79
+ * order but the rotations are performed in Z,X an Y.
80
+ *
81
+ * This definition is compliant with SetOrientation method on vtkProp3D.
82
+ *
83
+ * By using vector or normal there is a degree of freedom or rotation left
84
+ * (underconstrained). With the orientation array, there is no degree of
85
+ * freedom left.
75
86
*/
76
- getBounds ( ) : Bounds ;
87
+ getOrientationMode ( ) : OrientationModes ;
77
88
78
89
/**
79
- *
90
+ * Get orientation as string
80
91
*/
81
- buildArrays ( ) : void ;
92
+ getOrientationModeAsString ( ) : string ;
82
93
83
94
/**
84
- *
95
+ * Get orientation as array
85
96
*/
86
- getPrimitiveCount ( ) : IPrimitiveCount ;
97
+ getOrientationArrayData ( ) : number [ ] ;
87
98
88
99
/**
89
100
* Sets the name of the array to use as orientation.
90
101
* @param {String } arrayName Name of the array
91
102
*/
92
103
setOrientationArray ( arrayName : Nullable < string > ) : boolean ;
93
104
105
+ /**
106
+ * Gets the name of the array used as orientation values.
107
+ */
108
+ getOrientationArray ( ) : string ;
109
+
94
110
/**
95
111
* Orientation mode indicates if the OrientationArray provides the direction
96
112
* vector for the orientation or the rotations around each axes.
0 commit comments