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.
Argument
Type
Required
Description
plane
vtkPlane
Yes
extend
Method use to decorate a given object (publicAPI+model) with vtkAbstractMapper 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
IAbstractMapperInitialValues
No
(default: {})
getClippingPlaneInDataCoords
Get the ith clipping plane as a homogeneous plane equation. Use getNumberOfClippingPlanes() to get the number of planes.
/** * Get the ith clipping plane as a homogeneous plane equation. * Use getNumberOfClippingPlanes() to get the number of planes. * @param {mat4} propMatrix * @param {Number} i * @param {Number[]} hnormal */ getClippingPlaneInDataCoords( propMatrix: mat4, i: number, hnormal: number[] ): void;
/** * */ update(): void; }
/** * Method use to decorate a given object (publicAPI+model) with vtkAbstractMapper characteristics. * * @param publicAPI object on which methods will be bounds (public) * @param model object on which data structure will be bounds (protected) * @param {IAbstractMapperInitialValues} [initialValues] (default: {}) */ exportfunctionextend( publicAPI: object, model: object, initialValues?: IAbstractMapperInitialValues ): void;
/** * 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. */ export declare constvtkAbstractMapper: { extend: typeof extend; }; exportdefault vtkAbstractMapper;
publicAPI.setClippingPlanes = (planes) => { if (!planes) { return; } if (!Array.isArray(planes)) { publicAPI.addClippingPlane(planes); } else { const nbPlanes = planes.length; for (let i = 0; i < nbPlanes && i < 6; i++) { publicAPI.addClippingPlane(planes[i]); } } };
publicAPI.getClippingPlaneInDataCoords = (propMatrix, i, hnormal) => { const clipPlanes = model.clippingPlanes; const mat = propMatrix;
if (clipPlanes) { const n = clipPlanes.length; if (i >= 0 && i < n) { // Get the plane const plane = clipPlanes[i]; const normal = plane.getNormal(); const origin = plane.getOrigin();