GlyphRepresentation
Introduction
vtkGlyphRepresentation renders one glyph per widget state through a vtkGlyph3DMapper. The position, color, scale and orientation of the glyphs are filled by mixin functions selected from the mixins the states actually carry.
Methods
color
Writes the states scalar color into a 1-component color array.
color3
Writes the states RGB color and opacity into a 4-component color array.
direction
Writes the states right/up/direction vectors into a 9-component matrix array.
extend
Method use to decorate a given object (publicAPI+model) with vtkGlyphRepresentation characteristics.
Delegates to vtkContextRepresentation when initialValues.behavior is Behavior.CONTEXT, and to vtkHandleRepresentation otherwise.
| 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 | IGlyphRepresentationInitialValues | No | (default: {}) |
getDefaultScale
Scale applied to the glyphs of the states that do not provide a scale mixin.
getGlyph
The source producing the glyph geometry (a vtkSphereSource by default).
getMixins
Pick, for each glyph attribute, the mixin function matching the mixins carried by the given states.
noColor
Disables coloring by array on the mapper.
noOrientation
Disables orientation by array on the mapper.
noPosition
Empties the polydata points, hiding every glyph.
noScale
Applies defaultScale on the mapper instead of a scale array.
origin
Writes the states origins into the polydata points.
scale1
Writes a uniform scale into a 1-component scale array.
scale3
Writes a per-component scale into a 3-component scale array.