46 : m_maximumDistance(0) { }
56 m_name(name), m_btbody(btbody) {
104 QString ext = v_file.
extension().toLower();
106 if (
"bds" == ext)
return (
loadDSK(dem) );
107 if (
"cub" == ext)
return (
loadCube(dem) );
180 btScalar BulletTargetShape::maximumDistance()
const {
void writeBullet(const QString &btName) const
Write a serialized version of the target shape to a Bullet file.
static BulletTargetShape * loadPC(const QString &dem, const Pvl *conf=0)
Load a point cloud type DEM in Bullet.
virtual ~BulletTargetShape()
Desctructor.
File name manipulation and expansion.
btScalar m_maximumDistance
! The Bullet collision object for the body
btCollisionObject * body() const
Return a pointer to the Bullet target object/shape.
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.
void setMaximumDistance()
Calculate and save the maximum distance across the body.
void setTargetBody(btCollisionObject *body)
Set the Bullet shape object to this object instance.
static BulletTargetShape * loadCube(const QString &dem, const Pvl *conf=0)
Load an ISIS cube type DEM in Bullet.
QSharedPointer< btCollisionObject > m_btbody
! The name of the body
Container for cube-like labels.
QString name() const
Return name of the target shape.
Bullet Target Shape for NAIF type 2 DSK models.
Namespace for ISIS/Bullet specific routines.
BulletTargetShape()
Default empty constructor.
QString extension() const
Returns the last extension of the file name.
Bullet Target Shape for planetary bodies.