Public Member Functions | |
const UGlobalPosition & | getGlobalPos () const |
const NLMISC::CVectorD & | getPos () const |
void | setGlobalPos (const UGlobalPosition &globalPosition, CGlobalRetriever &globalRetriver) |
void | setGlobalPosKeepZ (const UGlobalPosition &globalPosition, CGlobalRetriever &globalRetriver) |
void | setPos (const NLMISC::CVectorD &newPos) |
Private Attributes | |
NLMISC::CVectorD | _3dPosition |
UGlobalPosition | _GlobalPosition |
|
Definition at line 429 of file primitive_world_image.h. Referenced by NLPACS::CPrimitiveWorldImage::doMove(), NLPACS::CPrimitiveWorldImage::evalCollision(), NLPACS::CPrimitiveWorldImage::getGlobalPosition(), and NLPACS::CPrimitiveWorldImage::reaction().
00430 { 00431 return _GlobalPosition; 00432 } |
|
Definition at line 417 of file primitive_world_image.h. References _3dPosition. Referenced by NLPACS::CPrimitiveWorldImage::doMove(), NLPACS::CPrimitiveWorldImage::getFinalPosition(), NLPACS::CPrimitiveWorldImage::move(), NLPACS::CPrimitiveWorldImage::reaction(), and NLPACS::CPrimitiveWorldImage::setGlobalPosition().
00418 { 00419 return _3dPosition; 00420 } |
|
Definition at line 435 of file primitive_world_image.h. References _3dPosition, NLPACS::ULocalPosition::Estimation, NLPACS::CGlobalRetriever::getDoubleGlobalPosition(), NLPACS::CGlobalRetriever::getMeanHeight(), NLPACS::UGlobalPosition::LocalPosition, and NLMISC::CVector::z. Referenced by NLPACS::CPrimitiveWorldImage::doMove(), NLPACS::CPrimitiveWorldImage::reaction(), and NLPACS::CPrimitiveWorldImage::setGlobalPosition().
00437 { 00438 // Get position with global position 00439 _GlobalPosition=globalPosition; 00440 _GlobalPosition.LocalPosition.Estimation.z = globalRetriver.getMeanHeight(globalPosition); 00441 _3dPosition=globalRetriver.getDoubleGlobalPosition (_GlobalPosition); 00442 // _3dPosition.z=(double)globalRetriver.getMeanHeight(globalPosition); 00443 } |
|
Definition at line 445 of file primitive_world_image.h. References _3dPosition, NLPACS::CGlobalRetriever::getDoubleGlobalPosition(), NLPACS::UGlobalPosition::setKeepZ(), NLMISC::CVectorD::x, and NLMISC::CVectorD::y. Referenced by NLPACS::CPrimitiveWorldImage::doMove(), and NLPACS::CPrimitiveWorldImage::setGlobalPosition().
00447 { 00448 _GlobalPosition.setKeepZ(globalPosition); 00449 NLMISC::CVectorD dPos = globalRetriver.getDoubleGlobalPosition (globalPosition); 00450 _3dPosition.x = dPos.x; 00451 _3dPosition.y = dPos.y; 00452 } |
|
Definition at line 423 of file primitive_world_image.h. References _3dPosition. Referenced by NLPACS::CPrimitiveWorldImage::doMove(), NLPACS::CPrimitiveWorldImage::reaction(), and NLPACS::CPrimitiveWorldImage::setGlobalPosition().
00424 { 00425 _3dPosition=newPos; 00426 } |
|
Definition at line 411 of file primitive_world_image.h. Referenced by getPos(), setGlobalPos(), setGlobalPosKeepZ(), and setPos(). |
|
Definition at line 414 of file primitive_world_image.h. |