GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SOPICKEDPOINT (3)

NAME

SoPickedPoint — represents point on surface of picked object

CONTENTS

Inherits From
Synopsis
Description
Methods
See Also

INHERITS FROM

SoPickedPoint

SYNOPSIS

#include <Inventor/SoPickedPoint.h>

Methods from class SoPickedPoint:

       
                    
                     SoPickedPoint(const SoPickedPoint &pp)    
   
                    
                     ~SoPickedPoint()    
const SbVec3f &    
                    
const SbVec3f &      getPoint() const    
const SbVec3f &    
                    
const SbVec3f &      getNormal() const    
const SbVec4f &    
                    
const SbVec4f &      getTextureCoords() const    
int    
                    
int                  getMaterialIndex() const    
SoPath *    
                    
SoPath *             getPath() const    
SbBool    
                    
SbBool               isOnGeometry() const    
const SoDetail *    
                    
const SoDetail *     getDetail(const SoNode *node = NULL) const    
const SbMatrix    
                    
const SbMatrix       getObjectToWorld(const SoNode *node = NULL) const    
const SbMatrix    
                    
const SbMatrix       getWorldToObject(const SoNode *node = NULL) const    
const SbMatrix    
                    
const SbMatrix       getObjectToImage(const SoNode *node = NULL) const    
const SbMatrix    
                    
const SbMatrix       getImageToObject(const SoNode *node = NULL) const    
const SbVec3f    
                    
const SbVec3f        getObjectPoint(const SoNode *node = NULL) const    
const SbVec3f    
                    
const SbVec3f        getObjectNormal(const SoNode *node = NULL) const    
const SbVec4f    
                    
const SbVec4f        getObjectTextureCoords(const SoNode *node=NULL) const

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.

METHODS

       
                    
                     SoPickedPoint(const SoPickedPoint &pp)
Copy constructor.

       
                    
                     ~SoPickedPoint()
Destructor.

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

    int    
                    
int                  getMaterialIndex() 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 *    
                    
SoPath *             getPath() const
Returns the path to the object that was intersected.

    SbBool    
                    
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. The pick style (see SoPickStyle) affects this decision.

    const SoDetail *    
                    
const SoDetail *     getDetail(const SoNode *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.

    const SbMatrix    
                    
const SbMatrix       getObjectToWorld(const SoNode *node = NULL) const    
const SbMatrix    
                    
const SbMatrix       getWorldToObject(const SoNode *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.

    const SbMatrix    
                    
const SbMatrix       getObjectToImage(const SoNode *node = NULL) const    
const SbMatrix    
                    
const SbMatrix       getImageToObject(const SoNode *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.

    const SbVec3f    
                    
const SbVec3f        getObjectPoint(const SoNode *node = NULL) const    
const SbVec3f    
                    
const SbVec3f        getObjectNormal(const SoNode *node = NULL) const    
const SbVec4f    
                    
const SbVec4f        getObjectTextureCoords(const SoNode *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.

SEE ALSO

SoRayPickAction, SoPickStyle, SoDetail, SoPath

Search for    or go to Top of page |  Section 3 |  Main Index


SOPICKEDPOINT(3IV) (-->)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.