Skip to content

AbstractMapper ​

Introduction ​

vtkAbstractMapper is an abstract class to specify interface between data and graphics primitives or software rendering techniques. Subclasses of vtkAbstractMapper can be used for rendering 2D data, geometry, or volumetric data.

Methods ​

addClippingPlane ​

Added plane needs to be a vtkPlane object.

ArgumentTypeRequiredDescription
planevtkPlaneYes

extend ​

Method use to decorate a given object (publicAPI+model) with vtkAbstractMapper characteristics.

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

getClippingPlaneInCoords ​

Get the ith clipping plane transformed from world coordinates into the target coordinate system defined by the provided world-to-coordinates matrix.

ArgumentTypeRequiredDescription
worldToCoordsmat4Yes
iNumberYes
hnormalArray[Number]No

getClippingPlaneInDataCoords ​

Get the ith clipping plane as a homogeneous plane equation. Use getNumberOfClippingPlanes() to get the number of planes. This API expects a coordinates-to-world matrix and preserves the legacy behavior used by existing data-coordinate callers.

ArgumentTypeRequiredDescription
propMatrixmat4Yes
iNumberYes
hnormalArray[Number]Yes

getClippingPlanes ​

Get all clipping planes.

getClippingPlanesMTime ​

Get the modified time of the clipping planes list.

getNumberOfClippingPlanes ​

Get number of clipping planes.

removeAllClippingPlanes ​

Remove all clipping planes.

removeClippingPlane ​

Remove clipping plane.

ArgumentTypeRequiredDescription
planevtkPlaneYes

setClippingPlanes ​

Set clipping planes.

ArgumentTypeRequiredDescription
planesArray[vtkPlane]Yes

update ​