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

SoXtFlyViewer.h

00001 #ifndef SOXT_FLYVIEWER_H
00002 #define SOXT_FLYVIEWER_H
00003 
00004 // src/Inventor/Xt/viewers/SoXtFlyViewer.h.  Generated from SoGuiFlyViewer.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/Xt/viewers/SoXtConstrainedViewer.h>
00030 
00031 // ************************************************************************
00032 
00033 class SOXT_DLL_API SoXtFlyViewer : public SoXtConstrainedViewer {
00034   SOXT_OBJECT_HEADER(SoXtFlyViewer, SoXtConstrainedViewer);
00035 
00036 public:
00037   SoXtFlyViewer(Widget parent = NULL,
00038                    const char * name = NULL, 
00039                    SbBool embed = TRUE, 
00040                    SoXtFullViewer::BuildFlag flag = BUILD_ALL,
00041                    SoXtViewer::Type type = BROWSER);
00042   ~SoXtFlyViewer();
00043 
00044   virtual void setViewing(SbBool enable);
00045   virtual void viewAll(void);
00046   virtual void resetToHomePosition(void);
00047   virtual void setCamera(SoCamera * camera);
00048   virtual void setCursorEnabled(SbBool enable);
00049   virtual void setCameraType(SoType type);
00050 
00051 protected:
00052   SoXtFlyViewer(Widget parent,
00053                    const char * const name, 
00054                    SbBool embed, 
00055                    SoXtFullViewer::BuildFlag flag, 
00056                    SoXtViewer::Type type, 
00057                    SbBool build);
00058 
00059   virtual const char * getDefaultWidgetName(void) const;
00060   virtual const char * getDefaultTitle(void) const;
00061   virtual const char * getDefaultIconTitle(void) const;
00062 
00063   virtual SbBool processSoEvent(const SoEvent * const event);
00064   virtual void setSeekMode(SbBool enable);
00065   virtual void actualRedraw(void);
00066 
00067   virtual void rightWheelMotion(float value);
00068 
00069   virtual void afterRealizeHook(void);
00070 
00071 private:
00072   class SoXtFlyViewerP * pimpl;
00073   friend class SoXtFlyViewerP;
00074 };
00075 
00076 // ************************************************************************
00077 
00078 #endif // ! SOXT_FLYVIEWER_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