Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoPickRayElement Class Reference

Stores the current ray to use for picking. More...

#include <Inventor/elements/SoPickRayElement.h>

+ Inheritance diagram for SoPickRayElement:

Public Member Functions

virtual void print (FILE *fp) const
 Prints element (for debugging).
 
- Public Member Functions inherited from SoElement
virtual void push (SoState *state)
 Pushes element.
 
virtual void pop (SoState *state, const SoElement *prevTopElement)
 Pops element.
 
virtual SoType getTypeId () const
 Returns type identifier for element instance.
 
- Public Member Functions inherited from SoTypedObject
SbBool isOfType (const SoType &type) const
 Returns TRUE if this object is of the type specified in type or is derived from that type.
 
template<typename TypedObjectClass >
SbBool isOfType () const
 Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class.
 

Static Public Member Functions

static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
static void set (SoState *state, const SbViewVolume &volume)
 Sets the picking ray.
 
static const SbViewVolumeget (SoState *state)
 Returns the current picking ray view volume from the state.
 
- Static Public Member Functions inherited from SoElement
static SoType getClassTypeId ()
 Returns type identifier for SoElement class.
 
- Static Public Member Functions inherited from SoTypedObject
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 

Detailed Description

Stores the current ray to use for picking.

This element stores the current ray to use for picking. It contains the world space ray information in terms of an SbViewVolume. The projection point and view direction of the volume represent the ray itself. The width (which equals the height) represents the diameter of the picking circle in the near plane. The near and far planes represent the distances to the near and far planes between which valid intersections must lie.

SEE ALSO

SoRayPickAction

Definition at line 74 of file SoPickRayElement.h.

Member Function Documentation

◆ get()

static const SbViewVolume & SoPickRayElement::get ( SoState state)
static

Returns the current picking ray view volume from the state.

◆ getClassStackIndex()

static int SoPickRayElement::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoPickRayElement::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ print()

virtual void SoPickRayElement::print ( FILE *  fp) const
virtual

Prints element (for debugging).

Reimplemented from SoElement.

◆ set()

static void SoPickRayElement::set ( SoState state,
const SbViewVolume volume 
)
static

Sets the picking ray.


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