Special separator that performs locate highlighting. More...
#include <Inventor/nodes/SoLocateHighlight.h>
Public Types | |
enum | Styles { EMISSIVE, EMISSIVE_DIFFUSE } |
enum | Modes { AUTO, ON, OFF } |
Public Member Functions | |
virtual SoType | getTypeId () const |
SoLocateHighlight () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFColor | color |
SoSFEnum | style |
SoSFEnum | mode |
Deprecated | |
| |
static SoDEPRECATED void | turnOffCurrentHighlight (SoGLRenderAction *action) |
This is a subclass of 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.
Limitations:
To override the default mode (off), set environment variable IV_ALLOW_LOCATE_HIGHLIGHT to 1. This will allow locate highlighting to happen by default.
boundingBoxCaching | AUTO |
renderCulling | AUTO |
pickCulling | AUTO |
mode | OFF |
style | EMISSIVE |
color | 0.3 0.3 0.3 |
fastEditing | DISABLE |
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.
SoSeparator, SoSelection, SoMaterial
SoLocateHighlight::SoLocateHighlight | ( | ) |
Creates a LocateHighlight node with default settings.
static SoType SoLocateHighlight::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoSeparator.
Reimplemented in SoWWWAnchor.
virtual SoType SoLocateHighlight::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoSeparator.
Reimplemented in SoWWWAnchor.
static SoDEPRECATED void SoLocateHighlight::turnOffCurrentHighlight | ( | SoGLRenderAction * | action | ) | [static] |
This will de-highlight the currently highlighted node if any.
this should be called when the cursor leaves a window or a mode changes happen which would prevent a highlighted node from receiving more mouse motion events. The GL render action used to render into that window needs to be passed to correctly un-highlight.
Highlighting color - default [.3, .3, .3].
Whether to highlight or not.
Use enum Modes. Default OFF.
Highlighting draw style.
Use enum Styles. Default EMISSIVE.