CMS 3D CMS Logo

Ig3DWindow.cc File Reference

#include "Iguana/GLBrowsers/interface/Ig3DWindow.h"
#include "Iguana/Framework/interface/IgSite.h"
#include "Iguana/GLModels/interface/Ig3DModel.h"
#include "Iguana/GLModels/interface/Ig3DBaseModel.h"
#include "Iguana/GLBrowsers/interface/Ig3DSystem.h"
#include "Iguana/Studio/interface/IgDocumentData.h"
#include "Iguana/Studio/interface/IgPage.h"
#include "Iguana/Framework/interface/IgTwig.h"
#include "Iguana/GLBrowsers/interface/Ig3DBrowser.h"
#include "Iguana/GLBrowsers/interface/Ig3DLightsCategory.h"
#include "Iguana/GLBrowsers/interface/Ig3DSlicersCategory.h"
#include "Iguana/GLBrowsers/interface/Ig3DClipsCategory.h"
#include "Iguana/GLBrowsers/interface/Ig3DAnimsCategory.h"
#include "Iguana/GLBrowsers/interface/Ig3DNodeCategory.h"
#include "Iguana/GLBrowsers/interface/Ig3DViewpointsCategory.h"
#include "Iguana/GLBrowsers/interface/Ig3DGridCategory.h"
#include "Iguana/Studio/interface/IgQtSite.h"
#include "Iguana/Studio/interface/IgQtSiteStack.h"
#include "Iguana/Studio/interface/IgQtAppContextService.h"
#include "Iguana/Studio/interface/IgQtAppMenuService.h"
#include "Iguana/Studio/interface/IgQtObjectMenuService.h"
#include "Iguana/Studio/interface/IgQtObjectMenuMessage.h"
#include "Iguana/Studio/interface/IgQtObjectMenu.h"
#include "Iguana/Framework/interface/IgRepSet.h"
#include "Iguana/Framework/interface/IgRepContext.h"
#include "Iguana/Studio/interface/IgQtCallbacks.h"
#include "Iguana/Studio/interface/IgQtAppToolBarService.h"
#include "Iguana/Studio/interface/IgQtAppImageService.h"
#include "Iguana/GLBrowsers/interface/IgStudioCentre.h"
#include "Iguana/GLBrowsers/interface/IgControlCentre.h"
#include "Iguana/GLModels/interface/Ig3DBaseRep.h"
#include "Iguana/Studio/interface/IgImageIDs.h"
#include <Inventor/nodes/SoDirectionalLight.h>
#include <Inventor/nodes/SoOrthographicCamera.h>
#include <Inventor/nodes/SoCamera.h>
#include <Inventor/SoOffscreenRenderer.h>
#include <classlib/utils/Callback.h>
#include <qpopupmenu.h>
#include <qmenudata.h>
#include <qmenubar.h>
#include <qtoolbutton.h>
#include <qtoolbar.h>
#include <qwhatsthis.h>

Go to the source code of this file.

Functions

static void feedbackButtonCallback (Ig3DBaseBrowser *browser, QToolButton *button)
static void gridButtonCallback (Ig3DBaseBrowser *browser, QToolButton *button)
static void orthogonalButtonCallback (Ig3DBaseBrowser *browser, QToolButton *button)
static void qtSetOff (QToolButton *button)


Function Documentation

static void feedbackButtonCallback ( Ig3DBaseBrowser browser,
QToolButton *  button 
) [static]

Definition at line 238 of file Ig3DWindow.cc.

Referenced by IgSpareWindow::initToolBar(), IgLegoWindow::initToolBar(), IgRPhiWindow::initToolBar(), Ig3DWindow::initToolBar(), and IgRZWindow::initToolBar().

00239 {
00240     button->setOn (browser->isFeedbackVisible ());    
00241 }

static void gridButtonCallback ( Ig3DBaseBrowser browser,
QToolButton *  button 
) [static]

Definition at line 244 of file Ig3DWindow.cc.

References Ig3DBaseBrowser::isGridVisible().

Referenced by IgSpareWindow::initToolBar(), IgRPhiWindow::initToolBar(), and Ig3DWindow::initToolBar().

00245 {
00246     button->setOn (browser->isGridVisible ());    
00247 }

static void orthogonalButtonCallback ( Ig3DBaseBrowser browser,
QToolButton *  button 
) [static]

Definition at line 250 of file Ig3DWindow.cc.

Referenced by Ig3DWindow::cameraToggled(), IgLegoWindow::initToolBar(), Ig3DWindow::initToolBar(), and IgRZWindow::initToolBar().

00251 {
00252     SoCamera *camera = browser->getCamera ();
00253     if (camera->getTypeId ()==SoOrthographicCamera::getClassTypeId ())
00254     {
00255         button->setOn (true);    
00256     }else
00257     {
00258         button->setOn (false);  
00259     }
00260 }

static void qtSetOff ( QToolButton *  button  )  [static]

Definition at line 263 of file Ig3DWindow.cc.

Referenced by IgSpareWindow::initToolBar(), IgLegoWindow::initToolBar(), IgRPhiWindow::initToolBar(), Ig3DWindow::initToolBar(), and IgRZWindow::initToolBar().

00264 {
00265     button->setOn (false);    
00266 }


Generated on Tue Jun 9 17:54:13 2009 for CMSSW by  doxygen 1.5.4