legend

legend

The legend module is used to place a 2D legend which helps correlate colors to analytical values or materials. The legend shows the relationship between the selected data component for a particular module and the colors shown in the viewer. For this reason, the legend’s Input Object port must be connected to the output of a module which is connected to the viewer and is generally the dominant colored object in view.

Many modules with renderable output ports have a selector to choose which data component is used for coloring. The name of the selected data component will be displayed as the title of the legend if the label options are set to automatic (the default).

If the data component to be viewed is either Geo_Layer or Material_ID (for models where the grid is based upon geology), the Geology Legend port from gridding and horizons (or lithologic modeling) must also be connected to provide the geologic layer or material names for automatic labeling. When this port is connected it will have no effect if any other data component is selected.

The minimum and maximum values are taken from the data input as defined in the datamap. Labels can be placed at user defined intervals along the color scale bar. Labels can consist of user input alphanumerical values or automatically determined numerical values.

Ports

DirectionNameTypeDescription
InputInput ObjectRenderableA renderable object for creating the Legend color scale.
InputGeology LegendGeology LegendGeology legend information.
InputContour levelsContoursInformation required to properly set contour levels within Legend.
OutputOutput ObjectRenderableA renderable object displaying the legend.

Properties

PropertyTypeDescription
Allow RunBooleanThe Allow Run toggle, when deselected, will prevent the module from running.
ExecuteButtonThis button will force the module to run even if the Allow Run toggle has been turned off. This allows the user to make a number of changes before updating.
OrientationChoice: Horizontal, VerticalOrientation allows the user to determine which orientation is used when creating a 2D Legend.
Anchor PointPlacementThe Anchor Point determines where to place the legend, and which point on the legend to base placement on.
Position Offset2D PercentageThe position offset for the legend placement.
OverlayChoice: Behind Scene, In front of sceneThe Overlay control allows the user to put the legend behind the model or in front of it.
Flip LegendBooleanThe Flip Legend toggle inverts the legend putting high values at the bottom.
UnitsStringThe Units to add to the end of each label.
Texture X ScaleDoubleThe size of the scale in screen space (X direction).
Texture Y ScaleDoubleThe size of the scale in screen space (Y direction).

Scale Properties

PropertyTypeDescription
Scale SizeDoubleThe size of the scale in screen space.
Display Scale In OutputBooleanThe Display Scale in Output toggle specifies whether or not to output the colored portion of the legend in the Legend’s Output Object port.
Force Gradiated ColorsBooleanThe Force Gradiated Colors toggle will cause the Legend to display gradiated colors instead of solid color breaks when contour data is passed in.
Equally Size ContoursBooleanThe Equally Size Contours toggle will cause the Legend to display each contour as equal in size, rather than relative to the portion of the data range represented.
Use Integers As ContoursBooleanThe Use Integers As Contours toggle will cause the legend to treat the input data as contoured, with each integer being the label of each contour.
Aspect RatioDoubleThe Aspect Ratio restricts the size of the scale to a percentage of the Scale Size.
Boundary LinesBooleanThe Boundary Lines toggle specifies whether or not a boundary box is to be drawn around the Legend scale bar.
Value MarkersBooleanThe Value Markers toggle specifies whether or not a tick mark is to be drawn at each label location.
Boundary ThicknessDoubleThe Boundary Thickness value determines how thick to draw the boundary lines, as a percentage of the scale size.
Boundary ColorColorThe Boundary Color sets the color of the lines that surround the Legend.
Value Marker ThicknessDoubleThe Value Marker Thickness value determines how thick to draw the ticks, as a percentage of the scale size.
Gap SizeDoubleThe Gap Size determines how large a gap to leave between solid blocks, as a percentage of the scale size. The labels must be centered, and the legend in solid or textured blocks for gaps to be allowed.

Text Properties

PropertyTypeDescription
Labels OnBooleanThe Labels On toggle is used to specify whether or not the data labels are to be displayed with the Legend.
FontFontThe Title Font allows the user to alter the basic look of the font.
TitleExpressionTitle sets the template the title is generated with.
LabelsExpressionLabels sets the template the labels are generated with.
Title Offset2D PercentageThe offset for the title position.
Label Offset2D PercentageThe offset for the label position.
Title SideChoice: Left, Right, Top, BottomThe Title Side determines where the title for the Legend will display.
Label SideChoice: Left, Right, Top, BottomThe Label Side determines which side of the scale to place the labels on.
Title SizeDoubleThe Title Size determines how large to make the title text. It scales with the Scale Size.
Label SizeDoubleThe Label Size determines how large to make the labels’ text. It scales with the Scale Size.
Title AlignmentAlignmentTitle Alignment allows the user to align the title appropriately.
Label AlignmentAlignmentLabel Alignment allows the user to align the labels appropriately.
Title ColorColorThe Title Color sets the color of the title that labels the Legend.
Label ColorColorThe Label Color sets the color of the labels on the Legend.
Label MinBooleanThe Label Min toggle places a label at the bottom (min) of the data. This only applies to linear or log unformatted.
Label MaxBooleanThe Label Max toggle places a label at the top (max) of the data. This only applies to linear or log unformatted.
Label BoldBooleanThe Label Bold toggle determines whether to bold the font used in labels.
Label ItalicBooleanThe Label Italic toggle determines whether to italicize the font used in labels.
Centered Analytic LabelsBooleanWhether or not to use centered labels when working with contoured analytes.
Centered Analytic LabelExpressionLabels sets the template the labels are generated with when working with contoured analytes.
Label AngleDoubleThe Label Angle specifies how to rotate the labels.
Label TypeChoice: Set By Data, Set By UserThe Label Type allows the user to choose between data generated labels or user specified labels.
Logarithmic DecadesChoice: Log, UnformattedWhen the data has been log processed, the Logarithmic Decades determines the number of label increments in the color scale bar. If the Log option is selected the Labels Per Log Decade value is used. If Unformatted is selected the Number Of Intervals is used.
Labels Per Log DecadeIntegerIf the Log Option is selected for Logarithmic Decades, the increments per decade can be set with this value.
Number Of IntervalsIntegerIf the data has been processed in linear space or the Unformatted option is selected for Logarithmic Decades, the total increments for the color scale bar can be set with this value.
Format Label NumbersNumber FormattingThe Format Label Numbers control allows the user to set how numbers that are turned into labels will be formatted.
Type In LabelsEditable StringsIf the Type-In Labels option is selected for Label Processing, the labels may be set using this control.
Prepend MinStringThe Prepend Min string is placed before the label for the minimum value in the Legend.
Prepend MaxStringThe Prepend Max string is placed before the label for the maximum value in the Legend.