Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

virtual void OglGui::ZoomControl::DisplayFunc (  )  [inline, virtual]

Reimplemented from OglGui::GroupBox.

Definition at line 82 of file ZoomControl.h.

References OglGui::GroupBox::DisplayFunc(), OglGui::Window::GetState(), mAdjusting, mCenterButton, mFitButton, mResetButton, mTargetIs2D, mTargetWindow, mZoomSlider, OglGui::Window::SetState(), and OglGui::Slider::SetValue().

00083     {
00084         LIST    *obj;
00085         bool    enable = false;
00086 
00087         GroupBox::DisplayFunc();
00088         if (mTargetWindow){
00089             ForAllElements(obj, mTargetWindow->objectList){
00090                 if (mTargetIs2D){
00091                     OGLVIEW *v2d = (OGLVIEW *) obj->info;
00092                     if (enable=(viewSys.HasTags(v2d, selectedTag) ? true:false))
00093                     {
00094                         mAdjusting = true;
00095                         mZoomSlider->SetValue(v2d->zoomX*100);
00096                         mAdjusting = false;
00097                         break;
00098                     }
00099                 }
00100                 else {
00101                     OGLVIEW3D *v3d = (OGLVIEW3D *) obj->info;
00102                     if (enable=view3DSys.HasTags(v3d,selectedTag) ? true:false)
00103                         break;
00104                 }
00105             }
00106         }
00107 
00108         if (enable != (mZoomSlider->GetState() > 0))
00109         {
00110             mZoomSlider->SetState(enable ? 1 : 0);
00111             mCenterButton->SetState(enable ? 1 : 0);
00112             mFitButton->SetState(enable ? 1 : 0);
00113             mResetButton->SetState(enable ? 1 : 0);
00114         }
00115     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:27:28 2011 for ImpalaSrc by  doxygen 1.5.1