50#ifndef _SO_PICKED_POINT_
51#define _SO_PICKED_POINT_
62class SoGetMatrixActionWrapper;
270 void setObjectNormal(
const SbVec3f &normal);
273 void setObjectTextureCoords(
const SbVec4f &texCoords);
276 void setMaterialIndex(
int index) { materialIndex = index; }
291 void overridePath(
const SoPath* _path);
303 const SbVec3d& getPointD()
const {
return worldPointD; }
308 SoGetMatrixActionWrapper *m_matrixActionWrapper;
340 int getNodeIndex(
const SoNode *node)
const;
343 void getMatrix(
const SoNode *node)
const;
351 static void getObjectGeomlUsingModelMatrixElement(
const SoAction* action,
const SbVec3f &inVec,
SbVec3f &outVec,
bool normalize =
true );
SoTextureCoordinateBundle(SoAction *action, SbBool forRendering, SbBool setUpDefault, SbBool forMesh, const SbIntList *texUnits=NULL)
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> 3D vector class ...
Class for representing a viewport.
Abstract base class for all actions.
Base class for describing detail information about a shape node.
Maintains a list of instances of details.
Computes transformation matrix for a subgraph.
Abstract base class for all database nodes.
Path that points to a list of hierarchical nodes.
Represents point on surface of picked object.
SbMatrix getImageToObject(const SoNode *node=NULL) const
Returns the texture transformation matrix between image space and the object space corresponding to t...
SoPickedPoint()
Default constructor.
const SbVec3f & getPoint() const
Returns the intersection point in world space.
const SbVec4f & getTextureCoords() const
Returns the texture coordinates in image space.
const SbVec3f & getNormal() const
Returns the surface normal in world space.
SbMatrix getObjectToWorld(const SoNode *node=NULL) const
Returns the transformation matrix between the object space and world space corresponding to the given...
SbMatrix getObjectToImage(const SoNode *node=NULL) const
Returns the texture transformation matrix between the object space and image space corresponding to t...
const SoDetail * getDetail(const SoNode *node=NULL) const
Returns the detail that corresponds to the specified node in the path returned by getPath().
SbVec4f getObjectTextureCoords(const SoNode *node=NULL) const
Returns the texture coordinates in the object space corresponding to the given node in the path.
SbVec3f getObjectNormal(const SoNode *node=NULL) const
Returns the surface normal in the object space corresponding to the given node in the path.
~SoPickedPoint()
Destructor.
int getMaterialIndex() const
Returns the index into the current set of materials of the material active at the intersection point.
SbVec3f getObjectPoint(const SoNode *node=NULL) const
Returns the intersection point in the object space corresponding to the given node in the path.
SbBool isOnGeometry() const
Returns whether the intersection is actually on the geometry of the character that was hit,...
SbMatrix getWorldToObject(const SoNode *node=NULL) const
Returns the transformation matrix between world space and the object space corresponding to the given...
SoPickedPoint * copy() const
SoPath * getPath() const
Returns the path to the object that was intersected.
SoPickedPoint(const SoPickedPoint &pp)
Copy constructor.
Intersects objects with a ray cast into scene.