Skip to content

Commit dc0eb81

Browse files
docs(VolumeMapper): Add vtkSliceHelper types
1 parent 5cd47de commit dc0eb81

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

Sources/Rendering/Core/VolumeMapper/index.d.ts

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Bounds, Range } from "../../../types";
1+
import { Bounds, Range, Vector3 } from "../../../types";
22
import vtkAbstractMapper, { IAbstractMapperInitialValues } from "../AbstractMapper";
33

44
export enum BlendMode {
@@ -160,12 +160,55 @@ export function extend(publicAPI: object, model: object, initialValues?: IVolume
160160
*/
161161
export function newInstance(initialValues?: IVolumeMapperInitialValues): vtkVolumeMapper;
162162

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+
163205
/**
164206
* vtkVolumeMapper inherits from vtkMapper.
165207
* A volume mapper that performs ray casting on the GPU using fragment programs.
166208
*/
167209
export declare const vtkVolumeMapper: {
168210
newInstance: typeof newInstance,
169211
extend: typeof extend,
212+
vtkSliceHelper: vtkSliceHelper,
170213
};
171214
export default vtkVolumeMapper;

0 commit comments

Comments
 (0)