CMS 3D CMS Logo

Ig3DCameraRotControl.cc

Go to the documentation of this file.
00001 //<<<<<< INCLUDES                                                       >>>>>>
00002 
00003 #include "Iguana/GLBrowsers/interface/Ig3DCameraRotControl.h"
00004 #include "Iguana/GLBrowsers/interface/IgQtRangeControlFloat.h"
00005 #include <qwhatsthis.h>
00006 #include <classlib/utils/DebugAids.h>
00007 
00008 //<<<<<< PRIVATE DEFINES                                                >>>>>>
00009 //<<<<<< PRIVATE CONSTANTS                                              >>>>>>
00010 //<<<<<< PRIVATE TYPES                                                  >>>>>>
00011 //<<<<<< PRIVATE VARIABLE DEFINITIONS                                   >>>>>>
00012 //<<<<<< PUBLIC VARIABLE DEFINITIONS                                    >>>>>>
00013 //<<<<<< CLASS STRUCTURE INITIALIZATION                                 >>>>>>
00014 //<<<<<< PRIVATE FUNCTION DEFINITIONS                                   >>>>>>
00015 //<<<<<< PUBLIC FUNCTION DEFINITIONS                                    >>>>>>
00016 //<<<<<< MEMBER FUNCTION DEFINITIONS                                    >>>>>>
00017 
00018 Ig3DCameraRotControl::Ig3DCameraRotControl (IgControlCategory *pane,
00019                                             QString label)
00020     : Ig3DRotationControl (pane, label)
00021 {
00022     QWhatsThis::add (xControl ()->widget (), 
00023                    "Rotate camera around X-axis");
00024     QWhatsThis::add (yControl ()->widget (), 
00025                    "Rotate camera around Y-axis");
00026     QWhatsThis::add (zControl ()->widget (), 
00027                    "Rotate camera around Z-axis");
00028 }
00029 
00030 void
00031 Ig3DCameraRotControl::applyValue (void)
00032 {
00033     SbVec3f fp = getFocalPoint ();
00034     Ig3DRotationControl::applyValue ();
00035     setFocalPoint (fp);
00036 }

Generated on Tue Jun 9 17:38:35 2009 for CMSSW by  doxygen 1.5.4