MCPcopy Create free account
hub / github.com/DOI-USGS/ISIS3 / outputModelStatus

Function outputModelStatus

isis/src/base/objs/BulletShapeModel/unitTest.cpp:212–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void outputModelStatus(BulletShapeModel &bulletModel) {
213 qDebug() << "Bullet shape model status:";
214 qDebug() << " Name: " << bulletModel.name();
215 qDebug() << " Tolerance: " << bulletModel.getTolerance();
216 qDebug() << "Model has intersection? " << bulletModel.hasIntersection();
217 SurfacePoint *intersection = NULL;
218 if ( bulletModel.hasIntersection() ) {
219 intersection = bulletModel.surfaceIntersection();
220 qDebug() << " Surface Point: ("
221 << intersection->GetX().kilometers() << ", "
222 << intersection->GetY().kilometers() << ", "
223 << intersection->GetZ().kilometers() << ")";
224 }
225 qDebug() << "Model has normal? " << bulletModel.hasLocalNormal();
226 std::vector<double> normal;
227 if ( bulletModel.hasLocalNormal() ) {
228 normal = bulletModel.localNormal();
229 qDebug() << " Local Normal: ("
230 << normal[0] << ", "
231 << normal[1] << ", "
232 << normal[2] << ")";
233 if ( bulletModel.hasIntersection() ) {
234 bulletModel.calculateDefaultNormal();
235 normal = bulletModel.normal();
236 qDebug() << " Ellipsoid Normal: ("
237 << normal[0] << ", "
238 << normal[1] << ", "
239 << normal[2] << ")";
240 bulletModel.setLocalNormalFromIntercept();
241 normal = bulletModel.localNormal();
242 qDebug() << " Recalculated Local Normal: ("
243 << normal[0] << ", "
244 << normal[1] << ", "
245 << normal[2] << ")";
246 }
247 }
248 qDebug() << "";
249}
250
251void testCameraToGround(std::vector<double> &observer,
252 std::vector<double> &lookDir,

Callers 4

mainFunction · 0.70
testCameraToGroundFunction · 0.70
testGroundToCameraFunction · 0.70
testGroundPointToCameraFunction · 0.70

Calls 13

hasIntersectionMethod · 0.80
surfaceIntersectionMethod · 0.80
GetZMethod · 0.80
hasLocalNormalMethod · 0.80
localNormalMethod · 0.80
nameMethod · 0.45
getToleranceMethod · 0.45
kilometersMethod · 0.45
GetXMethod · 0.45
GetYMethod · 0.45
normalMethod · 0.45

Tested by

no test coverage detected