| 1 |
NAME SoPickedPoint SoPickPt "" { represents point on surface of picked object } |
| 2 |
|
| 3 |
INCLUDE SoPickedPoint.h |
| 4 |
|
| 5 |
DESC { |
| 6 |
An \cSoPickedPoint\. represents a point on the surface of an object |
| 7 |
that was picked by applying an \cSoRayPickAction\. to a scene. It |
| 8 |
contains a path to the picked shape, the point of intersection, the |
| 9 |
surface normal and texture coordinates at that point, and other |
| 10 |
information. |
| 11 |
\p |
| 12 |
Each node in the picked path may have a corresponding instance of a detail |
| 13 |
subclass. These detail instances are stored in the \cSoPickedPoint\.. |
| 14 |
} |
| 15 |
|
| 16 |
METHOD "" SoPickedPoint(const SoPickedPoint &pp) { Copy constructor. } |
| 17 |
METHOD "" ~SoPickedPoint() { Destructor. } |
| 18 |
|
| 19 |
METHOD getPt const SbVec3f & getPoint() const {} |
| 20 |
METHOD getNorm const SbVec3f & getNormal() const {} |
| 21 |
METHOD getTexCoords const SbVec4f & getTextureCoords() const { |
| 22 |
These return the intersection point and surface normal in world space, |
| 23 |
and the texture coordinates in image space. |
| 24 |
} |
| 25 |
|
| 26 |
METHOD getMtlInd int getMaterialIndex() const { |
| 27 |
Returns the index into the current set of materials of the material |
| 28 |
active at the intersection point. Note that if the materials are |
| 29 |
interpolated between vertices, the index will correspond to the |
| 30 |
material at one of the vertices. |
| 31 |
} |
| 32 |
|
| 33 |
METHOD "" SoPath * getPath() const { |
| 34 |
Returns the path to the object that was intersected. |
| 35 |
} |
| 36 |
|
| 37 |
METHOD isOnGeom SbBool isOnGeometry() const { |
| 38 |
Returns whether the intersection is actually on the geometry of the |
| 39 |
character that was hit, as opposed to being on the bounding box. The |
| 40 |
pick style (see \cSoPickStyle\.) affects this decision. |
| 41 |
} |
| 42 |
|
| 43 |
METHOD getDtl const SoDetail * getDetail(const SoNode *node = NULL) const { |
| 44 |
Returns the detail that corresponds to the given node in the path |
| 45 |
returned by |
| 46 |
\+\mgetPath()\..\. |
| 47 |
\-\mSoPickPtGetPath()\..\. |
| 48 |
If the node pointer is NULL (the default), the detail corresponding to |
| 49 |
the tail of the (full) path is returned. |
| 50 |
} |
| 51 |
|
| 52 |
METHOD getObjToWorld const SbMatrix |
| 53 |
getObjectToWorld(const SoNode *node = NULL) const {} |
| 54 |
METHOD getWorldToObj const SbMatrix |
| 55 |
getWorldToObject(const SoNode *node = NULL) const { |
| 56 |
These return the transformation matrices between world space and the |
| 57 |
object space corresponding to the given node in the path. If the node |
| 58 |
pointer is NULL (the default), the matrix corresponding to the tail of |
| 59 |
the (full) path is returned. |
| 60 |
} |
| 61 |
|
| 62 |
METHOD getObjToImage const SbMatrix |
| 63 |
getObjectToImage(const SoNode *node = NULL) const {} |
| 64 |
METHOD getImageToObj const SbMatrix |
| 65 |
getImageToObject(const SoNode *node = NULL) const { |
| 66 |
These return the texture transformation matrices between image space |
| 67 |
and the object space corresponding to the given node in the path. |
| 68 |
If the node pointer is NULL (the default), the matrix corresponding to |
| 69 |
the tail of the (full) path is returned. |
| 70 |
} |
| 71 |
|
| 72 |
METHOD getObjPt const SbVec3f |
| 73 |
getObjectPoint(const SoNode *node = NULL) const {} |
| 74 |
METHOD getObjNorm const SbVec3f |
| 75 |
getObjectNormal(const SoNode *node = NULL) const {} |
| 76 |
METHOD getObjTexCoords const SbVec4f |
| 77 |
getObjectTextureCoords(const SoNode *node=NULL) const { |
| 78 |
These return the intersection point, surface normal, and texture |
| 79 |
coordinates in the object space corresponding to the given node in the |
| 80 |
path. If the node pointer is NULL (the default), the information |
| 81 |
corresponding to the tail of the (full) path is returned. |
| 82 |
} |
| 83 |
|
| 84 |
ALSO { SoRayPickAction, SoPickStyle, SoDetail, SoPath } |