SoColorHighlightRenderAction Class Reference
[Actions]

A polygon selection highlight style. More...

#include <Inventor/actions/SoColorHighlightRenderAction.h>

Inheritance diagram for SoColorHighlightRenderAction:
SoHighlightRenderAction SoGLRenderAction SoAction SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoColorHighlightRenderAction ()
 SoColorHighlightRenderAction (const SbViewportRegion &viewportRegion)
virtual ~SoColorHighlightRenderAction ()
void setColor (const SbColor &c)
const SbColorgetColor () const

Static Public Member Functions

static SoType getClassTypeId ()
static void initClass ()
static void exitClass ()

Detailed Description

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.

EXAMPLE

SEE ALSO

SoLineHighlightRenderAction, SoBoxHighlightRenderAction, SoHaloHighlightRenderAction, SoHighlightRenderAction, SoGLRenderAction, SoSelection, SoWinRenderArea, SoDrawStyle, SoInteraction

See related examples:

HighlightingStylesDemo


Constructor & Destructor Documentation

SoColorHighlightRenderAction::SoColorHighlightRenderAction (  ) 
SoColorHighlightRenderAction::SoColorHighlightRenderAction ( const SbViewportRegion viewportRegion  ) 
virtual SoColorHighlightRenderAction::~SoColorHighlightRenderAction (  )  [virtual]

Member Function Documentation

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.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/