.TH "SoLineHighlightRenderAction" 3 "Thu May 29 2014" "Version 4.0.0a" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoLineHighlightRenderAction \- .PP The \fBSoLineHighlightRenderAction\fP class renders selections with line highlighting\&. .PP See the documentation of \fBSoBoxHighlightRenderAction\fP\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBSoGLRenderAction\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual \fBSoType\fP \fBgetTypeId\fP (void) const " .br .ti -1c .RI "\fBSoLineHighlightRenderAction\fP (void)" .br .ti -1c .RI "\fBSoLineHighlightRenderAction\fP (const \fBSbViewportRegion\fP &viewportregion)" .br .ti -1c .RI "virtual \fB~SoLineHighlightRenderAction\fP (void)" .br .ti -1c .RI "virtual void \fBapply\fP (\fBSoNode\fP *node)" .br .ti -1c .RI "virtual void \fBapply\fP (\fBSoPath\fP *path)" .br .ti -1c .RI "virtual void \fBapply\fP (const \fBSoPathList\fP &pathlist, SbBool obeysrules=FALSE)" .br .ti -1c .RI "void \fBsetVisible\fP (const SbBool visible)" .br .ti -1c .RI "SbBool \fBisVisible\fP (void) const " .br .ti -1c .RI "void \fBsetColor\fP (const \fBSbColor\fP &color)" .br .ti -1c .RI "const \fBSbColor\fP & \fBgetColor\fP (void)" .br .ti -1c .RI "void \fBsetLinePattern\fP (uint16_t pattern)" .br .ti -1c .RI "uint16_t \fBgetLinePattern\fP (void) const " .br .ti -1c .RI "void \fBsetLineWidth\fP (const float width)" .br .ti -1c .RI "float \fBgetLineWidth\fP (void) const " .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static void \fBaddMethod\fP (const \fBSoType\fP type, SoActionMethod method)" .br .ti -1c .RI "static void \fBenableElement\fP (const \fBSoType\fP type, const int stackindex)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual const .br \fBSoEnabledElementsList\fP & \fBgetEnabledElements\fP (void) const " .br .in -1c .SS "Static Protected Member Functions" .in +1c .ti -1c .RI "static \fBSoEnabledElementsList\fP * \fBgetClassEnabledElements\fP (void)" .br .ti -1c .RI "static \fBSoActionMethodList\fP * \fBgetClassActionMethods\fP (void)" .br .in -1c .SS "Protected Attributes" .in +1c .ti -1c .RI "SbBool \fBhlVisible\fP" .br .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP The \fBSoLineHighlightRenderAction\fP class renders selections with line highlighting\&. .PP See the documentation of \fBSoBoxHighlightRenderAction\fP\&. The only difference between \fBSoBoxHighlightRenderAction\fP and this action is that this action renders highlights by superposing a wireframe image onto each shape instead of the bounding box when drawing the highlight\&. .PP Note: an important limitation for this rendering action is that the superimposition of a wireframe is only guaranteed to work correctly for filled shapes, due to a limitation in OpenGL's glPolygonOffset() functionality\&. For more information, see the class documentation of the \fBSoPolygonOffset\fP node\&. .PP \fBSee also:\fP .RS 4 \fBSoBoxHighlightRenderAction\fP, \fBSoSelection\fP .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "SoLineHighlightRenderAction::SoLineHighlightRenderAction (void)" Default constructor\&. Note: passes a default \fBSbViewportRegion\fP to the parent constructor\&. .SS "SoLineHighlightRenderAction::SoLineHighlightRenderAction (const \fBSbViewportRegion\fP &viewportregion)" Constructor, taking an explicit \fIviewportregion\fP to render\&. .SS "SoLineHighlightRenderAction::~SoLineHighlightRenderAction (void)\fC [virtual]\fP" The destructor\&. .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoLineHighlightRenderAction::getTypeId (void) const\fC [virtual]\fP" Returns the type identification of an action derived from a class inheriting \fBSoAction\fP\&. This is used for run-time type checking and 'downward' casting\&. .PP Usage example: .PP .PP .nf void bar(SoAction * action) { if (action->getTypeId() == SoGLRenderAction::getClassTypeId()) { // safe downward cast, know the type SoGLRenderAction * glrender = (SoGLRenderAction *)action; } return; // ignore if not renderaction } .fi .PP .PP For application programmers wanting to extend the library with new actions: this method needs to be overridden in \fIall\fP 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 Inventor/nodes/SoSubAction\&.h: SO_ACTION_SOURCE, SO_ACTION_INIT_CLASS and SO_ACTION_CONSTRUCTOR\&. .PP For more information on writing Coin extensions, see the \fBSoAction\fP class documentation\&. .PP Returns the actual type id of an object derived from a class inheriting \fBSoAction\fP\&. Needs to be overridden in \fIall\fP subclasses\&. .PP Reimplemented from \fBSoGLRenderAction\fP\&. .SS "void SoLineHighlightRenderAction::addMethod (const \fBSoType\fPtype, SoActionMethodmethod)\fC [static]\fP" \fIThis API member is considered internal to the library, as it is not likely to be of interest to the application programmer\&.\fP .SS "void SoLineHighlightRenderAction::enableElement (const \fBSoType\fPtype, const intstackindex)\fC [static]\fP" \fIThis API member is considered internal to the library, as it is not likely to be of interest to the application programmer\&.\fP .SS "const \fBSoEnabledElementsList\fP & SoLineHighlightRenderAction::getEnabledElements (void) const\fC [protected]\fP, \fC [virtual]\fP" Returns a list of the elements used by action instances of this class upon traversal operations\&. .PP Reimplemented from \fBSoGLRenderAction\fP\&. .SS "void SoLineHighlightRenderAction::apply (\fBSoNode\fP *root)\fC [virtual]\fP" Applies the action to the scene graph rooted at \fIroot\fP\&. .PP Note that you should \fInot\fP apply an action to a node with a zero reference count\&. The behavior in that case is undefined\&. .PP Reimplemented from \fBSoAction\fP\&. .SS "void SoLineHighlightRenderAction::apply (\fBSoPath\fP *path)\fC [virtual]\fP" Applies the action to the parts of the graph defined by \fIpath\fP\&. .PP Note that an \fBSoPath\fP will also contain all nodes that may influence e\&.g\&. geometry nodes in the path\&. So for instance applying an \fBSoGLRenderAction\fP on an \fBSoPath\fP will render that path as expected in the view, where geometry will get its materials, textures, and other appearance settings correctly\&. .PP If the \fIpath\fP ends in an \fBSoGroup\fP node, the action will also traverse the tail node's children\&. .PP Reimplemented from \fBSoAction\fP\&. .SS "void SoLineHighlightRenderAction::apply (const \fBSoPathList\fP &pathlist, SbBoolobeysrules = \fCFALSE\fP)\fC [virtual]\fP" Applies action to the graphs defined by \fIpathlist\fP\&. If \fIobeysrules\fP is set to \fCTRUE\fP, \fIpathlist\fP must obey the following four conditions (which is the case for path lists returned from search actions for non-group nodes and path lists returned from picking actions): .PP All paths must start at the same head node\&. All paths must be sorted in traversal order\&. The paths must be unique\&. No path can continue through the end point of another path\&. .PP \fBSee also:\fP .RS 4 \fBSoAction::apply(SoPath * path)\fP .RE .PP .PP Reimplemented from \fBSoAction\fP\&. .SS "void SoLineHighlightRenderAction::setVisible (const SbBoolvisible)" Sets if highlight wireframes should be \fIvisible\fP when rendering\&. Defaults to \fCTRUE\fP\&. .SS "SbBool SoLineHighlightRenderAction::isVisible (void) const" Return if selection wireframes should be visible\&. .SS "void SoLineHighlightRenderAction::setColor (const \fBSbColor\fP &color)" Sets the \fIcolor\fP of the wireframes\&. Defaults to red\&. .SS "const \fBSbColor\fP & SoLineHighlightRenderAction::getColor (void)" Returns color of selection wireframes\&. .SS "void SoLineHighlightRenderAction::setLinePattern (uint16_tpattern)" Sets the line \fIpattern\fP used when drawing wireframes\&. Defaults to \fC0xffff\fP (i\&.e\&. full, unstippled lines)\&. .SS "uint16_t SoLineHighlightRenderAction::getLinePattern (void) const" Returns line pattern used when drawing wireframe\&. .SS "void SoLineHighlightRenderAction::setLineWidth (const floatwidth)" Sets the line \fIwidth\fP used when drawing wireframe\&. Defaults to 3 (measured in screen pixels)\&. .SS "float SoLineHighlightRenderAction::getLineWidth (void) const" Returns the line width used when drawing wireframe\&. .SH "Member Data Documentation" .PP .SS "SoLineHighlightRenderAction::hlVisible\fC [protected]\fP" Boolean which decides whether or not the highlights for selected nodes should be visible\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.