Isis 3 Programmer Reference
BulletDskShape.h
Go to the documentation of this file.
1 #ifndef BulletDskShape_h
2 #define BulletDskShape_h
3 
26 #include <QScopedPointer>
27 #include <QString>
28 #include <QVector>
29 
30 #include "BulletTargetShape.h"
32 
33 namespace Isis {
34 
43  public:
45  BulletDskShape(const QString &dskfile);
46  virtual ~BulletDskShape();
47 
48  int getNumTriangles() const;
49  int getNumVertices() const;
50 
51  virtual btVector3 getNormal(const int indexId, const int segment=0) const;
52  virtual btMatrix3x3 getTriangle(const int index, const int segment=0) const;
53 
54  private:
61  // Custom DSK reader
62  void loadFromDsk(const QString &dskfile);
63 
64  };
65 
66 } // namespace Isis
67 
68 #endif
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.
Bullet Target Shape for NAIF type 2 DSK models.
int getNumTriangles() const
Return the number of triangles in the shape.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
BulletDskShape()
Default empty constructor.
Bullet Target Shape for planetary bodies.
virtual ~BulletDskShape()
Desctructor.
int getNumVertices() const
Return the number of verticies in the shape.
void loadFromDsk(const QString &dskfile)
! Triangular mesh representation of the target shape.