Skip to content

ImageSlice ​

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.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIImageSliceInitialValuesNo(default: {})

getActors ​

getBoundsForSlice ​

Get the bounds for a given slice as [xmin, xmax, ymin, ymax,zmin, zmax].

ArgumentTypeRequiredDescription
sliceNumberYesThe slice index. If undefined, the current slice is considered.
thicknessNumberNoThe slice thickness. If undefined, 0 is considered.

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

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.

ArgumentTypeRequiredDescription
initialValuesIImageSliceInitialValuesNo(default: {})

newInstance ​

Method use to create a new instance of vtkImageSlice

ArgumentTypeRequiredDescription
initialValuesIImageSliceInitialValuesNofor pre-setting some of its content

setForceOpaque ​

ArgumentTypeRequiredDescription
forceOpaquebooleanYesIf true, render during opaque pass even if opacity value is below 1.0.

setForceTranslucent ​

ArgumentTypeRequiredDescription
forceTranslucentbooleanYesIf true, render during translucent pass even if opacity value is 1.0.

setMapper ​

ArgumentTypeRequiredDescription
mappervtkAbstractImageMapperYesAn instance that derives from vtkAbstractImageMapper.