Reimplemented from OglGui::ButtonListener. Definition at line 90 of file Camera3DAnchorControl.h. References OglGui::OglWindow::GetOGLWND(), mAnchorButton, mAnchors, mGotoButton, mIndex, mTarget, OglGui::Camera3DAnchorControl::Anchor3DInfo::rX, OglGui::Camera3DAnchorControl::Anchor3DInfo::rY, OglGui::Camera3DAnchorControl::Anchor3DInfo::rZ, OglGui::Camera3DAnchorControl::Anchor3DInfo::tX, OglGui::Camera3DAnchorControl::Anchor3DInfo::tY, OglGui::Camera3DAnchorControl::Anchor3DInfo::tZ, OglGui::Camera3DAnchorControl::Anchor3DInfo::uX, OglGui::Camera3DAnchorControl::Anchor3DInfo::uY, OglGui::Camera3DAnchorControl::Anchor3DInfo::uZ, OglGui::Camera3DAnchorControl::Anchor3DInfo::x, OglGui::Camera3DAnchorControl::Anchor3DInfo::y, and OglGui::Camera3DAnchorControl::Anchor3DInfo::z. 00091 { 00092 if (!mTarget) 00093 return; 00094 SCENE3D* cam = (SCENE3D*) mTarget->GetOGLWND()->sceneInfo; 00095 00096 if (src == mGotoButton) 00097 { 00098 Anchor3DInfo a = mAnchors[mIndex]; 00099 cam->camX = a.x; cam->camY = a.y; cam->camZ = a.z; 00100 cam->tX = a.tX; cam->tY = a.tY; cam->tZ = a.tZ; 00101 cam->uX = a.uX; cam->uY = a.uY; cam->uZ = a.uZ; 00102 cam->rX = a.rX; cam->rY = a.rY; cam->rZ = a.rZ; 00103 } 00104 if (src == mAnchorButton) 00105 { 00106 Anchor3DInfo a; 00107 a.x = cam->camX; a.y = cam->camY; a.z = cam->camZ; 00108 a.tX = cam->tX; a.tY = cam->tY; a.tZ = cam->tZ; 00109 a.uX = cam->uX; a.uY = cam->uY; a.uZ = cam->uZ; 00110 a.rX = cam->rX; a.rY = cam->rY; a.rZ = cam->rZ; 00111 mAnchors[mIndex] = a; 00112 } 00113 }
Here is the call graph for this function:
|