Open Inventor Reference
SoPickRayElement Class Reference

Element that stores the current ray to use for picking. More...

#include <Inventor/elements/SoPickRayElement.h>

Inheritance diagram for SoPickRayElement:
SoElement

List of all members.

Public Member Functions

virtual void init (SoState *state)
 Initializes element.
virtual SbBool matches (const SoElement *elt) const
 Always returns FALSE, since this element should never be a criterion for cache invalidation.
virtual SoElementcopyMatchInfo () const
 Create and return a copy of this element.
virtual void print (FILE *fp) const
 Prints element (for debugging)

Static Public Member Functions

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 void initClass ()
 Initializes the SoPickRayElement class.

Protected Member Functions

virtual ~SoPickRayElement ()

Protected Attributes

SbViewVolume volume
 Ray as view volume.

Detailed Description

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.

Definition at line 76 of file SoPickRayElement.h.


Constructor & Destructor Documentation

virtual SoPickRayElement::~SoPickRayElement ( ) [protected, virtual]

Member Function Documentation

virtual SoElement* SoPickRayElement::copyMatchInfo ( ) const [virtual]

Implements SoElement.

static const SbViewVolume& SoPickRayElement::get ( SoState state) [static]
virtual void SoPickRayElement::init ( SoState state) [virtual]

Reimplemented from SoElement.

static void SoPickRayElement::initClass ( ) [static]

Reimplemented from SoElement.

virtual SbBool SoPickRayElement::matches ( const SoElement elt) const [virtual]

Implements SoElement.

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

Reimplemented from SoElement.

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

Member Data Documentation

Definition at line 105 of file SoPickRayElement.h.


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