Bullet Target Shape for NAIF type 2 DSK models.
More...
#include <BulletDskShape.h>
|
| BulletDskShape () |
| Default empty constructor.
|
|
| BulletDskShape (const QString &dskfile) |
| Construct a BulletDskShape from a DSK file.
|
|
virtual | ~BulletDskShape () |
| Desctructor.
|
|
int | getNumTriangles () const |
| Return the number of triangles in the shape.
|
|
int | getNumVertices () const |
| Return the number of verticies in the shape.
|
|
virtual btVector3 | getNormal (const int indexId, const int segment=0) const |
| Return normal for a given triangle index.
|
|
virtual btMatrix3x3 | getTriangle (const int index, const int segment=0) const |
| Get the vertices of a triangle in the mesh.
|
|
QString | name () const |
| Return name of the target shape.
|
|
void | writeBullet (const QString &btName) const |
| Write a serialized version of the target shape to a Bullet file.
|
|
btCollisionObject * | body () const |
| Return a pointer to the Bullet target object/shape.
|
|
btScalar | maximumDistance () const |
|
|
void | setTargetBody (btCollisionObject *body) |
| Set the Bullet shape object to this object instance
|
|
void | setMaximumDistance () |
| Calculate and save the maximum distance across the body.
|
|
Bullet Target Shape for NAIF type 2 DSK models.
- Author
- 2017-03-17 Kris Becker
◆ BulletDskShape() [1/2]
Isis::BulletDskShape::BulletDskShape |
( |
| ) |
|
Default empty constructor.
◆ BulletDskShape() [2/2]
Isis::BulletDskShape::BulletDskShape |
( |
const QString & | dskfile | ) |
|
◆ ~BulletDskShape()
Isis::BulletDskShape::~BulletDskShape |
( |
| ) |
|
|
virtual |
◆ body()
btCollisionObject * Isis::BulletTargetShape::body |
( |
| ) |
const |
|
inherited |
◆ getNormal()
btVector3 Isis::BulletDskShape::getNormal |
( |
const int | indexId, |
|
|
const int | segment = 0 ) const |
|
virtual |
Return normal for a given triangle index.
This method is particularly useful to return the normal of a triangle plate in a mesh-based target body.
- Author
- 2017-03-28 Kris Becker
- Parameters
-
indexId | The index of the triangle in the mesh. |
- Returns
- btVector3 The local normal for the triangle.
References getTriangle().
◆ getNumTriangles()
int Isis::BulletDskShape::getNumTriangles |
( |
| ) |
const |
Return the number of triangles in the shape.
- Returns
- int The number of triangles. If nothing has been loaded, then 0 is returned.
◆ getNumVertices()
int Isis::BulletDskShape::getNumVertices |
( |
| ) |
const |
Return the number of verticies in the shape.
- Returns
- int The number of verticies. If nothing has been loaded, then 0 is returned.
◆ getTriangle()
btMatrix3x3 Isis::BulletDskShape::getTriangle |
( |
const int | index, |
|
|
const int | segment = 0 ) const |
|
virtual |
Get the vertices of a triangle in the mesh.
- Parameters
-
index | The index of the triangle in the mesh. |
- Returns
- btMatrix3x3 Matrix with each row containing the coordinate of a vertex. The vertices are ordered counter-clockwise around the surface normal of the triangle.
Referenced by getNormal().
◆ load()
◆ loadCube()
Load an ISIS cube type DEM in Bullet.
- Note
- Currently not implemented
- Parameters
-
dem | The DEM file to load. |
conf | PVL config for the DEM load. Currently unused. |
- Returns
- BulletTargetShape A target shape containing the DEM
Referenced by Isis::BulletTargetShape::load().
◆ loadDSK()
◆ loadPC()
Load a point cloud type DEM in Bullet.
- Note
- Currently not implemented
- Parameters
-
dem | The DEM file to load. |
conf | PVL config for the DEM load. Currently unused. |
- Returns
- BulletTargetShape A target shape containing the DEM
Referenced by Isis::BulletTargetShape::load().
◆ maximumDistance()
btScalar Isis::BulletTargetShape::maximumDistance |
( |
| ) |
const |
|
inherited |
◆ name()
QString Isis::BulletTargetShape::name |
( |
| ) |
const |
|
inherited |
◆ setMaximumDistance()
void Isis::BulletTargetShape::setMaximumDistance |
( |
| ) |
|
|
protectedinherited |
◆ setTargetBody()
void Isis::BulletTargetShape::setTargetBody |
( |
btCollisionObject * | body | ) |
|
|
protectedinherited |
◆ writeBullet()
void Isis::BulletTargetShape::writeBullet |
( |
const QString & | btName | ) |
const |
|
inherited |
Write a serialized version of the target shape to a Bullet file.
- Parameters
-
btName | The name of the file to write the target shape to. |
- Note
- Currently not implemented
The documentation for this class was generated from the following files: