Isis Developer Reference
BulletDskShape.h
Go to the documentation of this file.
1 #ifndef BulletDskShape_h
2 #define BulletDskShape_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 #include <QScopedPointer>
11 #include <QString>
12 #include <QVector>
13 
14 #include "BulletTargetShape.h"
16 
17 namespace Isis {
18 
27  public:
29  BulletDskShape(const QString &dskfile);
30  virtual ~BulletDskShape();
31 
32  int getNumTriangles() const;
33  int getNumVertices() const;
34 
35  virtual btVector3 getNormal(const int indexId, const int segment=0) const;
36  virtual btMatrix3x3 getTriangle(const int index, const int segment=0) const;
37 
38  private:
45  // Custom DSK reader
46  void loadFromDsk(const QString &dskfile);
47 
48  };
49 
50 } // namespace Isis
51 
52 #endif
FileName.h
Isis::BulletDskShape::getNormal
virtual btVector3 getNormal(const int indexId, const int segment=0) const
Return normal for a given triangle index.
Definition: BulletDskShape.cpp:113
NaifDskApi.h
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::BulletDskShape::BulletDskShape
BulletDskShape()
Default empty constructor.
Definition: BulletDskShape.cpp:34
BulletDskShape.h
NaifStatus.h
NaifDskPlateModel.h
Isis::BulletDskShape::getNumTriangles
int getNumTriangles() const
Return the number of triangles in the shape.
Definition: BulletDskShape.cpp:70
QSharedPointer< btTriangleIndexVertexArray >
Isis::BulletDskShape
Bullet Target Shape for NAIF type 2 DSK models.
Definition: BulletDskShape.h:26
Isis::NaifStatus::CheckErrors
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
Definition: NaifStatus.cpp:28
Isis::BulletTargetShape::setMaximumDistance
void setMaximumDistance()
Calculate and save the maximum distance across the body.
Definition: BulletTargetShape.cpp:54
IString.h
Isis::BulletDskShape::getTriangle
virtual btMatrix3x3 getTriangle(const int index, const int segment=0) const
Get the vertices of a triangle in the mesh.
Definition: BulletDskShape.cpp:130
Isis::BulletTargetShape::setTargetBody
void setTargetBody(btCollisionObject *body)
Set the Bullet shape object to this object instance
Definition: BulletTargetShape.cpp:156
Pvl.h
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
BulletTargetShape.h
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::BulletDskShape::getNumVertices
int getNumVertices() const
Return the number of verticies in the shape.
Definition: BulletDskShape.cpp:88
BulletClosestRayCallback.h
IException.h
std
Namespace for the standard library.
Isis::BulletDskShape::~BulletDskShape
virtual ~BulletDskShape()
Desctructor.
Definition: BulletDskShape.cpp:51
Isis::BulletTargetShape
Bullet Target Shape for planetary bodies.
Definition: BulletTargetShape.h:33
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::IException::User
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126