|
1 |
| -import { Bounds, Range } from "../../../types"; |
| 1 | +import { Bounds, Range, Vector3 } from "../../../types"; |
2 | 2 | import vtkAbstractMapper, { IAbstractMapperInitialValues } from "../AbstractMapper";
|
3 | 3 |
|
4 | 4 | export enum BlendMode {
|
@@ -160,12 +160,55 @@ export function extend(publicAPI: object, model: object, initialValues?: IVolume
|
160 | 160 | */
|
161 | 161 | export function newInstance(initialValues?: IVolumeMapperInitialValues): vtkVolumeMapper;
|
162 | 162 |
|
| 163 | +/** |
| 164 | + * Helper class to perform MPR. |
| 165 | + */ |
| 166 | + |
| 167 | +export interface vtkSliceHelper { |
| 168 | + /** |
| 169 | + * |
| 170 | + */ |
| 171 | + update(): void; |
| 172 | + |
| 173 | + /** |
| 174 | + * Get the distance between clip planes |
| 175 | + */ |
| 176 | + getThickness(): number; |
| 177 | + |
| 178 | + /** |
| 179 | + * Get the origin of the MPR |
| 180 | + */ |
| 181 | + getOrigin(): Vector3; |
| 182 | + |
| 183 | + /** |
| 184 | + * Get the orientation of the MPR |
| 185 | + */ |
| 186 | + getNormal(): Vector3; |
| 187 | + |
| 188 | + /** |
| 189 | + * Set the distance between clip planes |
| 190 | + */ |
| 191 | + setThickness(thickness: number): void; |
| 192 | + |
| 193 | + /** |
| 194 | + * Set the origin of the MPR |
| 195 | + */ |
| 196 | + setOrigin(origin: Vector3): void; |
| 197 | + |
| 198 | + /** |
| 199 | + * Set the orientation of the MPR |
| 200 | + */ |
| 201 | + setNormal(origin: Vector3): void; |
| 202 | + |
| 203 | +} |
| 204 | + |
163 | 205 | /**
|
164 | 206 | * vtkVolumeMapper inherits from vtkMapper.
|
165 | 207 | * A volume mapper that performs ray casting on the GPU using fragment programs.
|
166 | 208 | */
|
167 | 209 | export declare const vtkVolumeMapper: {
|
168 | 210 | newInstance: typeof newInstance,
|
169 | 211 | extend: typeof extend,
|
| 212 | + vtkSliceHelper: vtkSliceHelper, |
170 | 213 | };
|
171 | 214 | export default vtkVolumeMapper;
|
0 commit comments