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

SoXtExaminerViewer.h

00001 #ifndef SOXT_EXAMINERVIEWER_H
00002 #define SOXT_EXAMINERVIEWER_H
00003 
00004 // src/Inventor/Xt/viewers/SoXtExaminerViewer.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/Xt/viewers/SoXtFullViewer.h>
00031 
00032 class SoSeparator;
00033 class SoSwitch;
00034 class SoTranslation;
00035 class SoScale;
00036 
00037 class SoXtThumbWheel;
00038 
00039 // *************************************************************************
00040 
00041 class SOXT_DLL_API SoXtExaminerViewer : public SoXtFullViewer {
00042   SOXT_OBJECT_HEADER(SoXtExaminerViewer, SoXtFullViewer);
00043 
00044 public:
00045   SoXtExaminerViewer(Widget parent = NULL,
00046                         const char * name = NULL,
00047                         SbBool embed = TRUE,
00048                         SoXtFullViewer::BuildFlag flag = BUILD_ALL,
00049                         SoXtViewer::Type type = BROWSER);
00050   ~SoXtExaminerViewer();
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   SoXtExaminerViewer(Widget parent,
00070                         const char * name,
00071                         SbBool embed,
00072                         SoXtFullViewer::BuildFlag flag,
00073                         SoXtViewer::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(Widget 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 SoXtExaminerViewerP * pimpl;
00094 
00095   friend class SoGuiExaminerViewerP;
00096   friend class SoXtExaminerViewerP;
00097 };
00098 
00099 #endif // ! SOXT_EXAMINERVIEWER_H

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

Generated on Tue Dec 2 23:15:45 2008 for SoXt by Doxygen. 1.4.7