Click or drag to resize
SliceScaleBar Fields

The SliceScaleBar type exposes the following members.

Fields
  NameDescription
Public fieldalignment
Scale bar alignment (default is CENTER).
Public fieldlabel
Label (default is empty string).
Public fieldlength
Length in normalized screen coordinates (-1 to 1) if not tracking, else length in 3D world coordinates. Default is 1. For example, if the application is viewing DICOM data measured in millimeters (mm), then setting length to 100 displays a 10 cm scale bar on screen.
Public fieldnumTickIntervals
Number of tick intervals (default is 0). If numTickIntervals is 0, no tick marks are drawn. For example, if the length is set to 100 mm, then set numTickIntervals to 10 to get a tick mark every 10 mm (1 cm).
Public fieldorientation
Scale bar orientation (default is HORIZONTAL).
Public fieldposition
Position in normalized screen coordinates (-1 to 1). Default is (0,0,0).
Public fieldtrackedCamera
Tracked camera (default is null). This should be the camera that is viewing the tracked scene. It will be used to determine the length of the axis in NDC based on the specified length in 3D world coordinates.
Top
See Also