|
Isis 3 Programmer Reference
|
8 #include "BulletTargetShape.h"
9 #include "BulletDskShape.h"
17 #include "IException.h"
29 : m_maximumDistance(0) { }
39 m_name(name), m_btbody(btbody) {
87 QString ext = v_file.
extension().toLower();
89 if (
"bds" == ext)
return (
loadDSK(dem) );
90 if (
"cub" == ext)
return (
loadCube(dem) );
163 btScalar BulletTargetShape::maximumDistance()
const {
virtual ~BulletTargetShape()
Desctructor.
btScalar m_maximumDistance
! The Bullet collision object for the body
File name manipulation and expansion.
void writeBullet(const QString &btName) const
Write a serialized version of the target shape to a Bullet file.
Container for cube-like labels.
Bullet Target Shape for NAIF type 2 DSK models.
void setMaximumDistance()
Calculate and save the maximum distance across the body.
static BulletTargetShape * load(const QString &dem, const Pvl *conf=0)
Load a DEM file into the target shape.
static BulletTargetShape * loadDSK(const QString &dem, const Pvl *conf=0)
Load a DSK in Bullet.
static BulletTargetShape * loadCube(const QString &dem, const Pvl *conf=0)
Load an ISIS cube type DEM in Bullet.
void setTargetBody(btCollisionObject *body)
Set the Bullet shape object to this object instance
QSharedPointer< btCollisionObject > m_btbody
! The name of the body
QString name() const
Return name of the target shape.
QString extension() const
Returns the last extension of the file name.
BulletTargetShape()
Default empty constructor.
Bullet Target Shape for planetary bodies.
static BulletTargetShape * loadPC(const QString &dem, const Pvl *conf=0)
Load a point cloud type DEM in Bullet.
This is free and unencumbered software released into the public domain.
btCollisionObject * body() const
Return a pointer to the Bullet target object/shape.