Markers are drawn when a Data node is rendered with its DataType attribute having its DATA_TYPE_MARKER bit set. Drawing of markers is affected by the attributes described in this section. Note that when markers are drawn using lines, the line attributes do not apply to markers.
An alternative to markers are images, which can be used to draw arbitrary symbols instead of markers.
MarkerType is an integer-valued attribute that determines which marker will be drawn. There are constants defined in ChartNode3d for the marker types. The default value is MARKER_TYPE_CUBE. The following table defines marker types.
Marker Type |
Description |
Cube with its edges outlined in a contrasting color. | |
Solid colored cube without edge outlining. | |
Shaded sphere | |
Tetrahedron with its edges outlined in a contrasting color. | |
Solid colored tetrahedron without edge outlining. | |
3D plus sign with its edges outlined in a contrasting color. | |
Solid 3D plus sign without edge outlining | |
Marker defined by the user set using the attribute CustomMarkerFactory. |
MarkerColor is a Color-valued attribute that determines the color of the marker. Its default value is Color.black.
MarkerSize is a double-valued attribute that determines the size of the marker. The default value is 1.0.
Cycle time, in seconds, for pulsing the marker. If this time is less than or equal to zero the marker is not pulsed. The default value is zero.
Offset time, in seconds, from the time rendering begins to when the marker begins pulsing. This attribute allows different markers to pulse with different phases.
The minimum marker size during a pulse cycle is the value of the MarkerPulsingMinimumScale attribute times the value of the MarkerSize attribute.
The maximum marker size during a pulse cycle is the value of the MarkerPulsingMaximumScale attribute times the value of the MarkerSize attribute.
Cycle time, in seconds, for rotating the marker. If this time is less than or equal to zero the marker is not rotated. The default value is zero.
Offset time, in seconds, from the time rendering begins to when the marker begins rotating. This attribute allows different markers to rotate with different phases.
A double[3] array containing the axis of rotation. The default is (0,0,1), the z-axis.
PHONE: 713.784.3131 FAX:713.781.9260 |