![]() |
http://www.sim.no http://www.coin3d.org |
The SoLocateHighlight class highlights geometry under the cursor. More...
#include <Inventor/nodes/SoLocateHighlight.h>
Public Types | |
enum | Modes { AUTO , ON , OFF } |
enum | Styles { EMISSIVE , EMISSIVE_DIFFUSE } |
![]() | |
enum | CacheEnabled { OFF , ON , AUTO } |
![]() | |
enum | NodeType { INVENTOR = 0x0000 , VRML1 = 0x0001 , VRML2 = 0x0002 , INVENTOR_1 = 0x0004 , INVENTOR_2_0 = 0x0008 , INVENTOR_2_1 = 0x0010 , INVENTOR_2_5 = 0x0020 , INVENTOR_2_6 = 0x0040 , COIN_1_0 = 0x0080 , COIN_2_0 = 0x0100 , EXTENSION = 0x0200 , COIN_2_2 = 0x0400 , COIN_2_3 = 0x0800 , COIN_2_4 = 0x1000 , INVENTOR_5_0 = 0x2000 , COIN_2_5 = 0x4000 } |
Public Attributes | |
SoSFColor | color |
SoSFEnum | style |
SoSFEnum | mode |
![]() | |
SoSFEnum | renderCaching |
SoSFEnum | boundingBoxCaching |
SoSFEnum | renderCulling |
SoSFEnum | pickCulling |
Static Protected Member Functions | |
static const SoFieldData ** | getFieldDataPtr (void) |
![]() | |
static const SoFieldData ** | getFieldDataPtr (void) |
![]() | |
static const SoFieldData ** | getFieldDataPtr (void) |
![]() | |
static const SoFieldData ** | getFieldDataPtr (void) |
static void | setNextActionMethodIndex (int index) |
static int | getNextActionMethodIndex (void) |
static void | incNextActionMethodIndex (void) |
static void | setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask) |
![]() | |
static uint32_t | getCurrentWriteCounter (void) |
static void | staticDataLock (void) |
static void | staticDataUnlock (void) |
Additional Inherited Members | |
![]() | |
enum | BaseFlags { IS_ENGINE = 0x01 , IS_GROUP = 0x02 } |
![]() | |
SoChildList * | children |
![]() | |
uint32_t | uniqueId |
![]() | |
SbBool | isBuiltIn |
![]() | |
static uint32_t | nextUniqueId = 0 |
static int | nextActionMethodIndex = 0 |
The SoLocateHighlight class highlights geometry under the cursor.
Note: this node is supposed to draw to the front buffer. However, in Coin we always draw to the back buffer, forcing a scene redraw whenever a highlight state changes.
FILE FORMAT/DEFAULTS:
SoLocateHighlight::SoLocateHighlight | ( | void | ) |
|
protectedvirtual |
Destructor.
Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and "downward" casting.
Usage example:
For application programmers wanting to extend the library with new nodes, engines, nodekits, draggers or others: this method needs to be overridden in all subclasses. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through for instance Inventor/nodes/SoSubNode.h (SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine.h (for engine classes) and so on.
For more information on writing Coin extensions, see the class documentation of the toplevel superclasses for the various class groups.
Reimplemented from SoSeparator.
Reimplemented in SoWWWAnchor.
|
protectedvirtual |
Returns a pointer to the class-wide field data storage object for this instance. If no fields are present, returns NULL
.
Reimplemented from SoSeparator.
Reimplemented in SoWWWAnchor.
|
virtual |
Action method for SoHandleEventAction.
Inspects the event data from action, and processes it if it is something which this node should react to.
Nodes influencing relevant state variables for how event handling is done also overrides this method.
Reimplemented from SoSeparator.
Reimplemented in SoWWWAnchor.
References AUTO, SbList< Type >::copy(), SoAction::getCurPath(), SoHandleEventAction::getEvent(), SoHandleEventAction::getPickedPoint(), SoSeparator::handleEvent(), mode, redrawHighlighted(), and SoBase::touch().
Referenced by SoWWWAnchor::handleEvent().
|
virtual |
SGI Open Inventor v2.1 obsoleted support for SoGLRenderAction::addMethod(). Instead, GLRender() might be called directly, and to optimize traversal, the SoSeparator node calls GLRenderBelowPath whenever the path code is BELOW_PATH or NO_PATH (path code is guaranteed not to change). To be compatible with SGI's Inventor (and thereby also TGS') we have chosen to follow their implementation in this respect.
SoSeparator::GLRenderBelowPath() do not traverse its children using SoChildList::traverse(), but calls GLRenderBelowPath() directly for all its children.
Reimplemented from SoSeparator.
References SoAction::getState(), SoSeparator::GLRenderBelowPath(), mode, ON, SoState::pop(), and SoState::push().
|
virtual |
Implements the SoAction::IN_PATH traversal method for the rendering action.
Reimplemented from SoSeparator.
References SoAction::getState(), SoSeparator::GLRenderInPath(), mode, ON, SoState::pop(), and SoState::push().
|
static |
Static method that can be used to turn off the current highlight.
Empty method in Coin. Can be used by subclasses to be told when status change.
Reimplemented in SoWWWAnchor.
Referenced by handleEvent(), and SoWWWAnchor::redrawHighlighted().
SoSFColor SoLocateHighlight::color |
The color used for highlighting. Default is [0.3, 0.3, 0.3], a dark gray.
Referenced by SoLocateHighlight().
SoSFEnum SoLocateHighlight::style |
The highlight style. Default is SoLocateHighlight::EMISSIVE.
Referenced by SoLocateHighlight().
SoSFEnum SoLocateHighlight::mode |
The highlight mode. Default is SoLocateHighlight::AUTO.
Referenced by GLRenderBelowPath(), GLRenderInPath(), handleEvent(), and SoLocateHighlight().
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Mon Jan 22 2024 for Coin by Doxygen. 1.10.0