Coin Logo http://www.sim.no
http://www.coin3d.org

SoQtExaminerViewer.h

00001 #ifndef SOQT_EXAMINERVIEWER_H
00002 #define SOQT_EXAMINERVIEWER_H
00003 
00004 // src/Inventor/Qt/viewers/SoQtExaminerViewer.h.  Generated from SoGuiExaminerViewer.h.in by configure.
00005 
00006 /**************************************************************************\
00007  *
00008  *  This file is part of the Coin 3D visualization library.
00009  *  Copyright (C) 1998-2005 by Systems in Motion.  All rights reserved.
00010  *
00011  *  This library is free software; you can redistribute it and/or
00012  *  modify it under the terms of the GNU General Public License
00013  *  ("GPL") version 2 as published by the Free Software Foundation.
00014  *  See the file LICENSE.GPL at the root directory of this source
00015  *  distribution for additional information about the GNU GPL.
00016  *
00017  *  For using Coin with software that can not be combined with the GNU
00018  *  GPL, and for taking advantage of the additional benefits of our
00019  *  support services, please contact Systems in Motion about acquiring
00020  *  a Coin Professional Edition License.
00021  *
00022  *  See <URL:http://www.coin3d.org/> for more information.
00023  *
00024  *  Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
00025  *  <URL:http://www.sim.no/>.
00026  *
00027 \**************************************************************************/
00028 
00029 #include <Inventor/SbLinear.h>
00030 #include <Inventor/Qt/viewers/SoQtFullViewer.h>
00031 
00032 class SoSeparator;
00033 class SoSwitch;
00034 class SoTranslation;
00035 class SoScale;
00036 
00037 class SoQtThumbWheel;
00038 
00039 // *************************************************************************
00040 
00041 class SOQT_DLL_API SoQtExaminerViewer : public SoQtFullViewer {
00042   SOQT_OBJECT_HEADER(SoQtExaminerViewer, SoQtFullViewer);
00043 
00044 public:
00045   SoQtExaminerViewer(QWidget * parent = NULL,
00046                         const char * name = NULL,
00047                         SbBool embed = TRUE,
00048                         SoQtFullViewer::BuildFlag flag = BUILD_ALL,
00049                         SoQtViewer::Type type = BROWSER);
00050   ~SoQtExaminerViewer();
00051 
00052   void setAnimationEnabled(const SbBool enable);
00053   SbBool isAnimationEnabled(void) const;
00054 
00055   void stopAnimating(void);
00056   SbBool isAnimating(void) const;
00057 
00058   void setFeedbackVisibility(const SbBool enable);
00059   SbBool isFeedbackVisible(void) const;
00060 
00061   void setFeedbackSize(const int size);
00062   int getFeedbackSize(void) const;
00063 
00064   virtual void setViewing(SbBool enable);
00065   virtual void setCamera(SoCamera * camera);
00066   virtual void setCursorEnabled(SbBool enable);
00067 
00068 protected:
00069   SoQtExaminerViewer(QWidget * parent,
00070                         const char * name,
00071                         SbBool embed,
00072                         SoQtFullViewer::BuildFlag flag,
00073                         SoQtViewer::Type type,
00074                         SbBool build);
00075 
00076   virtual void leftWheelMotion(float val);
00077   virtual void bottomWheelMotion(float val);
00078   virtual void rightWheelMotion(float val);
00079 
00080   virtual void createViewerButtons(QWidget * parent, SbPList * buttonlist);
00081 
00082   virtual const char * getDefaultWidgetName(void) const;
00083   virtual const char * getDefaultTitle(void) const;
00084   virtual const char * getDefaultIconTitle(void) const;
00085 
00086   virtual SbBool processSoEvent(const SoEvent * const event);
00087   virtual void setSeekMode(SbBool enable);
00088   virtual void actualRedraw(void);
00089 
00090   virtual void afterRealizeHook(void);
00091 
00092 private:
00093   class SoQtExaminerViewerP * pimpl;
00094 
00095   friend class SoGuiExaminerViewerP;
00096   friend class SoQtExaminerViewerP;
00097 };
00098 
00099 #endif // ! SOQT_EXAMINERVIEWER_H

Copyright © 1998-2005 by Systems in Motion AS. All rights reserved.

Generated on Fri Aug 27 2010 06:24:30 for SoQt by Doxygen. 1.7.1