SoBoxHighl...nderAction(3)
okay bestie, welcome to the group chat of Unix manual pages π
. This is the manual page for SoBoxHighlightRenderAction from the Library Functions Manual. It's a two-parter, and this is part 1. No cap, we're about to get into all the signatures, inherited members, and the whole vibe. π
β¨ NAME β¨
SoBoxHighlightRenderAction β the SoBoxHighlightRenderAction class renders the scene with highlighted boxes around selections. π¦
πΈ SYNOPSIS πΈ
#include <Inventor/actions/SoBoxHighlightRenderAction.h>
Inherits SoGLRenderAction. π
π Public Member Functions π
virtual SoType getTypeId (void) constβ the type-id getter, periodt. β¨SoBoxHighlightRenderAction (void)β default constructor energy. πSoBoxHighlightRenderAction (const SbViewportRegion &viewportregion)β constructor with a viewport region. πΈvirtual ~SoBoxHighlightRenderAction (void)β destructor, she's leaving the chat. πvirtual void apply (SoNode *node)β apply to a node. π¦virtual void apply (SoPath *path)β apply to a path. β¨virtual void apply (const SoPathList &pathlist, SbBool obeysrules=FALSE)β apply to a path list, withobeysrulesdefaulting toFALSE. πvoid setVisible (const SbBool visible)β set visible. πSbBool isVisible (void) constβ is it visible? π₯void setColor (const SbColor &color)β set the color. πconst SbColor & getColor (void)β get the color. πvoid setLinePattern (unsigned short pattern)β set the line pattern. π«unsigned short getLinePattern (void) constβ get the line pattern. βvoid setLineWidth (const float width)β set the line width. πfloat getLineWidth (void) constβ get the line width. π«Ά
π Public Member Functions inherited from SoGLRenderAction π
SoGLRenderAction (const SbViewportRegion &viewportregion)β constructor with viewport region. πΈvirtual ~SoGLRenderAction (void)β destructor. πvoid setViewportRegion (const SbViewportRegion &newregion)β set viewport region. πconst SbViewportRegion & getViewportRegion (void) constβ get viewport region. β¨void setUpdateArea (const SbVec2f &origin, const SbVec2f &size)β set update area. π¦void getUpdateArea (SbVec2f &origin, SbVec2f &size) constβ get update area. πvoid setAbortCallback (SoGLRenderAbortCB *const func, void *const userdata)β set abort callback. π₯void getAbortCallback (SoGLRenderAbortCB *&func_out, void *&userdata_out) constβ get abort callback. πvoid setTransparencyType (const TransparencyType type)β set transparency type. πTransparencyType getTransparencyType (void) constβ get transparency type. βvoid setTransparentDelayedObjectRenderType (TransparentDelayedObjectRenderType type)β set transparent delayed object render type. πTransparentDelayedObjectRenderType getTransparentDelayedObjectRenderType (void) constβ get transparent delayed object render type. π«Άvoid setSmoothing (const SbBool smooth)β set smoothing. π§SbBool isSmoothing (void) constβ is smoothing? πvoid setNumPasses (const int num)β set number of passes. πint getNumPasses (void) constβ get number of passes. β¨void setPassUpdate (const SbBool flag)β set pass update. π¦SbBool isPassUpdate (void) constβ is pass update? πvoid setPassCallback (SoGLRenderPassCB *const func, void *const userdata)β set pass callback. π₯void setCacheContext (const uint32_t context)β set cache context. πuint32_t getCacheContext (void) constβ get cache context. πvoid addDelayedPath (SoPath *path)β add delayed path. βSbBool isRenderingDelayedPaths (void) constβ is rendering delayed paths? πSbBool handleTransparency (SbBool istransparent=FALSE)β handle transparency, defaultFALSE. π«Άvoid setCurPass (const int passnum, const int numpasses)β set current pass. π§int getCurPass (void) constβ get current pass. πSbBool abortNow (void)β abort now. πvoid setRenderingIsRemote (SbBool isremote)β set rendering is remote. πSbBool getRenderingIsRemote (void) constβ get rendering is remote. β¨virtual void invalidateState (void)β invalidate state. π¦void addPreRenderCallback (SoGLPreRenderCB *func, void *userdata)β add pre-render callback. πvoid removePreRenderCallback (SoGLPreRenderCB *func, void *userdata)β remove pre-render callback. π₯void setSortedLayersNumPasses (int num)β set sorted layers number of passes. πint getSortedLayersNumPasses (void) constβ get sorted layers number of passes. πvoid setSortedObjectOrderStrategy (const SortedObjectOrderStrategy strategy, SoGLSortedObjectOrderCB *cb=NULL, void *closure=NULL)β set sorted object order strategy, withcbandclosuredefaulting toNULL. βvoid setDelayedObjDepthWrite (SbBool write)β set delayed object depth write. πSbBool getDelayedObjDepthWrite (void) constβ get delayed object depth write. π«ΆSbBool isRenderingTranspPaths (void) constβ is rendering transparent paths? π§SbBool isRenderingTranspBackfaces (void) constβ is rendering transparent backfaces? π
π Public Member Functions inherited from SoAction π
virtual ~SoAction (void)β destructor. πvirtual SbBool isOfType (SoType type) constβ is of type? πvoid apply (SoAction *beingApplied)β apply. β¨AppliedCode getWhatAppliedTo (void) constβ get what applied to. π¦SoNode * getNodeAppliedTo (void) constβ get node applied to. πSoPath * getPathAppliedTo (void) constβ get path applied to. π₯const SoPathList * getPathListAppliedTo (void) constβ get path list applied to. πconst SoPathList * getOriginalPathListAppliedTo (void) constβ get original path list applied to. πSbBool isLastPathListAppliedTo (void) constβ is last path list applied to? βPathCode getPathCode (int &numindices, const int *&indices)β get path code. πvoid traverse (SoNode *const node)β traverse. π«ΆSbBool hasTerminated (void) constβ has terminated? π§const SoPath * getCurPath (void)β get current path. πSoState * getState (void) constβ get state. πPathCode getCurPathCode (void) constβ get current path code. β¨virtual SoNode * getCurPathTail (void)β get current path tail. π¦void usePathCode (int &numindices, const int *&indices)β use path code. πvoid pushCurPath (const int childindex, SoNode *node=NULL)β push current path,nodedefaults toNULL. π₯void popCurPath (const PathCode prevpathcode)β pop current path. πvoid pushCurPath (void)β push current path. πvoid popPushCurPath (const int childindex, SoNode *node=NULL)β pop-push current path,nodedefaults toNULL. βvoid popCurPath (void)β pop current path. πvoid switchToPathTraversal (SoPath *path)β switch to path traversal. π«Άvoid switchToNodeTraversal (SoNode *node)β switch to node traversal. π§
π Static Public Member Functions π
static SoType getClassTypeId (void)β get class type ID. πstatic void addMethod (const SoType type, SoActionMethod method)β add method. πstatic void enableElement (const SoType type, const int stackindex)β enable element. β¨static void initClass (void)β init class. π¦
π Static Public Member Functions inherited from SoGLRenderAction π
static SoType getClassTypeId (void)β get class type ID. πstatic void addMethod (const SoType type, SoActionMethod method)β add method. π₯static void enableElement (const SoType type, const int stackindex)β enable element. πstatic void initClass (void)β init class. π
π Static Public Member Functions inherited from SoAction π
static void initClass (void)β init class. βstatic void initClasses (void)β init classes. πstatic SoType getClassTypeId (void)β get class type ID. π«Άstatic void nullAction (SoAction *action, SoNode *node)β null action. π§
π Protected Member Functions π
virtual const SoEnabledElementsList & getEnabledElements (void) constβ get enabled elements. π
π Protected Member Functions inherited from SoGLRenderAction π
virtual void beginTraversal (SoNode *node)β begin traversal. πvirtual void endTraversal (SoNode *node)β end traversal. β¨
π Protected Member Functions inherited from SoAction π
SoAction (void)β constructor. π¦void setTerminated (const SbBool flag)β set terminated. πvirtual SbBool shouldCompactPathList (void) constβ should compact path list? π₯
π Static Protected Member Functions π
static SoEnabledElementsList * getClassEnabledElements (void)β get class enabled elements. πstatic SoActionMethodList * getClassActionMethods (void)β get class action methods. π
π Static Protected Member Functions inherited from SoGLRenderAction π
static SoEnabledElementsList * getClassEnabledElements (void)β get class enabled elements. βstatic SoActionMethodList * getClassActionMethods (void)β get class action methods. π
π Static Protected Member Functions inherited from SoAction π
static SoEnabledElementsList * getClassEnabledElements (void)β get class enabled elements. π«Άstatic SoActionMethodList * getClassActionMethods (void)β get class action methods. π§
π‘οΈ Protected Attributes π‘οΈ
SbBool hlVisibleβ highlight visible flag. π
π Protected Attributes inherited from SoAction π
SoState * stateβ state. πSoActionMethodList * traversalMethodsβ traversal methods. β¨
π Additional Inherited Members π
π Public Types inherited from SoGLRenderAction π
enum TransparencyType { SCREEN_DOOR, ADD, DELAYED_ADD, SORTED_OBJECT_ADD, BLEND, DELAYED_BLEND, SORTED_OBJECT_BLEND, SORTED_OBJECT_SORTED_TRIANGLE_ADD, SORTED_OBJECT_SORTED_TRIANGLE_BLEND, NONE, SORTED_LAYERS_BLEND }β transparency types. π¦enum TransparentDelayedObjectRenderType { ONE_PASS, NONSOLID_SEPARATE_BACKFACE_PASS }β transparent delayed object render types. πenum AbortCode { CONTINUE, ABORT, PRUNE, DELAY }β abort codes. π₯enum SortedObjectOrderStrategy { BBOX_CENTER, BBOX_CLOSEST_CORNER, BBOX_FARTHEST_CORNER, CUSTOM_CALLBACK }β sorted object order strategies. πtypedef AbortCode SoGLRenderAbortCB(void *userdata)β the abort callback typedef. π
π Public Types inherited from SoAction π
enum AppliedCode { NODE = 0, PATH = 1, PATH_LIST = 2 }β applied codes. βenum PathCode { NO_PATH = 0, IN_PATH = 1, BELOW_PATH = 2, OFF_PATH = 3 }β path codes. π
π Detailed Description π
The SoBoxHighlightRenderAction class renders the scene with highlighted boxes around selections. π
This action performs the same tasks as its parent class, SoGLRenderAction, with the added ability to render highlighted bounding boxes around geometry in selected nodes. This is a simple but convenient way of giving feedback to the user upon interaction with the scene graph. β¨
To have the highlighting actually happen (and to be able to automatically "select" nodes by picking with the mouse cursor), you need to use SoSelection nodes in place of group nodes. π
π See also π
SoLineHighlightRenderActionSoSelection
π οΈ Constructor & Destructor Documentation π οΈ
SoBoxHighlightRenderAction::SoBoxHighlightRenderAction (void )
Default constructor. Note: passes a default SbViewportRegion to the parent constructor. π
SoBoxHighlightRenderAction::SoBoxHighlightRenderAction (const SbViewportRegion & viewportregion)
Constructor, taking an explicit viewportregion to render. πΈ
SoBoxHighlightRenderAction::~SoBoxHighlightRenderAction (void ) [virtual]
Destructor. π
π Member Function Documentation π
okay bestie, this is where we meet every function in SoBoxHighlightRenderAction. no skips, no cap. π
π¦ getTypeId
SoType SoBoxHighlightRenderAction::getTypeId (void ) const [virtual]
Returns the type identification of an action derived from a class inheriting SoAction. This is used for run-time type checking and "downward" casting. it's giving type-system main character energy π₯
Usage example:
void bar(SoAction * action)
{
if (action->getTypeId() == SoGLRenderAction::getClassTypeId()) {
// safe downward cast, know the type
SoGLRenderAction * glrender = (SoGLRenderAction *)action;
}
return; // ignore if not renderaction
}
For application programmers wanting to extend the library with new actions: 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 Inventor/nodes/SoSubAction.h: SO_ACTION_SOURCE, SO_ACTION_INIT_CLASS and SO_ACTION_CONSTRUCTOR.
For more information on writing Coin extensions, see the SoAction class documentation.
Returns the actual type id of an object derived from a class inheriting SoAction. Needs to be overridden in all subclasses.
Reimplemented from SoGLRenderAction.
π addMethod
void SoBoxHighlightRenderAction::addMethod (const SoType type,
SoActionMethod method) [static]
heads up: this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
π¦ enableElement
void SoBoxHighlightRenderAction::enableElement (const SoType type, const int
stackindex) [static]
same vibe: this API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
π getEnabledElements
const SoEnabledElementsList & SoBoxHighlightRenderAction::getEnabledElements
(void ) const [protected], [virtual]
Returns a list of the elements used by action instances of this class upon traversal operations.
Reimplemented from SoGLRenderAction.
πΈ apply (SoNode * root)
void SoBoxHighlightRenderAction::apply (SoNode * root) [virtual]
Applies the action to the scene graph rooted at root.
careful bestie: note that you should not apply an action to a node with a zero reference count. The behavior in that case is undefined.
Reimplemented from SoAction.
π¦ apply (SoPath * path)
void SoBoxHighlightRenderAction::apply (SoPath * path) [virtual]
Applies the action to the parts of the graph defined by path.
Note that an SoPath will also contain all nodes that may influence e.g. geometry nodes in the path. So for instance applying an SoGLRenderAction on an SoPath will render that path as expected in the view, where geometry will get its materials, textures, and other appearance settings correctly.
If the path ends in an SoGroup node, the action will also traverse the tail node's children.
Reimplemented from SoAction.
β¨ apply (const SoPathList & pathlist, SbBool obeysrules = FALSE)
void SoBoxHighlightRenderAction::apply (const SoPathList & pathlist, SbBool
obeysrules = FALSE) [virtual]
Applies action to the graphs defined by pathlist. If obeysrules is set to TRUE, pathlist 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):
- 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.
See also SoAction::apply(SoPath * path)
Reimplemented from SoAction.
π setVisible
void SoBoxHighlightRenderAction::setVisible (const SbBool visible)
Sets if highlighted boxes should be visible when rendering. Defaults to TRUE.
π isVisible
SbBool SoBoxHighlightRenderAction::isVisible (void ) const
Return if highlighted boxes are to be visible.
π₯ setColor
void SoBoxHighlightRenderAction::setColor (const SbColor & color)
Sets the color for the highlighted boxes. Defaults to completely red.
π getColor
const SbColor & SoBoxHighlightRenderAction::getColor (void )
Returns rendering color of the highlighted boxes.
π setLinePattern
void SoBoxHighlightRenderAction::setLinePattern (unsigned short pattern)
Sets the line pattern used for the highlighted boxes. Defaults to 0xffff (i.e. drawn with no stipples).
π¦ getLinePattern
unsigned short SoBoxHighlightRenderAction::getLinePattern (void ) const
Returns line pattern used when drawing boxes.
π setLineWidth
void SoBoxHighlightRenderAction::setLineWidth (const float width)
Sets the line width used when drawing boxes, in screen pixels (as for all OpenGL rendering). Defaults to 3.
π getLineWidth
float SoBoxHighlightRenderAction::getLineWidth (void ) const
Returns the line width used when drawing highlight boxes.
π Member Data Documentation π
π hlVisible
SbBool SoBoxHighlightRenderAction::hlVisible [protected]
Boolean which decides whether or not the highlights for selected nodes should be visible.
π Author π
Generated automatically by Doxygen for Coin from the source code.
π and that's a wrap, bestie! source: Coin, version3.1.3, pageSoBoxHighl...nderAction(3)β date: not in this footer, just Doxygen energy. periodt. π β¨
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms