A polygon selection highlight style. More...
#include <Inventor/actions/SoColorHighlightRenderAction.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoColorHighlightRenderAction () | |
SoColorHighlightRenderAction (const SbViewportRegion &viewportRegion) | |
virtual | ~SoColorHighlightRenderAction () |
void | setColor (const SbColor &c) |
const SbColor & | getColor () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static void | initClass () |
static void | exitClass () |
A polygon selection highlight style.
SoColorHighlightRenderAction is a render action which renders the scene graph and then renders again the polygons of selected objects in a highlight color.Selected objects are specified by the first SoSelection node in the scene to which this action is applied. A highlight render action can be passed to the setGLRenderAction() method of render area and viewer classes to have an effect on scene graphs.
// Scene graph SoSelection selectionNode = new SoSelection(); . . . // Viewer SoWinExaminerViewer* viewer = new SoWinExaminerViewer(); viewer->setSceneGraph( selectionNode ); // Set the highlight render action viewer->setGLRenderAction( new SoColorHighlightRenderAction() ); // Request automatic redraw when selection changes viewer->redrawOnSelectionChange( selectionNode );
SoLineHighlightRenderAction, SoBoxHighlightRenderAction, SoHaloHighlightRenderAction, SoHighlightRenderAction, SoGLRenderAction, SoSelection, SoWinRenderArea, SoDrawStyle, SoInteraction
SoColorHighlightRenderAction::SoColorHighlightRenderAction | ( | ) |
SoColorHighlightRenderAction::SoColorHighlightRenderAction | ( | const SbViewportRegion & | viewportRegion | ) |
virtual SoColorHighlightRenderAction::~SoColorHighlightRenderAction | ( | ) | [virtual] |
static void SoColorHighlightRenderAction::exitClass | ( | ) | [static] |
Reimplemented from SoHighlightRenderAction.
static SoType SoColorHighlightRenderAction::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoHighlightRenderAction.
const SbColor& SoColorHighlightRenderAction::getColor | ( | ) | const |
Gets the color of the highlight.
virtual SoType SoColorHighlightRenderAction::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoHighlightRenderAction.
static void SoColorHighlightRenderAction::initClass | ( | ) | [static] |
Reimplemented from SoHighlightRenderAction.
void SoColorHighlightRenderAction::setColor | ( | const SbColor & | c | ) |
Sets the color of the highlight.
Default is red (1,0,0). The application is responsible for forcing a redraw of the scene to see the effects of this change.