Skip to content

Glyph3DMapper ​

Methods ​

buildArrays ​

extend ​

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

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

getBounds ​

Get the bounds for this mapper as [xmin, xmax, ymin, ymax,zmin, zmax].

getBuildTime ​

Timestamp of the last buildArrays() execution.

getColorArray ​

Colors computed by buildArrays() by mapping the input scalars through the lookup table. Null when there is no lookup table or no scalars.

getMatrixArray ​

Per-glyph 4x4 model matrices computed by buildArrays(), packed as 16 floats per input point.

getNormalArray ​

Per-glyph 3x3 normal matrices computed by buildArrays(), packed as 9 floats per input point.

getOrient ​

Check whether glyphs are oriented using the orientation array.

getOrientationArray ​

Gets the name of the array used as orientation values.

getOrientationArrayData ​

Get orientation as array

getOrientationMode ​

An orientation array is a vtkDataArray with 3 components. The first component is the angle of rotation along the X axis. The second component is the angle of rotation along the Y axis. The third component is the angle of rotation along the Z axis. Orientation is specified in X,Y,Z order but the rotations are performed in Z,X an Y.

This definition is compliant with SetOrientation method on vtkProp3D.

By using vector or normal there is a degree of freedom or rotation left (underconstrained). With the orientation array, there is no degree of freedom left.

getOrientationModeAsString ​

Get orientation as string

getPrimitiveCount ​

getScaleArray ​

Gets the name of the array used as scale values.

getScaleArrayData ​

Get scale mode as array

getScaleFactor ​

Get scale factor to scale object by.

getScaleMode ​

Get scale mode

getScaleModeAsString ​

Get scale mode as string

getScaling ​

Check whether glyphs are scaled using the scale array and scale factor.

newInstance ​

Method use to create a new instance of vtkGlyph3DMapper

ArgumentTypeRequiredDescription
initialValuesIGlyph3DMapperInitialValuesNofor pre-setting some of its content

setOrient ​

Turn on/off orienting glyphs with the orientation array.

ArgumentTypeRequiredDescription
orientBooleanYes

setOrientationArray ​

Sets the name of the array to use as orientation.

ArgumentTypeRequiredDescription
arrayNameStringYesName of the array

setOrientationMode ​

Orientation mode indicates if the OrientationArray provides the direction vector for the orientation or the rotations around each axes.

ArgumentTypeRequiredDescription
orientationModeOrientationModesYesThe orientation mode.

setOrientationModeToDirection ​

Set orientation mode to DIRECTION

setOrientationModeToMatrix ​

Set orientation mode to MATRIX

setOrientationModeToRotation ​

Set orientation mode to ROTATION

setScaleArray ​

Sets the name of the array to use as scale values.

ArgumentTypeRequiredDescription
arrayNameStringYesName of the array

setScaleFactor ​

Specify scale factor to scale object by.

ArgumentTypeRequiredDescription
scaleFactorNumberYesThe value of the scale factor.

setScaleMode ​

Either scale by individual components (SCALE_BY_COMPONENTS) or magnitude (SCALE_BY_MAGNITUDE) of the chosen array to SCALE with or disable scaling using data array all together (SCALE_BY_MAGNITUDE).

ArgumentTypeRequiredDescription
scaleModeScaleModesYes

setScaleModeToScaleByComponents ​

Set scale to SCALE_BY_CONSTANT

setScaleModeToScaleByConstant ​

Set scale to SCALE_BY_CONSTANT

setScaleModeToScaleByMagnitude ​

Set scale to SCALE_BY_MAGNITUDE

setScaling ​

Turn on/off scaling glyphs with the scale array and scale factor.

ArgumentTypeRequiredDescription
scalingBooleanYes

setSourceConnection ​

Convenient method to set the source glyph connection

ArgumentTypeRequiredDescription
outputPortvtkPipelineConnectionYesThe output port of the glyph source.