Introduction
vtkImageSlice provides 2D image display support for vtk.
It can be associated with a vtkImageSlice prop and placed within a Renderer.
This class resolves coincident topology with the same methods as vtkMapper.
Methods
extend
Method use to decorate a given object (publicAPI+model) with vtkImageSlice characteristics.
Argument | Type | Required | Description |
---|---|---|---|
publicAPI |
Yes | object on which methods will be bounds (public) | |
model |
Yes | object on which data structure will be bounds (protected) | |
initialValues |
IImageSliceInitialValues | No | (default: {}) |
getActors
getBounds
Get the bounds for this mapper as [xmin, xmax, ymin, ymax,zmin, zmax].
getBoundsByReference
Get the bounds for this mapper as [xmin, xmax, ymin, ymax,zmin, zmax].
getBoundsForSlice
Get the bounds for a given slice as [xmin, xmax, ymin, ymax,zmin, zmax].
Argument | Type | Required | Description |
---|---|---|---|
slice |
Number | Yes | The slice index. |
thickness |
Number | No | The slice thickness. |
getImages
getIsOpaque
getMTime
Return the Modified Time
which is a monotonic increasing integer
global for all vtkObjects.
This allow to solve a question such as:
- Is that object created/modified after another one?
- Do I need to re-execute this filter, or not? …
getMapper
getMaxXBound
Get the maximum X bound
getMaxYBound
Get the maximum Y bound
getMaxZBound
Get the maximum Z bound
getMinXBound
Get the minimum X bound
getMinYBound
Get the minimum Y bound
getMinZBound
Get the minimum Z bound
getProperty
getRedrawMTime
getSupportsSelection
hasTranslucentPolygonalGeometry
Always render during opaque pass, to keep the behavior
predictable and because depth-peeling kills alpha-blending.
In the future, the Renderer should render images in layers,
i.e. where each image will have a layer number assigned to it,
and the Renderer will do the images in their own pass.
makeProperty
Create a new property suitable for use with this type of Actor.
Argument | Type | Required | Description |
---|---|---|---|
initialValues |
IImageSliceInitialValues | No | (default: {}) |
newInstance
Method use to create a new instance of vtkImageSlice
Argument | Type | Required | Description |
---|---|---|---|
initialValues |
IImageSliceInitialValues | No | for pre-setting some of its content |
setMapper
Argument | Type | Required | Description |
---|---|---|---|
mapper |
vtkImageMapper | Yes | The vtkImageMapper instance. |
setProperty
Argument | Type | Required | Description |
---|---|---|---|
property |
vtkImageProperty | Yes | The vtkImageProperty instance. |
Source
import { Bounds } from "../../../types"; |
import { vec3, mat4 } from 'gl-matrix'; |