Represents point on surface of picked object. More...
#include <Inventor/SoPickedPoint.h>
Public Member Functions  
SoPickedPoint ()  
Default constructor.  
SoPickedPoint (const SoPickedPoint &pp)  
Copy constructor.  
~SoPickedPoint ()  
Destructor.  
SoPickedPoint *  copy () const 
const SbVec3f &  getPoint () const 
Returns the intersection point in world space.  
const SbVec3f &  getNormal () const 
Returns the surface normal in world space.  
const SbVec4f &  getTextureCoords () const 
Returns the texture coordinates in image space.  
int  getMaterialIndex () const 
Returns the index into the current set of materials of the material active at the intersection point.  
SoPath *  getPath () const 
Returns the path to the object that was intersected.  
SbBool  isOnGeometry () const 
Returns whether the intersection is actually on the geometry of the character that was hit, as opposed to being on the bounding box.  
const SoDetail *  getDetail (const SoNode *node=NULL) const 
Returns the detail that corresponds to the specified node in the path returned by getPath().  
SbMatrix  getObjectToWorld (const SoNode *node=NULL) const 
Returns the transformation matrix between the object space and world space corresponding to the given node in the path.  
SbMatrix  getWorldToObject (const SoNode *node=NULL) const 
Returns the transformation matrix between world space and the object space corresponding to the given node in the path.  
SbMatrix  getObjectToImage (const SoNode *node=NULL) const 
Returns the texture transformation matrix between the object space and image space corresponding to the given node in the path.  
SbMatrix  getImageToObject (const SoNode *node=NULL) const 
Returns the texture transformation matrix between image space and the object space corresponding to the given node in the path.  
SbVec3f  getObjectPoint (const SoNode *node=NULL) const 
Returns the intersection point in the object space corresponding to the given node in the path.  
SbVec3f  getObjectNormal (const SoNode *node=NULL) const 
Returns the surface normal in the object space corresponding to the given node in the path.  
SbVec4f  getObjectTextureCoords (const SoNode *node=NULL) const 
Returns the texture coordinates in the object space corresponding to the given node in the path.  
Represents point on surface of picked object.
An SoPickedPoint represents a point on the surface of an object that was picked by applying an SoRayPickAction to a scene. It contains a path to the picked shape, the point of intersection, the surface normal and texture coordinates at that point, and other information. Note that it is not always necessary to explicitly apply an SoRayPickAction to the scene. The getPickedPoint method may also be called on an SoHandleEventAction or an SoEventCallback node.
Each node in the picked path may have a corresponding instance of an SoDetail subclass. These detail instances are stored in the SoPickedPoint.
SoRayPickAction, SoPickStyle, SoDetail, SoPath, SoEventCallback
Definition at line 103 of file SoPickedPoint.h.
SoPickedPoint::SoPickedPoint  (  ) 
Default constructor.
SoPickedPoint::SoPickedPoint  (  const SoPickedPoint &  pp  ) 
Copy constructor.
SoPickedPoint::~SoPickedPoint  (  ) 
Destructor.
SoPickedPoint * SoPickedPoint::copy  (  )  const 
Returns the detail that corresponds to the specified node in the path returned by getPath().
If the node is null, the detail corresponding to the tail of the pick path is returned.
Caution: If there is no detail class associated with the node, null is returned.
Returns the texture transformation matrix between image space and the object space corresponding to the given node in the path.
If the node is NULL, the matrix corresponding to the tail of the (full) path is returned. By default, the node is NULL.

inline 
Returns the index into the current set of materials of the material active at the intersection point.
Note that if the materials are interpolated between vertices, the index will correspond to the material at one of the vertices.
Definition at line 152 of file SoPickedPoint.h.

inline 
Returns the surface normal in world space.
NOTE: It is possible to disable computation of normal vectors by calling the enableNormalsGeneration() method on SoRayPickAction. If normal vectors are disabled, this method returns 0,0,0.
Definition at line 136 of file SoPickedPoint.h.
Returns the surface normal in the object space corresponding to the given node in the path.
If the node is NULL, the information corresponding to the tail of the (full) path is returned. By default, the node is NULL.
Returns the intersection point in the object space corresponding to the given node in the path.
If the node is NULL, the information corresponding to the tail of the (full) path is returned. By default, the node is NULL.
Returns the texture coordinates in the object space corresponding to the given node in the path.
If the node is NULL, the information corresponding to the tail of the (full) path is returned. By default, the node is NULL.
Returns the texture transformation matrix between the object space and image space corresponding to the given node in the path.
If the node is NULL, the matrix corresponding to the tail of the (full) path is returned. By default, the node is NULL.
Returns the transformation matrix between the object space and world space corresponding to the given node in the path.
If the node is NULL, the matrix corresponding to the tail of the (full) path is returned. By default, the node is NULL.

inline 
Returns the path to the object that was intersected.
Definition at line 157 of file SoPickedPoint.h.

inline 
Returns the intersection point in world space.
Definition at line 128 of file SoPickedPoint.h.

inline 
Returns the texture coordinates in image space.
NOTE: By default the SoRayPickAction does not compute texture coordinates and this method returns 0,0,0,0. To enable texture coordinate computation call the enableTexCoordsGeneration() method on the pick action object or set the environment variable OIV_PICK_GENERATE_ALL_PROPERTIES to true.
Definition at line 145 of file SoPickedPoint.h.
Returns the transformation matrix between world space and the object space corresponding to the given node in the path.
If the node is NULL, the matrix corresponding to the tail of the (full) path is returned. By default, the node is NULL.

inline 
Returns whether the intersection is actually on the geometry of the character that was hit, as opposed to being on the bounding box.
The pick style (see SoPickStyle) affects this decision.
Definition at line 164 of file SoPickedPoint.h.