#include <Inventor/SoPickedPoint.h>
Public Methods | |
SoPickedPoint (const SoPickedPoint &pp) | |
SoPickedPoint (const SoPath *const path, SoState *const state, const SbVec3f &objSpacePoint) | |
~SoPickedPoint () | |
SoPickedPoint * | copy () const |
const SbVec3f & | getPoint () const |
const SbVec3f & | getNormal () const |
const SbVec4f & | getTextureCoords () const |
int | getMaterialIndex () const |
SoPath * | getPath () const |
SbBool | isOnGeometry () const |
const SoDetail * | getDetail (const SoNode *const node=NULL) const |
const SbMatrix & | getObjectToWorld (const SoNode *const node=NULL) const |
const SbMatrix & | getWorldToObject (const SoNode *const node=NULL) const |
const SbMatrix & | getObjectToImage (const SoNode *const node=NULL) const |
const SbMatrix & | getImageToObject (const SoNode *const node=NULL) const |
SbVec3f | getObjectPoint (const SoNode *const node=NULL) const |
SbVec3f | getObjectNormal (const SoNode *const node=NULL) const |
SbVec4f | getObjectTextureCoords (const SoNode *const node=NULL) const |
void | setObjectNormal (const SbVec3f &normal) |
void | setObjectTextureCoords (const SbVec4f &texCoords) |
void | setMaterialIndex (const int index) |
void | setDetail (SoDetail *detail, SoNode *node) |
It holds miscellaneous information about the picked point, such as position, normal, texture coordinate and material index in the current material. It might also hold detail information (an SoDetail subclass) for every node in the picked path.
|
Copy constructor. |
|
Constructor. Uses the state to convert between world and object space for the data. |
|
Destructor. |
|
Returns a copy of this picked point. |
|
Returns the world space point. |
|
Returns the world space normal. |
|
Returns the image space texture coordinates. |
|
Returns the material index. |
|
Returns the path to the picked object. |
|
Returns TRUE if this picked point is on the actual geometry of the picked object, or FALSE if not (it might for instance be on the bounding box if picking was done on bounding boxes). |
|
Returns detail for node. If node equals NULL, the detail for the picked object is returned. |
|
Returns the matrix which converts from object (specified by node) to world space. If node equals NULL, the object space of the picked object will used. |
|
Returns the matrix which converts from world to object (specified by node) space. If node equals NULL, the object space of the picked object will used. |
|
Returns the matrix which converts from object (specified by node) to image space. If node equals NULL, the object space of the picked object will used. |
|
Returns the matrix which converts from image to object (specified by node) space. If node equals NULL, the object space of the picked object will used. |
|
Returns the object space (specified by node) point. If node equals NULL, the picked point object space will be used. |
|
Returns the object space (specified by node) normal. If node equals NULL, the picked point object space will be used. |
|
Returns the object space (specified by node) texture coordinates. If node equals NULL, the picked point object space will be used. |
|
Sets the picked point objects space normal vector. |
|
Sets the picked point object space texture coordinates. |
|
Sets the material index. |
|
Sets the detail for node. node must be in the picked path, of course. Set to NULL if you want to remove a detail for a node. |