1 #ifndef BulletShapeModel_h 2 #define BulletShapeModel_h 68 std::vector<double> lookDirection);
70 const std::vector<double> &observerPos,
71 const bool &checkOcclusion =
true);
73 const std::vector<double> &observerPos,
74 const bool &checkOcclusion =
true);
97 virtual bool isVisibleFrom(
const std::vector<double> observerPos,
98 const std::vector<double> lookDirection);
104 QScopedPointer<BulletWorldManager> m_model;
110 btScalar maxDistance()
const;
112 btVector3 castLookDir(
const btVector3 &observer,
const btVector3 &lookdir)
const;
114 btVector3 pointToVector(
const SurfacePoint &point)
const;
115 SurfacePoint makeSurfacePoint(
const btVector3 &point)
const;
118 const btVector3 &sortPoint)
const;
120 const btVector3 &observer)
const;
This class defines a body-fixed surface point.
Definition: SurfacePoint.h:148
QVector< double > ellipsoidNormal()
Compute the true surface normal vector of an ellipsoid.
Definition: BulletShapeModel.cpp:559
void calculateDefaultNormal()
Calculate the surface normal of the ellipsoid as the default.
Definition: BulletShapeModel.cpp:531
Bullet ray tracing callback to return all intersections along a ray's path.
Definition: BulletAllHitsRayCallback.h:46
Bullet World manager maintains a proper state for target bodies.
Definition: BulletWorldManager.h:57
Distance localRadius(const Latitude &lat, const Longitude &lon)
Compute the radius of the body at a lat/lon point.
Definition: BulletShapeModel.cpp:410
bool isDEM() const
Indicates that this shape model is not from a DEM.
Definition: BulletShapeModel.cpp:456
void calculateLocalNormal(QVector< double *> cornerNeighborPoints)
Compute the normal for a local region of surface points.
Definition: BulletShapeModel.cpp:516
This class is designed to encapsulate the concept of a Latitude.
Definition: Latitude.h:63
bool intersectSurface(std::vector< double > observerPos, std::vector< double > lookDirection)
This method computes a DEM intercept point given an observer location and look direction using the Bu...
Definition: BulletShapeModel.cpp:193
Distance measurement, usually in meters.
Definition: Distance.h:47
double getTolerance() const
Returns the occlusion tolerance in kilometers.
Definition: BulletShapeModel.cpp:167
This class is designed to encapsulate the concept of a Longitude.
Definition: Longitude.h:52
virtual void setSurfacePoint(const SurfacePoint &surfacePoint)
Set the internal surface point.
Definition: BulletShapeModel.cpp:379
void calculateSurfaceNormal()
compute the ellipsoid surface normal of the target
Definition: BulletShapeModel.cpp:539
Bullet ray tracing callback for closest hit on target surface.
Definition: BulletClosestRayCallback.h:49
~BulletShapeModel()
Destructor.
Definition: BulletShapeModel.cpp:159
Shape model that uses the Bullet library to perform ray tracing.
Definition: BulletShapeModel.h:51
BulletShapeModel()
Default constructor that creates a shape model without any internal model.
Definition: BulletShapeModel.cpp:53
Container for cube-like labels.
Definition: Pvl.h:135
This class is used to create and store valid Isis3 targets.
Definition: Target.h:76
virtual void clearSurfacePoint()
Clear the saved surface point and reset the saved intersection.
Definition: BulletShapeModel.cpp:388
Define shapes and provide utilities for Isis3 targets.
Definition: ShapeModel.h:78
void setLocalNormalFromIntercept()
Set the normal vector to the intercept point normal.
Definition: BulletShapeModel.cpp:436
Definition: Calculator.h:33
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void setTolerance(const double &tolerance)
Sets the occlusion tolerance.
Definition: BulletShapeModel.cpp:177
Bullet Target Shape for planetary bodies.
Definition: BulletTargetShape.h:49
const BulletWorldManager & model() const
Returns a direct reference to the Bullet world that contains the target shape and can perform ray cas...
Definition: BulletShapeModel.cpp:598
virtual bool isVisibleFrom(const std::vector< double > observerPos, const std::vector< double > lookDirection)
Check if the saved intercept is visible from a observer with a given look direction.
Definition: BulletShapeModel.cpp:470