#include <OSGAdapter.h>
Public Types | |
enum | bvType { BV_FDH14, BV_AABB, BV_SPHERE } |
Public Member Functions | |
OSGAdapter (osg::Geometry *, unsigned, unsigned, BVList::SplitStrategy, bvType) | |
OSGAdapter (AutoPtr< Geometry > *, unsigned, unsigned, BVList::SplitStrategy, bvType) | |
OSGAdapter (Geometry *, unsigned, unsigned, BVList::SplitStrategy, bvType) | |
virtual | ~OSGAdapter () |
double * | getVertices (Matrix4 *, unsigned *) |
double | distance (Matrix4 *, OSGAdapter &, Matrix4 *, BVH::Node **, BVH::Node **, Vector3 *pDir=NULL, unsigned d1=UINT_MAX, unsigned d2=UINT_MAX) |
bool | separation (Matrix4 *, OSGAdapter &, Matrix4 *, Vector3 *pDir=NULL, unsigned d1=UINT_MAX, unsigned d2=UINT_MAX) |
Geometry ** | collision (Matrix4 *, float, float, float, float, int *) |
PointEnv * | rayIntersection (const Matrix4 *pTrMat, const Vector3 &origin, const Vector3 &direction, int mask=(ENV_WANT_INTERSECTION|ENV_WANT_NORMAL|ENV_WANT_TRANSFORMATION), float maxDist=FLT_MAX) |
Interval | extent (const Matrix4 *pTrMat, const Vector3 &direction) |
Interval * | nExtents (const Matrix4 *pTrMat, const Vector3 *directions, unsigned nDirs) |
Protected Member Functions | |
void | _put_polygon (osg::Geometry::PrimitiveSetList *, osg::Vec3Array *, osg::Vec3Array *, osg::Geometry::AttributeBinding) |
Protected Attributes | |
Group * | _pGroupNode |
Definition at line 30 of file OSGAdapter.h.
|
Supported types of bounding volumes Definition at line 43 of file OSGAdapter.h. |
|
Definition at line 128 of file OSGAdapter.cc. References OSGAdapter::_pGroupNode, OSGAdapter::_put_polygon(), Group::build(), OSGAdapter::BV_AABB, OSGAdapter::BV_FDH14, and OSGAdapter::BV_SPHERE. |
|
Definition at line 187 of file OSGAdapter.cc. References OSGAdapter::_pGroupNode, Group::append(), Group::build(), OSGAdapter::BV_AABB, OSGAdapter::BV_FDH14, OSGAdapter::BV_SPHERE, and SceneGraphObject::setSharedGeometry(). |
|
Definition at line 163 of file OSGAdapter.cc. References OSGAdapter::_pGroupNode, Group::append(), Group::build(), OSGAdapter::BV_AABB, OSGAdapter::BV_FDH14, OSGAdapter::BV_SPHERE, and SceneGraphObject::setPrivateGeometry(). |
|
Definition at line 66 of file OSGAdapter.h. |
|
Definition at line 8 of file OSGAdapter.cc. Referenced by OSGAdapter::OSGAdapter(). |
|
Definition at line 282 of file OSGAdapter.cc. References OSGAdapter::_pGroupNode, BVH::collision(), and Group::getRepository(). |
|
Definition at line 250 of file OSGAdapter.cc. References OSGAdapter::_pGroupNode, BVH::distance(), Group::getRepository(), and MAXDOUBLE. |
|
Definition at line 322 of file OSGAdapter.cc. References OSGAdapter::_pGroupNode, Explorer::explore(), ExtentExplorer::result(), SceneGraphObject::setPrivateTransformation(), and esg::Transform. |
|
Definition at line 211 of file OSGAdapter.cc. References OSGAdapter::_pGroupNode, List::append(), BVH::createIterator(), IteratorSDS::firstChild(), List::firstItem(), Group::getRepository(), OSGPolygon::getVertex(), IteratorSDS::initChildrenSearch(), List::length(), IteratorSDS::nextChild(), and List::nextItem(). |
|
Definition at line 330 of file OSGAdapter.cc. References OSGAdapter::_pGroupNode, Explorer::explore(), NExtentsExplorer::result(), SceneGraphObject::setPrivateTransformation(), and esg::Transform. |
|
|
Definition at line 267 of file OSGAdapter.cc. References OSGAdapter::_pGroupNode, Group::getRepository(), and BVH::separation(). |
|
Definition at line 32 of file OSGAdapter.h. Referenced by OSGAdapter::collision(), OSGAdapter::distance(), OSGAdapter::extent(), OSGAdapter::getVertices(), OSGAdapter::nExtents(), OSGAdapter::OSGAdapter(), OSGAdapter::rayIntersection(), and OSGAdapter::separation(). |