public class SoLocateHighlight extends SoSeparator
SoSeparator
that redraws itself in a different color when the cursor is over the contents of the separator.
The redraw happens for that separator only and not the entire window (redraw along the handle event pick path) and in the front buffer, to efficiently track the mouse motion. The highlighted redraw overrides the emissive and/or diffuse color of the subgraph based on the field values in this node.
NOTE: when using SoLightModel.BASE_COLOR
(to turn lighting off) only the diffuse color will be used to render objects, so EMISSIVE_DIFFUSE must be used for this node to have any effect.
To override the default mode (off), set environment variable IV_ALLOW_LOCATE_HIGHLIGHT to 1. This will allow locate highlighting to happen by default.
File format/default:
LocateHighlight {
renderCaching | AUTO |
boundingBoxCaching | AUTO |
renderCulling | AUTO |
pickCulling | AUTO |
mode | OFF |
style | EMISSIVE |
color | 0.3 0.3 0.3 |
fastEditing | DISABLE |
Action behavior:
SoHandleEventAction
Checks to see if the cursor moves onto or off of the contents of the separator, and redraws appropriately (if mode
is AUTO), otherwise traverses as a normal separator.
SoGLRenderAction
Redraws either highlighted (if cursor is over the contents of the separator when mode
== AUTO or always if mode
== ON), otherwise traverses as a normal separator.
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoLocateHighlight.Modes
Possible values for the mode.
|
static class |
SoLocateHighlight.Styles
Possible values for draw style.
|
SoSeparator.Cachings, SoSeparator.FastEditings, SoSeparator.RenderUnitIds
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
AUTO
Deprecated.
Use
SoLocateHighlight.Modes.AUTO instead. |
SoSFColor |
color
Highlighting color - default [.3, .3, .3].
|
static int |
EMISSIVE
Deprecated.
Use
SoLocateHighlight.Styles.EMISSIVE instead. |
static int |
EMISSIVE_DIFFUSE
Deprecated.
Use
SoLocateHighlight.Styles.EMISSIVE_DIFFUSE instead. |
SoSFEnum<SoLocateHighlight.Modes> |
mode
Whether to highlight or not.
|
static int |
OFF
Deprecated.
Use
SoLocateHighlight.Modes.OFF instead. |
static int |
ON
Deprecated.
Use
SoLocateHighlight.Modes.ON instead. |
SoSFEnum<SoLocateHighlight.Styles> |
style
Highlighting draw style.
|
boundingBoxCaching, CLEAR_ZBUFFER, directVizCaching, DISABLE, fastEditing, KEEP_ZBUFFER, pickCulling, renderCaching, renderCulling, renderUnitId
boundingBoxIgnoring
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoLocateHighlight()
Creates a LocateHighlight node with default settings.
|
Modifier and Type | Method and Description |
---|---|
static void |
turnOffCurrentHighlight(SoGLRenderAction action) |
getNumRenderCaches, setNumRenderCaches
addChild, findChild, getChild, getNumChildren, insertChild, removeAllChildren, removeChild, removeChild, replaceChild, replaceChild
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int EMISSIVE
SoLocateHighlight.Styles.EMISSIVE
instead.@Deprecated public static final int EMISSIVE_DIFFUSE
SoLocateHighlight.Styles.EMISSIVE_DIFFUSE
instead.@Deprecated public static final int AUTO
SoLocateHighlight.Modes.AUTO
instead.@Deprecated public static final int ON
SoLocateHighlight.Modes.ON
instead.@Deprecated public static final int OFF
SoLocateHighlight.Modes.OFF
instead.public final SoSFColor color
public final SoSFEnum<SoLocateHighlight.Styles> style
public final SoSFEnum<SoLocateHighlight.Modes> mode
public SoLocateHighlight()
public static void turnOffCurrentHighlight(SoGLRenderAction action)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com