man SoPickedPoint () - represents point on surface of picked object
NAME
SoPickedPoint - represents point on surface of picked object
INHERITS FROM
SoPickedPoint
SYNOPSIS
#include <Inventor/SoPickedPoint.h>
Methods from class SoPickedPoint:
c
}
c
}
SoPickedPoint(const SoPickedPoint &pp)
c
}
c
}
~SoPickedPoint()
c
}
c
}
getPoint() const
c
}
c
}
getNormal() const
c
}
c
}
getTextureCoords() const
c
}
c
}
getMaterialIndex() const
c
}
c
}
getPath() const
c
}
c
}
isOnGeometry() const
c
}
c
}
getDetail(const SoNode *node = NULL) const
c
}
c
}
getObjectToWorld(const SoNode *node = NULL) const
c
}
c
}
getWorldToObject(const SoNode *node = NULL) const
c
}
c
}
getObjectToImage(const SoNode *node = NULL) const
c
}
c
}
getImageToObject(const SoNode *node = NULL) const
c
}
c
}
getObjectPoint(const SoNode *node = NULL) const
c
}
c
}
getObjectNormal(const SoNode *node = NULL) const
c
}
c
}
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
c
}
c
}
SoPickedPoint(const SoPickedPoint &pp)
Copy constructor.
c
}
c
}
~SoPickedPoint()
Destructor.
c
}
c
}
getPoint() const
c
}
c
}
getNormal() const
c
}
c
}
getTextureCoords() const
These return the intersection point and surface normal in world space, and the texture coordinates in image space.
c
}
c
}
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.
c
}
c
}
getPath() const
Returns the path to the object that was intersected.
c
}
c
}
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.
c
}
c
}
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.
c
}
c
}
getObjectToWorld(const SoNode *node = NULL) const
c
}
c
}
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.
c
}
c
}
getObjectToImage(const SoNode *node = NULL) const
c
}
c
}
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.
c
}
c
}
getObjectPoint(const SoNode *node = NULL) const
c
}
c
}
getObjectNormal(const SoNode *node = NULL) const
c
}
c
}
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