logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoLineHighlightRenderAction — selection highlight style

Description

SoLineHighlightRenderAction is a render action which renders the specified scene graph, then renders each
       selected  object  again in wireframe. Selected objects are specified by the first SoSelection node in the
       scene to which this action is applied. If there is no  renderable  geometry  in  a  selected  object,  no
       highlight is rendered for that object. A highlight render action can be passed to the setGLRenderAction()
       method of SoXtRenderArea to have an affect on scene graphs.

Example

       Here is an example of how a line highlight can be specified for a particular selection  node  and  render
       area.

              SoXtRenderArea*myRenderArea;SoSelection*mySelection;//SetthehighlightrenderactionmyRenderArea->setGLRenderAction(newSoLineHighlightRenderAction());//AutomaticredrawonselectionchangesmyRenderArea->redrawOnSelectionChange(mySelection);

Inherits From

       SoAction > SoGLRenderAction > SoLineHighlightRenderAction

Methods

SoLineHighlightRenderAction()
          Constructor.

     virtualvoidapply(SoNode*node)
          This  renders the passed scene graph, and also renders each selected object in wireframe, as specified
          by the first SoSelection node found in the scene graph.

     voidsetVisible(SbBoolb)
          This provides a convenient mechansim for turning highlights off or back  on.  When  FALSE  is  passed,
          subsequent  calls  to apply()  render the scene graph without rendering highlights. The application is
          responsible for forcing a redraw of the scene after changing this state. The default visibility is on.

     SbBoolisVisible()const
          Returns whether highlights will be rendered or not.

     voidsetColor(constSbColor&c)SbColor&getColor()
          Set and get 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 affects of this change.

     voidsetLinePattern(unsignedshortpattern)unsignedshortgetLinePattern()
          Set  and  get  the line pattern of the highlight. Default is solid, 0xffff. The pattern of bits in the
          passed variable specifies the  pattern  of  the  line.  See  SoDrawStyle  for  more  information.  The
          application is responsible for forcing a redraw of the scene to see the affects of this change.

     voidsetLineWidth(floatwidth)floatgetLineWidth()
          Set  and get the line width of the highlight. Default is 3. The application is responsible for forcing
          a redraw of the scene to see the affects of this change.

Name

       SoLineHighlightRenderAction — selection highlight style

See Also

SoBoxHighlightRenderAction,SoGLRenderAction,SoSelection,SoXtRenderArea,SoDrawStyle,SoInteractionSoLineHighlightRenderAction(3IV)()

Synopsis

#include<Inventor/actions/SoLineHighlightRenderAction.h>

          Methods from class SoLineHighlightRenderAction:

                         SoLineHighlightRenderAction()virtualvoidapply(SoNode*node)voidsetVisible(SbBoolb)SbBoolisVisible()constvoidsetColor(constSbColor&c)SbColor&getColor()voidsetLinePattern(unsignedshortpattern)unsignedshortgetLinePattern()voidsetLineWidth(floatwidth)floatgetLineWidth()

          Methods from class SoGLRenderAction:

     voidsetViewportRegion(constSbViewportRegion&newRegion)constSbViewportRegion&getViewportRegion()constvoidsetUpdateArea(constSbVec2f&origin,constSbVec2f&size)voidgetUpdateArea(SbVec2f&origin,SbVec2f&size)constvoidsetAbortCallback(SoGLRenderAbortCB*func,void*userData)voidsetTransparencyType(TransparencyTypetype)TransparencyTypegetTransparencyType()constvoidsetSmoothing(SbBoolsmooth)SbBoolisSmoothing()constvoidsetNumPasses(intnum)intgetNumPasses()constvoidsetPassUpdate(SbBoolflag)SbBoolisPassUpdate()constvoidsetPassCallback(SoGLRenderPassCB*func,void*userData)voidsetCacheContext(uint32_tcontext)uint32_tgetCacheContext()const

          Methods from class SoAction:

     staticSoTypegetClassTypeId()virtualSoTypegetTypeId()virtualSbBoolisOfType(SoTypetype)virtualvoidinvalidateState()

See Also