logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoPickedPoint — represents point on surface of picked object

Description

       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.

       Each  node  in  the  picked  path  may  have  a corresponding instance of a detail subclass. These detail
       instances are stored in the SoPickedPoint.

Inherits From

       SoPickedPoint

Methods

SoPickedPoint(constSoPickedPoint&pp)
          Copy constructor.

                         ~SoPickedPoint()
          Destructor.

     constSbVec3f&getPoint()constconstSbVec3f&getNormal()constconstSbVec4f&getTextureCoords()const
          These return the intersection point and surface normal in world space, and the texture coordinates  in
          image space.

     intgetMaterialIndex()const
          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.

     SoPath*getPath()const
          Returns the path to the object that was intersected.

     SbBoolisOnGeometry()const
          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.

     constSoDetail*getDetail(constSoNode*node=NULL)const
          Returns  the detail that corresponds to the given node in the path returned by getPath().  If the node
          pointer is NULL (the default), the detail corresponding to the tail of the (full) path is returned.

     constSbMatrixgetObjectToWorld(constSoNode*node=NULL)constconstSbMatrixgetWorldToObject(constSoNode*node=NULL)const
          These return the transformation matrices between world space and the object space corresponding to the
          given node in the path. If the node pointer is NULL (the default), the  matrix  corresponding  to  the
          tail of the (full) path is returned.

     constSbMatrixgetObjectToImage(constSoNode*node=NULL)constconstSbMatrixgetImageToObject(constSoNode*node=NULL)const
          These   return  the  texture  transformation  matrices  between  image  space  and  the  object  space
          corresponding to the given node in the path. If the node pointer is NULL  (the  default),  the  matrix
          corresponding to the tail of the (full) path is returned.

     constSbVec3fgetObjectPoint(constSoNode*node=NULL)constconstSbVec3fgetObjectNormal(constSoNode*node=NULL)constconstSbVec4fgetObjectTextureCoords(constSoNode*node=NULL)const
          These  return  the  intersection  point,  surface  normal, and texture coordinates in the object space
          corresponding to the given node in  the  path.  If  the  node  pointer  is  NULL  (the  default),  the
          information corresponding to the tail of the (full) path is returned.

Name

       SoPickedPoint — represents point on surface of picked object

See Also

SoRayPickAction,SoPickStyle,SoDetail,SoPathSoPickedPoint(3IV)()

Synopsis

#include<Inventor/SoPickedPoint.h>

          Methods from class SoPickedPoint:

                         SoPickedPoint(constSoPickedPoint&pp)~SoPickedPoint()constSbVec3f&getPoint()constconstSbVec3f&getNormal()constconstSbVec4f&getTextureCoords()constintgetMaterialIndex()constSoPath*getPath()constSbBoolisOnGeometry()constconstSoDetail*getDetail(constSoNode*node=NULL)constconstSbMatrixgetObjectToWorld(constSoNode*node=NULL)constconstSbMatrixgetWorldToObject(constSoNode*node=NULL)constconstSbMatrixgetObjectToImage(constSoNode*node=NULL)constconstSbMatrixgetImageToObject(constSoNode*node=NULL)constconstSbVec3fgetObjectPoint(constSoNode*node=NULL)constconstSbVec3fgetObjectNormal(constSoNode*node=NULL)constconstSbVec4fgetObjectTextureCoords(constSoNode*node=NULL)const

See Also