|
| SoBoxHighlightRenderAction () |
| Constructor.
|
|
| SoBoxHighlightRenderAction (const SbViewportRegion &viewportRegion) |
| Constructor.
|
|
virtual | ~SoBoxHighlightRenderAction () |
|
virtual void | apply (SoNode *node) |
| This renders the passed scene graph, and also renders wireframe boxes around selected objects as specified by the first SoSelection node found in the scene graph.
|
|
virtual void | apply (SoPath *path) |
| This renders the passed scene graph, and also renders wireframe boxes around selected objects as specified by the first SoSelection node found in the scene graph.
|
|
virtual void | apply (const SoPathList &pathList, bool obeysRules=FALSE) |
| This renders the passed scene graph, and also renders wireframe boxes around selected objects as specified by the first SoSelection node found in the scene graph.
|
|
void | setVisible (bool b) |
| This provides a convenient mechansim for turning highlights off or on.
|
|
bool | isVisible () const |
| Returns whether highlights will be rendered or not.
|
|
void | setColor (const SbColor &c) |
| Set the color of the highlight.
|
|
const SbColor & | getColor () |
| Get the color of the highlight.
|
|
void | setLinePattern (unsigned short pattern) |
| Set the line pattern of the highlight.
|
|
unsigned short | getLinePattern () |
| Get the line pattern of the highlight.
|
|
void | setLineWidth (float width) |
| Set the line width.
|
|
float | getLineWidth () |
| Get the line width.
|
|
| SoGLRenderAction (const SbViewportRegion &viewportRegion) |
| Constructor.
|
|
virtual | ~SoGLRenderAction () |
| Destructor.
|
|
void | setViewportRegion (const SbViewportRegion &newRegion) |
| Changes viewport region to use for rendering.
|
|
const SbViewportRegion & | getViewportRegion () const |
| Returns viewport region to use for rendering.
|
|
void | setUpdateArea (const SbVec2f &origin, const SbVec2f &size) |
|
void | getUpdateArea (SbVec2f &origin, SbVec2f &size) const |
| Sets/returns the current update area, which is the rectangular area of the viewport region that will actually be rendered into.
|
|
void | setAbortCallback (SoGLRenderAbortCB *funcArg, void *userData) |
| Sets callback to call during rendering to test for an abort condition.
|
|
void | setTransparencyType (TransparencyType type) |
|
TransparencyType | getTransparencyType () const |
| Sets/returns transparency quality level to use when rendering.
|
|
void | setSmoothing (bool smooth) |
|
bool | isSmoothing () const |
| Sets/returns smoothing flag.
|
|
void | setNumPasses (int num) |
|
int | getNumPasses () const |
| Sets/returns number of rendering passes for multipass rendering.
|
|
void | setPassUpdate (bool flag) |
|
bool | isPassUpdate () const |
| Sets/returns a flag indicating whether intermediate results are displayed after each antialiasing pass for progressive improvement (default is FALSE).
|
|
void | setPassCallback (SoGLRenderPassCB *funcArg, void *userData) |
| Sets a callback function to invoke between passes when antialiasing.
|
|
void | setCacheContext (uint32_t context) |
|
uint32_t | getCacheContext () const |
| Sets/returns the OpenGL cache context.
|
|
virtual void | invalidateState () |
| Invalidate the state, forcing it to be recreated at the next apply.
|
|
int | getCurPass () const |
| Returns current rendering pass number.
|
|
bool | abortNow () |
| Returns TRUE if render action should abort - checks user callback.
|
|
bool | handleTransparency (bool isTransparent=FALSE) |
| Returns TRUE if render action handles processing of a transparent object (if it is to be sorted and rendered later).
|
|
bool | isDelaying () const |
| Returns TRUE if rendering is being delayed because of transparency sorting or delaying.
|
|
void | addDelayedPath (SoPath *path) |
| Adds to the list of paths to render after all other stuff (including delayed/sorted transparent objects) have been rendered.
|
|
bool | isRenderingDelayedPaths () const |
| Returns TRUE if currently rendering delayed paths.
|
|
int | getCullTestResults () |
|
void | setCullTestResults (int b) |
|
bool | setAllowDelayedPath (bool flag) |
| Sets if delayed paths are allowed while rendering.
|
|
bool | getAllowDelayedPaths () |
| Returns if delayed paths are currently allowed.
|
|
virtual | ~SoAction () |
| Destructor.
|
|
virtual SoType | getTypeId () const =0 |
| Returns the type identifier for a specific instance.
|
|
bool | isOfType (SoType type) const |
| Returns TRUE if this instance is of the type specified in type or is derived from that type.
|
|
virtual void | apply (SoNode *node) |
|
virtual void | apply (SoPath *path) |
|
virtual void | apply (const SoPathList &pathList, bool obeysRules=FALSE) |
| Initiates an action on the graph defined either by a node, path, or list of paths.
|
|
virtual void | invalidateState () |
| Invalidates the current traversal state in the action, forcing it to be recreated when the action is next applied.
|
|
AppliedCode | getWhatAppliedTo () const |
| Returns code indicating what action is being applied to.
|
|
SoNode * | getNodeAppliedTo () const |
| These returns a pointer to the node, path, or path list the action is being applied to.
|
|
SoPath * | getPathAppliedTo () const |
|
const SoPathList * | getPathListAppliedTo () const |
| A single path list may be split into several, one for each different head node.
|
|
const SoPathList * | getOriginalPathListAppliedTo () const |
|
bool | isLastPathListAppliedTo () const |
|
PathCode | getPathCode (int &numIndices, const int *&indices) |
| Returns path code based on where current node (the node at the end of the current path) lies with respect to the path(s) the action is being applied to.
|
|
void | traverse (SoNode *node) |
| Does traversal of a graph rooted by a node.
|
|
bool | hasTerminated () const |
| Returns TRUE if the traversal has reached a termination condition.
|
|
const SoPath * | getCurPath () |
| Returns a pointer to the path accumulated during traversal, i.e., the chain of nodes from the root of the traversed graph to the current node being traversed.
|
|
SoState * | getState () const |
| Get the state from the action.
|
|
PathCode | getCurPathCode () const |
| These methods maintain the current path accumulated so far during traversal.
|
|
void | pushCurPath (int childIndex) |
|
void | popCurPath (PathCode prevPathCode) |
|
virtual SoNode * | getCurPathTail () |
| This is virtual, so that SoCallbackAction can use current node.
|
|
void | usePathCode (int &numIndices, const int *&indices) |
| called by inline getPathCode:
|
|
void | pushCurPath () |
| Optimized versions of push/pop when we know path codes won't change:
|
|
void | popPushCurPath (int childIndex) |
|
void | popCurPath () |
|
const SoLightweightPath & | getCurrentLightweightPath () const |
| Returns the current "light" path.
|
|
void | setCurrentLightweightPath (const SoLightweightPath &path) |
| Sets the current "light" path.
|
|
A selection highlight style.
SoBoxHighlightRenderAction is a render action which renders the specified scene graph, then renders wireframe boxes surrounding each selected object. Selected objects are specified by the first SoSelection node in the scene to which this action is applied. If an SoGetBoundingBoxAction applied to a selected object produces an empty bounding box, no highlight is rendered for that object. A highlight render action can be passed to the setGLRenderAction() method of SoQtRenderArea to have an effect on scene graphs.
- See Also
- SoLineHighlightRenderAction, SoGLRenderAction, SoSelection, SoQtRenderArea, SoDrawStyle, SoInteraction
Definition at line 105 of file SoBoxHighlightRenderAction.h.