QbExaminerViewer.h

00001 /**************************************************************************\
00002 *
00003 *  The code in this file was particulary taken from backgroundimg.cpp,
00004 *  part of a set of example programs for the Coin library.
00005 *  Copyright (C) 2000-2003 by Systems in Motion. All rights reserved.
00006 *
00007 *                   <URL:http://www.coin3d.org>
00008 *
00009 *  This sourcecode can be redistributed and/or modified under the
00010 *  terms of the GNU General Public License version 2 as published by
00011 *  the Free Software Foundation. See the file COPYING at the root
00012 *  directory of the distribution for more details.
00013 *
00014 \**************************************************************************/
00015 
00016 #ifndef QBEXAMINERVIEWER_H
00017 #define QBEXAMINERVIEWER_H
00018 
00019 #include <Inventor/Qt/SoQt.h>
00020 #include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
00021 #include <Inventor/nodes/SoRotationXYZ.h>
00022 #include <Inventor/nodes/SoSeparator.h>
00023 #include <Inventor/threads/SbRWMutex.h>
00024 
00025 class QbExaminerViewer : public SoQtExaminerViewer {
00026   typedef SoQtExaminerViewer inherited;
00027 public:
00028   QbExaminerViewer(QWidget * parent, const char * filename);
00029   ~QbExaminerViewer();
00030   void setBackground(const char *filename = "QbExaminerViewer_BACKGROUND.iv");
00031   void setForeground(const char *filename = "QbExaminerViewer_FOREGROUND.iv");
00032   SbRWMutex renderMutex;
00033 protected:
00034   virtual void actualRedraw(void);
00035 private:
00036   SoSeparator * backgroundroot;
00037   SoSeparator * foregroundroot;
00038 };
00039 
00040 #endif 
00041 

Generated on Thu Oct 28 10:59:16 2004 for gitk by doxygen 1.3.6