![]() |
http://www.sim.no http://www.coin3d.org |
The SoPickedPoint class is used for specifying picked points. More...
#include <Inventor/SoPickedPoint.h>
The SoPickedPoint class is used for specifying picked points.
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.
SoPickedPoint::SoPickedPoint | ( | const SoPickedPoint & | pp | ) |
Copy constructor.
References SbList< Type >::copy(), SbList< Type >::getLength(), and SoBase::ref().
SoPickedPoint::SoPickedPoint | ( | const SoPath *const | pathptr, |
SoState *const | stateptr, | ||
const SbVec3f & | objSpacePoint | ||
) |
Constructor. Uses the state to convert between world and object space for the data.
References SbList< Type >::copy(), SbList< Type >::getLength(), and SoBase::ref().
SoPickedPoint::~SoPickedPoint | ( | ) |
Destructor.
References SoBase::unref().
SoPickedPoint * SoPickedPoint::copy | ( | ) | const |
Returns a copy of this picked point.
Note that if the Coin library has been built as a DLL under Microsoft Windows and you use this method from application code, you must make sure that both the Coin DLL and the application executable is using the same instance of a C Run-Time (CRT) library. Otherwise, you will get memory heap corruption upon deallocating the returned instances, eventually leading to mysterious crashes.
Returns the world space point.
Referenced by SoDragger::setStartingPoint().
Returns the image space texture coordinates.
int SoPickedPoint::getMaterialIndex | ( | ) | const |
Returns the material index.
SoPath * SoPickedPoint::getPath | ( | ) | const |
Returns the path to the picked object.
Referenced by SoDragger::handleEvent().
SbBool SoPickedPoint::isOnGeometry | ( | ) | const |
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.
References SoPath::findNode().
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.
Referenced by getObjectNormal(), and getObjectPoint().
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.
Referenced by getObjectTextureCoords().
Returns the object space point, in the object space specified by node. If node equals NULL
, the object space of the node where the point was actually picked will be used (this is what one would usually be interested in).
node can be any node in the scenegraph.
References getWorldToObject().
Returns the object space (specified by node) normal. If node equals NULL, the picked point object space will be used.
References getWorldToObject().
Returns the object space (specified by node) texture coordinates. If node equals NULL, the picked point object space will be used.
References getImageToObject().
Sets the picked point objects space normal vector.
Sets the picked point object space texture coordinates.
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.
References SoPath::findNode(), and SoDetailList::set().
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Wed Jul 19 2023 for Coin by Doxygen. 1.9.8