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].

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

newInstance ​

Method use to create a new instance of vtkGlyph3DMapper

ArgumentTypeRequiredDescription
initialValuesIGlyph3DMapperInitialValuesNofor pre-setting some of its content

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

setSourceConnection ​

Convenient method to set the source glyph connection

ArgumentTypeRequiredDescription
outputPortvtkPipelineConnectionYesThe output port of the glyph source.